Host File Clean-Up
Marc Powell
marc at ena.com
Mon Mar 27 17:17:02 CEST 2006
> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Pete Shelfo
> Sent: Monday, March 27, 2006 6:29 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Host File Clean-Up
>
> bAll my hosts definitions are setup the same way:
>
>
>
> # 'servername' host definition
>
> define host{
>
> use generic-host ; Name of host
template to
> use
>
> host_name servername
>
> alias servername
>
> address 0.0.0.0
>
> parents switch
>
> check_command check-host-alive
>
> max_check_attempts 10
>
> notification_interval 120
>
> notification_period 24x7
>
> notification_options d,u,r
>
> contact_groups sys-admins
>
> }
>
>
>
> Do I need the bottom half of my definition list for each host if my
> generic host definition template on the bottom of my host file already
> includes that information:
If your template already contains a variable entry you do not need to
re-specify it in the host/service definition unless it's changed so your
example is correct. Templates would be useless if you had to. With a
fully fleshed out template you might only need to specify use, host_name
and address in a host definition.
--
Marc
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list