[Nagiosplug-devel] [ nagiosplug-Bugs-3304535 ] check_procs counts too much processes with dash as shell
SourceForge.net
noreply at sourceforge.net
Thu May 19 13:27:35 CEST 2011
Bugs item #3304535, was opened at 2011-05-19 13:27
Message generated for change (Tracker Item Submitted) made by cyco_dd
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=3304535&group_id=29880
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Jan Wagner (cyco_dd)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_procs counts too much processes with dash as shell
Initial Comment:
The following Bugreport we got against our debian package:
If default shell is /bin/dash then all check_procs commands run though nrpe daemon return a +1 value in the number of processes they count
i.e. if there is one /usr/sbin/acpid process running the check will return 2, more seriously if there are none the check will return one,
so if the check is used to restart dead daemons this won't be done anymore.
The problem is dash-related: this can be easily verified by running
root at server:~# su - nagios -s /bin/dash -c "/usr/lib/nagios/plugins/check_procs -c 1: -a '/sbin/init'"
No directory, logging in with HOME=/
PROCS OK: 2 processes with args '/sbin/init'
root at server:~# su - nagios -s /bin/bash -c "/usr/lib/nagios/plugins/check_procs -c 1: -a '/sbin/init'"
No directory, logging in with HOME=/
PROCS OK: 1 process with args '/sbin/init'
You can track the bugreport via http://bugs.debian.org/626913 (there are already comments).
Many thanks, Jan.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=3304535&group_id=29880
More information about the Devel
mailing list