Dynamic IP

Dan Davis hokie99cpe at gmail.com
Tue May 31 03:33:28 CEST 2005


> 
> Most of the commands in the checkcommands.cfg use the $HOSTADDRESS$,
> which is the specified IP address for the host configuration. Is there
> a macro which utilizes the alias setting in the host configuration?
> 

The address defined in the host object doesn't have to be an IP address...

>From http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host :
*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 availble this could cause problems. When used properly, the 
$HOSTADDRESS$ macro
<http://nagios.sourceforge.net/docs/2_0/macros.html>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.

-Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050530/c67cfd68/attachment.html>


More information about the Users mailing list