Nagios-Plugins | Travis CI , Git , MySQL , Linux , DNS , Whois , SSL Certs
kandi X-RAY | Nagios-Plugins Summary
kandi X-RAY | Nagios-Plugins Summary
450+ AWS, Hadoop, Cloud, Kafka, Docker, Elasticsearch, RabbitMQ, Redis, HBase, Solr, Cassandra, ZooKeeper, HDFS, Yarn, Hive, Presto, Drill, Impala, Consul, Spark, Jenkins, Travis CI, Git, MySQL, Linux, DNS, Whois, SSL Certs, Yum Security Updates, Kubernetes, Cloudera etc...
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Run the command line .
- Get information about security updates .
- r Check the system RAM usage .
- test if mysql connection
- Test the unit tests .
- Subscribe to the server .
- Test the raid level .
- Test sftp .
- Test if all the drives are running .
- Log a docker build result .
Nagios-Plugins Key Features
Nagios-Plugins Examples and Code Snippets
# BIRD daemon stopped:
$ ./nagios-check-birdseye.php -a http://rc1q-cix-ipv4.inex.ie/api
CRITICAL: Could not query Bird daemon
$ echo $?
2
# BIRD daemon running:
$ ./nagios-check-birdseye.php -a http://rc1q-cix-ipv4.inex.ie/api
OK: Bird 1.5.0. Bird's
nagios$ ./check_ceph_df -i nagios -k /etc/ceph/ceph.client.nagios.keyring -W 29.12 -C 30.22 -d
RAW usage 28.36%
nagios$ ./check_ceph_df -i nagios -k /etc/ceph/ceph.client.nagios.keyring -W 26.14 -C 30
WARNING: global RAW usage of 28.36% is above 26.
usage: check_ceph_df [-h] [-e EXE] [-c CONF] [-m MONADDRESS] [-i ID] [-n NAME]
[-k KEYRING] [-d] [-W WARN] [-C CRITICAL] [-V]
'ceph df' nagios plugin.
optional arguments:
-h, --help show this help message and exit
Community Discussions
Trending Discussions on Nagios-Plugins
QUESTION
For my homework project I need to oversee a web server and a wordpress website on it with a Nagios server. Both are LAMP Debian 9 server, all is setup and working.
I'm using Nagios XI and MariaDB with the default wordpress database explain here.
For the last part I need to check all comments posted in the last 4 hours to avoid a Spam campaign. I need a warning threshold set on 4 comments in last 4 hours, and a critical threshold set on 10 comments in last 4 hours.
I found check_mysql_query.pl plugin for Nagios. But I'am a little bit lost for making work this with a SQL query. According to wordpress doc, I try something like :
...ANSWER
Answered 2019-Jul-07 at 18:36I don’t have a time to check all Wordpress database schema. But from your SQL query, I think you need following
QUESTION
I need to automate the installation of the NRPE agent inside a bash script. How do I "make; make install" in a remote directory? Here's the code so far:
...ANSWER
Answered 2019-Mar-28 at 06:04This might help with Khanna111's hint:
QUESTION
From Nagios' Plugin Development Guidelines:
Plugins have a very limited runtime - typically 10 sec. As a result, it is very important for plugins to maintain internal code to exit if runtime exceeds a threshold.
All plugins should timeout gracefully, not just networking plugins.
How can I implement a timeout mechanism into my custom plugin? Basically I want my plugin to return a status code 3 - UNKNOWN instead of the default 1 - CRITICAL when the plugin times out, to reduce the number of false positives generated.
EDIT: My plugin is written in Bash.
...ANSWER
Answered 2018-Nov-29 at 08:01You can use timeout
. Here is example usage:
QUESTION
My goal is to fetch the status data from a UBNT radio (https://www.ubnt.com/) using an HTTP request. The web interface url is formatted as http://192.168.0.120/status.cgi. Making the request requires a authentication cookie. Using the cookie copied from the existing web interface I am able to successfully retrieve the data.
This is my current code using the Meteor framework.
...ANSWER
Answered 2018-Mar-24 at 03:21A direct POST
request to a url is not a recommended way. When you open a browser you just don't directly login. You fetch the page and then submit/login
Not simulating this behavior may impact certain sites depending on how the server works.
So if always want to look at the simulating like a real user/browser would do, make a GET
request first and then the POST
.
Also capture any cookies from the first GET
request and then pass the same on to the next one
QUESTION
I'm working on build containers exploiting a monitoring application (Centreon). When i build my container manually (with docker run) and when i build my docker file, i have different results. Somes scripts used by the application are missing.
Here's my dockerfile :
...ANSWER
Answered 2018-Feb-09 at 13:06It doesn't matter what you put in your image at that location, you will always see the contents of your volume mount:
QUESTION
I'm running Container Linux by CoreOS 1618.0.0 (Ladybug)
.
with rkt Version: 1.29.0
I created a systemd service file to run a docker nagios image:
...ANSWER
Answered 2017-Dec-25 at 12:20You should not expect to see the volume automatically populated with whatever files exist in the image at that particular mount point. In fact the opposite happens, the (presumably empty) volume hides what's in the image. See this: https://github.com/appc/spec/blob/master/spec/ace.md#volume-setup
So, if you want to pre-populate the volumes with files from the image, I believe you're doing the right thing by extracting the image manually.
QUESTION
How can I find the latest version number of Go without knowing what the exact version number is of the latest version? This in order to construct the download url.
When release is on GitHub I can do this with for example
...ANSWER
Answered 2017-Oct-07 at 19:07got this from the ml,
QUESTION
I would like to print the value of every occurance in a JSON string with Python.
Here is my JSON:
...ANSWER
Answered 2017-Aug-03 at 13:50Simply use:
QUESTION
I am running Nagios® Core Version 3.5.1 on Ubuntu 14.04.5 LTS. I am adding a slightly different check_http defined as check_http_s. It appears that I can add this to any one of three different files:
...ANSWER
Answered 2017-Feb-22 at 15:30Configuration files are all included from the main nagios.cfg
. They are included with the following directives:
cfg_file=
cfg_dir=
So, unfortunately, there isn't any good way to just tell if files are in use - you need to travel down the path of which files are included, and then see if files are included from those files!
QUESTION
I'm almost done with a nagios plugin and I'm using this guide. I'm getting error's though and I'm not sure why.
...ANSWER
Answered 2017-Feb-17 at 18:13To use given
, you need
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Nagios-Plugins
Git clone this repo and compile dependencies by running ```make```<br> OR<br>
Download pre-built self-contained [Docker image](https://hub.docker.com/r/harisekhon/nagios-plugins/)
Now run any plugin with ```--help``` to find out which switches to use. Make sure to read [Detailed Build Instructions](https://github.com/HariSekhon/nagios-plugins#detailed-build-instructions) further down for more information.
export ZOOKEEPER_VERSION=3.4.8 [ -f zookeeper-$ZOOKEEPER_VERSION.tar.gz ] || wget -O zookeeper-$ZOOKEEPER_VERSION.tar.gz http://www.mirrorservice.org/sites/ftp.apache.org/zookeeper/zookeeper-$ZOOKEEPER_VERSION/zookeeper-$ZOOKEEPER_VERSION.tar.gz tar zxvf zookeeper-$ZOOKEEPER_VERSION.tar.gz cd zookeeper-$ZOOKEEPER_VERSION/src/c ./configure make sudo make install.
cd ../contrib/zkperl perl Makefile.PL --zookeeper-include=/usr/local/include/zookeeper --zookeeper-lib=/usr/local/lib LD_RUN_PATH=/usr/local/lib make sudo make install. sudo yum install MySQL-python. sudo easy_install pip sudo pip install MySQL-python. Readonly::XS is not a standalone module. You should not use it directly. at /usr/local/lib64/perl5/Readonly/XS.pm line 34. [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:765). sudo pip uninstall -y certifi && sudo pip install certifi==2015.04.28.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page