check_procs calls `ps' with incorrect arguments

keene at nrlssc.navy.mil keene at nrlssc.navy.mil
Mon Mar 21 20:02:24 CET 2005


I've noticed on my newer systems that the "check_local_procs" rule was returning
a warning.  Upon further inspection I've discovered that the "check_procs"
executable calls:

"/bin/ps" "-axwo" "stat uid ppid vsz rss pcpu comm args"

(which generates a warning to stderr:
"Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.3/FAQ"
)

When it should be calling:

"/bin/ps" "axw" "-o" "stat uid ppid vsz rss pcpu comm args"



-------------------------------------------------------
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