Package: nagios-nrpe-server Version: 2.12-4 Severity: normal Hi,
Running 'check_procs [..] -a' directly on a host gives the correct number: | H:~# /usr/lib/nagios/plugins/check_procs -c 1:1 -a SOME_UNIQUE_ARGUMENT | PROCS OK: 1 process with args 'SOME_UNIQUE_ARGUMENT' | | H:~# /usr/lib/nagios/plugins/check_procs -c 1:1 -a ANY_RANDOM_STRING | PROCS CRITICAL: 0 processes with args 'ANY_RANDOM_STRING' Running the same command indirectly via 'check_nrpe' gives a wrong number: | H:~# /usr/lib/nagios/plugins/check_nrpe -H $DST -c procs-a -a 1:1 SOME_UNIQUE_ARGUMENT | PROCS CRITICAL: 2 processes with args 'SOME_UNIQUE_ARGUMENT' | | H:~# /usr/lib/nagios/plugins/check_nrpe -H $DST -c procs-a -a 1:1 ANY_RANDOM_STRING | PROCS OK: 1 process with args 'ANY_RANDOM_STRING' where 'procs-a' remote command is defined like this in nrpe server: command[procs-a]=/usr/lib/nagios/plugins/check_procs -c $ARG1$ -a $ARG2$ As you can see 'check_nrpe' computes the wrong number (+1) for every "check_procs [..] -a" command. This appears to be specific to Debian because the 'nrpe' server on RHEL hosts give the correct number. Thanks -- System Information: Debian Release: 6.0.4 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages nagios-nrpe-server depends on: ii adduser 3.112+nmu2 add and remove users and groups ii libc6 2.11.3-3 Embedded GNU C Library: Shared lib ii libssl0.9.8 0.9.8o-4squeeze7 SSL shared libraries ii libwrap0 7.6.q-19 Wietse Venema's TCP wrappers libra ii lsb-base 3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip Versions of packages nagios-nrpe-server recommends: ii nagios-plugins 1.4.15-3squeeze1 Plugins for the nagios network mon ii nagios-plugins-basic 1.4.15-3squeeze1 Plugins for the nagios network mon nagios-nrpe-server suggests no packages. -- Configuration Files: /etc/nagios/nrpe.cfg changed: log_facility=daemon pid_file=/var/run/nagios/nrpe.pid server_port=5666 nrpe_user=nagios nrpe_group=nagios allowed_hosts=127.0.0.1,X.X.X.X dont_blame_nrpe=1 debug=0 command_timeout=60 connection_timeout=300 command[check_users]=/usr/lib/nagios/plugins/check_users -w 5 -c 10 command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20 command[check_hda1]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /dev/hda1 command[check_zombie_procs]=/usr/lib/nagios/plugins/check_procs -w 5 -c 10 -s Z command[check_total_procs]=/usr/lib/nagios/plugins/check_procs -w 150 -c 200 include=/etc/nagios/nrpe_local.cfg include_dir=/etc/nagios/nrpe.d/ -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org