Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_supervisor
2.2
2020-04-22
- Nagios 3.x
- Nagios 4.x
erdinc
GPL
15952
File | Description |
---|---|
check_supervisord.py | check_supervisord.py |
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
Usage: check_supervisord.py -s 192.168.1.1 -P 9001 -u superv -p superv -a tomcat
Options:
--version show program's version number and exit
-h, --help show this help message and exit
-s SERVER, --server=SERVER
IP address or hostname you want to connect
-P PORT, --port=PORT TCP port
-u USERNAME, --username=USERNAME
Username
-p PASSWORD, --password=PASSWORD
Password
-a PROCESS, --process-name=PROCESS
Process name
-t TIME, --time=TIME Time unit of measurement (second|minute|hour|day)
(default: minutes)
-w WARNING, --warning=WARNING
The warning threshold
-c CRITICAL, --critical=CRITICAL
The critical threshold
[root@nagios ~]# /usr/lib64/nagios/plugins/check_supervisord -s 192.168.199.217 -P 9001 -u xxxx -p xxxx -a aragorn -w 60 -c 20
aragorn OK: pid 18217, uptime 2 days, 6:42:58 | uptime=3283;60;20;
nagios's commands.cfg
### /etc/nagios/objects/commands.cfg
define command{
command_name check_supervisord
command_line $USER1$/check_supervisord -s $HOSTADDRESS$ -P $ARG1$ -u $ARG2$ -p $ARG3$ -a $ARG4$ -w $ARG5$ -c $ARG6$
}
/etc/nagios/conf.d/services/superv/aragorn.cfg
define service {
use generic-service
host_name qa-test-1
service_description Aragorn
check_command
check_supervisord!9001!xxxx!xxxx!aragorn!60!20
}
Options:
--version show program's version number and exit
-h, --help show this help message and exit
-s SERVER, --server=SERVER
IP address or hostname you want to connect
-P PORT, --port=PORT TCP port
-u USERNAME, --username=USERNAME
Username
-p PASSWORD, --password=PASSWORD
Password
-a PROCESS, --process-name=PROCESS
Process name
-t TIME, --time=TIME Time unit of measurement (second|minute|hour|day)
(default: minutes)
-w WARNING, --warning=WARNING
The warning threshold
-c CRITICAL, --critical=CRITICAL
The critical threshold
[root@nagios ~]# /usr/lib64/nagios/plugins/check_supervisord -s 192.168.199.217 -P 9001 -u xxxx -p xxxx -a aragorn -w 60 -c 20
aragorn OK: pid 18217, uptime 2 days, 6:42:58 | uptime=3283;60;20;
nagios's commands.cfg
### /etc/nagios/objects/commands.cfg
define command{
command_name check_supervisord
command_line $USER1$/check_supervisord -s $HOSTADDRESS$ -P $ARG1$ -u $ARG2$ -p $ARG3$ -a $ARG4$ -w $ARG5$ -c $ARG6$
}
/etc/nagios/conf.d/services/superv/aragorn.cfg
define service {
use generic-service
host_name qa-test-1
service_description Aragorn
check_command
check_supervisord!9001!xxxx!xxxx!aragorn!60!20
}
Reviews (0)
Be the first to review this listing!