[Eisfair] [NAGIOS] Hostname statt IP Adresse

Peter Bäumer peter at baeumer.homeunix.net
Di Mai 1 00:31:41 CEST 2012


Glück Auf! Peter S.,
Am 30.04.2012 18:23, schrieb Peter Schauder:
> Hi,
>
> nachdem mein neuer Xen langsam stabil läuft, habe ich mal wieder einen
> Nagios aufgesetzt (mit nagios-objects). So einiges hab ich auch schon
> zum laufen bekommen, anderes wehrt sich noch.
> Ein Problem bekomme ich aber derzeit nicht in den Griff: In der CT
> 4/12 steht, daß man die IP Adresse auch als Hostnamen angeben kann.
> Aber die Konfigschicht vom Eis weigert sich.
> Wäre das nicht ein Feature, was sinnvoll wäre? Ich vermute mal, wenn
> ich in /etc/check.d/nagios-host die Zeile
> NAGIOS_HOST_%_ADDRESS    -    NAGIOS_HOST_N       IPADDR
> auf
> NAGIOS_HOST_%_ADDRESS    -    NAGIOS_HOST_N       NONE
> ändere, kann ich den Hostnamen eingeben. Aber sind da andere
> Komplikationen zu erwarten?
>
> Gruß
> Peter Schauder

benutzt bitte an der stelle die IP-Adresse und nicht den Hostname bzw. 
den FQDN.
Hostname und FQDN sind vom einem funktionierenden DNS-Server abhängig, 
fällt der aus, fallen alle Check's mit der Abhängigkeit auf die Nase.

Nagios kann es zwar, ist aber nicht zu empfehlen.




http://nagios.sourceforge.net/docs/nagioscore-3-en.pdf Seite 87:

address: This directive is used to define the address of the host. Normally,
this is an IP address, although it could really be anything you
want (so long as it can be used to check the status of the host). You
can use a FQDN to identify the host instead of an IP address, but if
DNS services are not available this could cause problems. When
used properly, the $HOSTADDRESS$ macro will contain this
address. Note: If you do not specify an address directive in a host
definition, the name of the host will be used as its address. A word
of caution about doing this, however - if DNS fails, most of your
service checks will fail because the plugins will be unable to
resolve the host name.



MfG

Peter B.


Mehr Informationen über die Mailingliste Eisfair