[Pkg-nagios-devel] Bug#505610: Bug#505610: nagios-plugins-basic: check_cups does not work

Jan Wagner waja at cyconet.org
Fri Nov 14 20:58:01 UTC 2008


Hi Maximilian,

On Thursday 13 November 2008 20:56, Maximilian Gaß wrote:
> nagios-plugins-basic defines a check command check_cups, which does not
> seem to work correctly. I tested it against two CUPS instances running
> on Debian servers (both Etch).

I realized, that cups changed it's behavior from sarge to etch. The command 
did work absolutly fine for sarge, but on etch cups it doesn't.

> I eventually found out how to fix it: command_line should read
> /usr/lib/nagios/plugins/check_http -I '$HOSTADDRESS$' -p 631

Looking at the usage: check_http -H <vhost> | -I <IP-address>

This means with "-I" we need an IP ... the problem is, '$HOSTADDRESS$' CAN be 
an IP, but it DOESN'T HAVE to. Right from the documentation: "You can use a 
FQDN to identify the host instead of an IP address, but if DNS services are 
not availble this could cause problems."
With "-H" we need a FQDN ... but '$HOSTNAME$' does also not fit the 
requirement: "This directive is used to define a short name used to identify 
the host. [...] When used properly, the $HOSTNAME$ macro will contain this 
short name."

This means, it depends heavily on how "host_name" and "address" is used in the 
host definition, even both variants can lead into a not working check 
definition.

Maybe anybody else has some suggestions.

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: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20081114/1dd6ebcc/attachment.pgp 


More information about the Pkg-nagios-devel mailing list