How can I invoke remotely (through NRPE) check_procs?
Unai Rodriguez
me at u-journal.org
Thu Nov 20 11:15:00 CET 2008
Dear All,
I am creating some scripts to gather information from several Linux hosts
running the NRPE daemon. I am already invoking the following:
./check_nrpe -H 10.123.16.103 -c check_load -a 50,60,70 80,90,99
OK - load average: 0.00, 0.00, 0.00|load1=0.000;50.000;80.000;0;
load5=0.000;60.000;90.000;0; load15=0.000;70.000;99.000;0;
./check_nrpe -H 10.123.16.103 -c check_disk -a 2% 1% /dev/sda1
DISK OK - free space: / 2793 MB (76% inode=87%);| /=841MB;3752;3790;0;3829
Now, I am trying to figure how to invoke check_procs in a similar way. I
have tried several syntax but cannot find the proper way:
./check_nrpe -H 10.123.16.103 -c check_procs -a -w 90:2000 -a -c 80:12133
Usage: check_procs -w <range> -c <range> [-m metric] [-s state] [-p ppid]
[-u user] [-r rss] [-z vsz] [-P %cpu] [-a argument-array]
[-C command] [-t timeout] [-v]
./check_nrpe -H 10.123.16.103 -c check_procs -a -w 100 -a -c 200
Usage: check_procs -w <range> -c <range> [-m metric] [-s state] [-p ppid]
[-u user] [-r rss] [-z vsz] [-P %cpu] [-a argument-array]
./check_nrpe -H 10.123.16.103 -c check_procs -a 100 -a 200
check_procs: Critical Process Count must be an integer!
Usage: check_procs -w <range> -c <range> [-m metric] [-s state] [-p ppid]
[-u user] [-r rss] [-z vsz] [-P %cpu] [-a argument-array]
[-C command] [-t timeout] [-v]
The issue seems trivial, but I have not found the proper syntax yet. Any
ideas where could I get this information?
I am using:
- NRPE Plugin for Nagios (Version: 2.5.1)
- check_procs v1991 (nagios-plugins 1.4.12)
Running on Debian Linux 4.0 (Etch).
Thank you so much,
unai
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list