[Pkg-nagios-devel] Bug#545940: Bug#545940: check_ircd: argument handling

Jan Wagner waja at cyconet.org
Thu Sep 10 08:10:06 UTC 2009


tag 545940 + unreproducible moreinfo
thanks

Hi Hendrik,

thanks for your bugreport.

On Thursday 10 September 2009 09:01:02 Hendrik Jaeger wrote:
> 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$'

Unfortunately I can't reproduce your effect:

nagios:~# dpkg -l | grep nagios-plugins-basic ii nagios-plugins-basic 1.4.12-5 
plugins for the nagios network monitoring an
nagios:~# /usr/lib/nagios/plugins/check_ircd -H 'irc.freenode.org' -p '6667'
Critical Number Of Clients Connected : 6456 (Limit = 100)
nagios:~# /usr/lib/nagios/plugins/check_ircd --hostname 'irc.freenode.org' -p 
'6667'
Critical Number Of Clients Connected : 6456 (Limit = 100)
nagios:~# /usr/lib/nagios/plugins/check_ircd 'irc.freenode.org' -p '6667'
Critical Number Of Clients Connected : 6457 (Limit = 100)

Could you please be more verbose? Could you please try to check also against 
'irc.freenode.org'?

Thanks and with kind regards, Jan.
-- 
Never write mail to <waja at spamfalle.info>, you have been warned!
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GIT d-- s+: a- C+++ UL++++ P+ L+++ E- W+++ N+++ o++ K++ w--- O M V- PS PE
Y++ PGP++ t-- 5 X R tv- b+ DI- D++ G++ e++ h-- r+++ y+++
------END GEEK CODE BLOCK------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20090910/9dcfd566/attachment-0001.pgp>


More information about the Pkg-nagios-devel mailing list