diff --git a/overlay/opt/nagios/etc/objects/001-templates.cfg b/overlay/opt/nagios/etc/objects/001-templates.cfg index b8d831b..721a0cc 100644 --- a/overlay/opt/nagios/etc/objects/001-templates.cfg +++ b/overlay/opt/nagios/etc/objects/001-templates.cfg @@ -145,6 +145,21 @@ define host{ register 0 ; DONT REGISTER THIS - ITS JUST A TEMPLATE } +define host{ + name nameservers + use generic-host + hostgroups nameservers + check_period 24x7 + check_interval 2 + retry_interval 1 + max_check_attempts 3 + check_command check-host-alive + notification_period 24x7 + notification_interval 120 + notification_options d,u,r + contact_groups admins + register 0 +} diff --git a/overlay/opt/nagios/etc/objects/200-hostgroups.cfg b/overlay/opt/nagios/etc/objects/200-hostgroups.cfg index 4360651..5e2c840 100644 --- a/overlay/opt/nagios/etc/objects/200-hostgroups.cfg +++ b/overlay/opt/nagios/etc/objects/200-hostgroups.cfg @@ -32,3 +32,10 @@ define hostgroup{ alias Network Devices - Access Points members ap-1-1-garage.in.thelinuxpro.net,ap-1-2-office.in.thelinuxpro.net,ap-2-1-office.in.thelinuxpro.net,ap-2-2-mbr.in.thelinuxpro.net,ap-2-3-kbr.in.thelinuxpro.net } + +### Hostgroup - nameservers +define hostgroup{ + hostgroup_name nameservers + alias Nameservers + members dns01.in.thelinuxpro.net,dns02.in.thelinuxpro.net +}