oup {_name linux-servers; The name of the hostgroupLinux Servers; Long name of the grouplocalhost, host_mail, db, isp, for; Comma separated list of hosts that belong to this group
}
# A list of your Debian GNU/Linux servershostgroup {_name debian-serversDebian GNU/Linux Serverslocalhost, host_mail, db, isp, for, router_len58a
}
# Define a hostgroup for Windows machines
# All hosts that use the windows-server template will automatically be a member of this group
hostgroup {_name windows-servers; The name of the hostgroupWindows Servers; Long name of the group
}
# Create a new hostgroup for switches
hostgroup {_name routers; The name of the hostgroupNetwork Routers; Long name of the group
}
/etc/nagios3/objects/templates.cfg
# CONTACT TEMPLATES
# Generic contact definition template - This is NOT a real contact, just a template!
contact {generic-contact; The name of this contact template_notification_period 24x7; service notifications can be sent anytime_notification_period 24x7; host notifications can be sent anytime_notification_options w, u, c, r, f, s; send notifications for all service states, flapping events, and scheduled downtime events_notification_options d, u, r, f, s; send notifications for all host states, flapping events, and scheduled downtime events_notification_commands notify-service-by-email; send service notifications via email_notification_commands notify-host-by-email; send host notifications via email0; DONT REGISTER THIS DEFINITION - ITS NOT A REAL CONTACT, JUST A TEMPLATE!
}
# HOST TEMPLATES
# Generic host definition template - This is NOT a real host, just a template!
host {generic-host; The name of this host template_enabled 1; Host notifications are enabled_handler_enabled 1; Host event handler is enabled_detection_enabled 1; Flap detection is enabled_prediction_enabled 1; Failure prediction is enabled_perf_data 1; Process performance data_status_information 1; Retain status information across program restarts_nonstatus_information 1; Retain non-status information across program restarts_period 24x7; Send host notifications at any time0; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
}
# Linux host definition template - This is NOT a real host, just a template!
host {linux-server; The name of this host templategeneric-host; This template inherits other values ??from the generic-host template_period 24x7; By default, Linux hosts are checked round the clock_interval 5; Actively check the host every 5 minutes_interval 1; Schedule host check retries at 1 minute intervals_check_attempts 10; Check each Linux host 10 times (max) _command check-host-alive; Default command to check Linux hosts_period workhours; Linux admins hate to be woken up, so we only notify during the day
; Note that the notification_period variable is being overridden from
; the value that is inherited from the generic-host template! _interval 120; Resend notifications every 2 hours_options d, u, r; Only send notifications for specific host states_groups admins; Notifications get sent to the admins by default0; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
}
# Windows host definition template - This is NOT a real host, just a template!
host {windows-server; The name of this host templategeneric-host; Inherit default values ??from the generic-host template_period 24x7; By default, Windows servers are monitored round the clock_interval 5; Actively check the server every 5 minutes_interval 1; Schedule host check retries at 1 minute intervals_check_attempts 10; Check each server 10 times (max) _command check-host-alive; Default command to check if servers are alive _period 24x7; Send notification out at any time - day or night_interval 30; Resend notifications every 30 minutes_options d, r; Only send notifications for specific host states_groups admins; Notifications get sent to the admins by defaultwindows-servers; Host groups that Windows servers should be a member of0; DONT REGISTER THIS - ITS JUST A TEMPLATE
}
# We define a generic printer template that can be used for most printers we monitor
host {generic-printer; The name of...