[Nagiosplug-devel] Problems with base_name function in the check_procs test

Денис Мажар akkerman at insula.org.ua
Sat Jan 22 10:34:42 CET 2011


Hi! I'm using great chec_proc test with nagios-nrpe. And looks like I've 
found some bug in it. This is a problem:
$ /usr/lib/nagios/plugins/check_procs -c 1: -C smtpcom-trackerd -vvv 
|grep tracker

Ssl   1000 10094     1 520596 118808 0.6    23:06:36 smtpcom-tracker 
/usr/sbin/smtpcom-trackerd -c /etc/smtpcom/smtpcom.ymlproc#=0 uid=1000 
vsz=520596 rss=118808 pid=10094 ppid=1 pcpu=0.60 stat=Ssl etime=23:06:36 
prog=smtpcom-tracker args=/usr/sbin/smtpcom-trackerd -c 
/etc/smtpcom/smtpcom.yml
PROCS CRITICAL: 0 processes with command name 'smtpcom-trackerd'

So looks like base_name function convert /usr/sbin/smtpcom-trackerd to 
the smtpcom-tracker(without 'd' on the end). I've tried to make a patch 
but looks like I'm lack of programming skill.

I have Debian Squeeze on that machine and 1.4.15 version of the 
nagios-plugins.




More information about the Devel mailing list