I seem to be having issue presenting ARGs for users, swap, procs, and zombie procs checks. For all else, it seems to be working fine. Please see below:
Client side:
Code: Select all
command[check_users]=/usr/lib64/nagios/plugins/check_users -w $ARG1$ -c $ARG2$
command[check_zombie_procs]=/usr/lib64/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$ -s Z
command[check_total_procs]=/usr/lib64/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$
command[check_swap]=/usr/lib64/nagios/plugins/check_swap -w $ARG1$ -c $ARG2$
Code: Select all
define service {
use generic-service
hostgroup_name x
service_description Current Users
check_command check_nrpe!check_users!15!20!
contact_groups admins
}
define service {
use generic-service
hostgroup_name x
service_description Total Processes
check_command check_nrpe!check_total_procs!950!1000!
contact_groups admins
}
define service {
use generic-service
hostgroup_name x
service_description Zombie Processes
check_command check_nrpe!check_zombie_procs!5!10!
contact_groups admins
}
define service {
use generic-service
hostgroup_name x
service_description Swap Usage
check_command check_nrpe!check_swap!20%!10%!
contact_groups admins
}
Current Users
Notifications for this service have been disabled
UNKNOWN 03-10-2015 16:03:14 0d 0h 15m 8s 3/3 check_users: Warning threshold must be a positive integer
Swap Usage
Notifications for this service have been disabled
UNKNOWN 03-10-2015 15:56:34 0d 0h 11m 48s 3/3 check_swap: Warning threshold must be integer or percentage!
Total Processes
Notifications for this service have been disabled
UNKNOWN 03-10-2015 15:58:15 0d 0h 6m 7s 3/3 check_procs: Warning Process Count must be an integer!
Zombie Processes
Notifications for this service have been disabled
UNKNOWN 03-10-2015 15:59:05 0d 0h 9m 17s 3/3 check_procs: Warning Process Count must be an integer!
Here is an example of something I am using that does work:
Client:
Code: Select all
command[check_x]=/usr/lib64/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ -p /x/yCode: Select all
define service {
use generic-service
hostgroup_name x
service_description /x/y Free Space
check_command check_nrpe!check_x!40%!20%!
contact_groups admins
}
Free Space
Notifications for this service have been disabled
OK 03-10-2015 16:05:03 0d 2h 42m 18s 1/3 DISK OK - free space: /x/y 1696223 MB (98% inode=99%):
Is there something I am missing?
Thank you.