Check_procs plugin bug
Yoav Daniely
yoavd at qballtech.net
Sun Feb 27 13:41:13 CET 2005
Greetings,
The check_procs plugin did not run correctly on my Fedora Core 3 host, it
never returned an "OK" status.
I fixed the problem by editing config.h and changing the ps command
(removing the - operator).
FYI,
Yoav
Details:
-----------
check_procs -v
STDERR: Warning: bad syntax, perhaps a bogus '-'? See
/usr/share/doc/procps-3.2.3/FAQ
System call sent warnings to stderr
PROCS WARNING: 87 processes
In config.h :
-----------------
Changed from:
/* Verbatim command to execute for ps in check_procs */
#define PS_COMMAND "/bin/ps axwo 'stat uid ppid vsz rss pcpu comm args'"
Changed to:
/* Verbatim command to execute for ps in check_procs */
#define PS_COMMAND "/bin/ps -axwo 'stat uid ppid vsz rss pcpu comm args'"
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.5.0 - Release Date: 25/02/2005
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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