[Pkg-nagios-devel] Bug#545940: check_ircd: argument handling
Hendrik Jaeger
hank at netwichtig.de
Thu Sep 10 07:01:02 UTC 2009
Package: nagios-plugins-basic
Version: 1.4.12-5
Severity: normal
The check_ircd plugin works just fine using the commandline using this command:
/usr/lib/nagios/plugins/check_ircd -H localhost -p 1984
Configuring this command for nagios:
command_line /usr/lib/nagios/plugins/check_ircd -H '$HOSTADDRESS$' -p '$ARG1$'
This check will return an UNKNOWN state in nagios with an error output:
"invalid port: -H"
The same happens with other constellations.
The solution i found on the web was to remove '-H' so that the command looks like:
command_line /usr/lib/nagios/plugins/check_ircd '$HOSTADDRESS$' -p '$ARG1$'
That command works just fine, so i assume there is an error in the argument parsing logic.
Best regards
Hendrik Jaeger
-- System Information:
Debian Release: 5.0.3
APT prefers stable
APT policy: (1010, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-hnj-17lenny2
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages nagios-plugins-basic depends on:
ii iputils-ping 3:20071127-1 Tools to test the reachability of
ii libc6 2.7-18 GNU C Library: Shared libraries
ii libssl0.9.8 0.9.8g-15+lenny3 SSL shared libraries
ii procps 1:3.2.7-11 /proc file system utilities
ii ucf 3.0016 Update Configuration File: preserv
nagios-plugins-basic recommends no packages.
Versions of packages nagios-plugins-basic suggests:
ii nagios3 3.0.6-4~lenny2 A host/service/network monitoring
-- no debconf information
More information about the Pkg-nagios-devel
mailing list