> > Hello,
> >
> > I updated my icinga installation to version 1.0.2 with IDO. 
> Since then the
> > check_dns throws the following error:
> >
> > ***** Icinga *****
> >
> > Notification Type: PROBLEM
> >
> > Service: DNS
> > Host: XXXXX
> > Address: xx.xx.xx.xx
> > State: UNKNOWN
> >
> > Date/Time: Wed Jul 14 13:41:27 CEST 2010
> >
> > Additional Info:
> >
> > check_dns: Invalid hostname/address -
> >
> >
> >
> > When using the plugin interactively I get no errors.
> >
> > ici...@xxxx:~> /usr/local/icinga/libexec/check_dns --version
> > check_dns v1.4.14 (nagios-plugins 1.4.14)
> >
> > ici...@xxxx:~> /usr/local/icinga/libexec/check_dns -H xx.xx.xx.xx
> > DNS OK: 0,009 seconds response time. Xx.xx.xx.xx returns
> > XXXXX.tm.iabg.de.|time=0,008512s;;;0,000000
> >
> > In /var/log/messages I get the following entry:
> > Jul 14 17:01:27 XXXXX icinga: SERVICE ALERT:
> > XXXXX;DNS;UNKNOWN;HARD;3;check_dns: Invalid hostname/address -
> >
> > What is wrong and how can I  get more information from this 
> check or be able
> > to debug it?
> >
> > Ansgar
> Please check that the service and command definition result 
> in the same 
> call of the plugin as the call on the command line. If unsure please 
> post both definitions.

Resource.cfg
# Sets $USER1$ to be the path to the plugins
$USER1$=/usr/local/icinga/libexec

Commands.cfg
# 'check_dns' command definition
define command{
        command_name    check_dns
        command_line    $USER1$/check_dns -H $HOSTADDRESS$ $ARG1$
        }

Myconfig.cfg
define service{
        use generic-service
        host_name               XXXXX
        service_description     DNS
        check_command           check_dns
        process_perf_data       0
        }

And a direct call of the plugin as user icinga 
ici...@xxxxx:~> /usr/local/icinga/libexec/check_dns -H xx.xx.xx.xx
DNS OK: 0,110 seconds response time. Xx.xx.xx.xx returns
XXXXX.tm.iabg.de.|time=0,110431s;;;0,000000

I haven't touched the configs but did the updates from 1.0 to 1.0.1 and
1.0.2 and this error was introduced by the update to 1.0.2 which otherwise
went very smoothly.

Industrieanlagen-Betriebsgesellschaft mbH
Vorsitzender des Aufsichtsrats: RA Engelbert Kupka MdL a.D.
Geschaeftsfuehrung: Prof. Dr.-Ing. Rudolf F. Schwarz
Sitz der Gesellschaft: Einsteinstrasse 20, 85521 Ottobrunn
Registergericht: Amtsgericht Muenchen
Handelsregister Nr.: HRB 5499

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/icinga-users

Reply via email to