[Bug 519240] New: Nagios check_procs check for elapsed time does not work
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.novell.com/show_bug.cgi?id=519240 Summary: Nagios check_procs check for elapsed time does not work Classification: openSUSE Product: openSUSE 11.0 Version: Final Platform: x86 OS/Version: openSUSE 11.0 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: rasc@gmx.de QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; de-de) AppleWebKit/530.18 (KHTML, like Gecko) Version/4.0.1 Safari/530.18 The nagios plugin check_procs should be able to check for elapsed process times, but due to a bug in the default PS command handling fails to do so. Reproducible: Always Steps to Reproduce: 1. /usr/lib/nagios/plugins/check_procs -v -v -v Actual Results: Long list of processes, similar to: proc#=25 uid=0 vsz=0 rss=0 pid=996 ppid=2 pcpu=0.00 stat=S< etime= prog=kauditd args=[kauditd] S< 0 1016 2 0 0 0.0 kstriped [kstriped] seconds: 0 "etime=" in the output indicates that the plugin did not extract the elapsed time. Expected Results: The output should be something like this: proc#=0 uid=0 vsz=0 rss=0 pid=996 ppid=2 pcpu=0.00 stat=S< etime=23-22:00:00 prog=kauditd args=[kauditd] S< 0 1016 2 0 0 0.0 23-21:59:59 kstriped [kstriped] seconds: 2066399 With the following additonal configure options in nagios-plugins.spec the plugin works correctly: --with-ps-command="/bin/ps axwo 'stat uid pid ppid vsz rss pcpu etime comm args'" \ --with-ps-format='%s %d %d %d %d %d %f %s %s %n' \ --with-ps-cols=10 \ --with-ps-varlist='procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procetime,procprog,&pos' \ -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.novell.com/show_bug.cgi?id=519240
Marcus Meissner
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.novell.com/show_bug.cgi?id=519240
Christian Schneemann
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.novell.com/show_bug.cgi?id=519240
User cschneemann@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=519240#c1
Christian Schneemann
participants (1)
-
bugzilla_noreply@novell.com