hosts.config

Dennis Hünseler dennis at huenseler.net
Fri Nov 7 08:21:09 CET 2008



Hi Layne, 

regarding the config you can configure contacts in stead of complete
groups, but the keyword is contactS not contact as in your example :-) 

CONTACTS: This is a list of the _short names_ of the contacts [1] that
should be notified whenever there are problems (or recoveries) with this
host. Multiple contacts should be separated by commas. Useful if you want
notifications to go to just a few people and don't want to configure
contact groups [2]. You must specify at least one contact or contact group
in each host definition. 

Regards, Dennis 

On Thu, 6 Nov 2008 10:54:35 -0500, Layne Meier  wrote: I have a question
for anyone that can answer this for me. From the documentation, in
configuring a host, this is the example given: 

define host{
 host_name bogus-router
 alias Bogus Router #1
 address 192.168.1.254
 parents server-backbone
 check_command check-host-alive
 max_check_attempts 5
 check_period 24x7
 process_perf_data 0
 retain_nonstatus_information 0

contact_groups router-admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }

define host{
 host_name bogus-router
 alias Bogus Router #1
 address 192.168.1.254
 parents server-backbone
 check_command check-host-alive
 max_check_attempts 5
 check_period 24x7
 process_perf_data 0
 retain_nonstatus_information 0
 contact_groups router-admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }

define host{
 host_name bogus-router
 alias Bogus Router #1
 address 192.168.1.254
 parents server-backbone
 check_command check-host-alive
 max_check_attempts 5
 check_period 24x7
 process_perf_data 0
 retain_nonstatus_information 0
 contact_groups router-admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }

define host{
 host_name bogus-router
 alias Bogus Router #1
 address 192.168.1.254
 parents server-backbone
 check_command check-host-alive
 max_check_attempts 5
 check_period 24x7

process_perf_data 0
 retain_nonstatus_information 0
 contact_groups router-admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }

define host{
 host_name bogus-router
 alias Bogus Router #1
 address 192.168.1.254
 parents server-backbone
 check_command check-host-alive
 max_check_attempts 5
 check_period 24x7
 process_perf_data 0
 retain_nonstatus_information 0
 contact_groups router-admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }

define host{
 host_name bogus-router
 alias Bogus Router #1
 address 192.168.1.254
 parents server-backbone
 check_command check-host-alive
 max_check_attempts 5
 check_period 24x7
 process_perf_data 0
 retain_nonstatus_information 0
 contact_groups router-admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }

define host{
 host_name bogus-router
 alias Bogus Router #1
 address 192.168.1.254
 parents server-backbone
 check_command
check-host-alive
 max_check_attempts 5
 check_period 24x7
 process_perf_data 0
 retain_nonstatus_information 0
 contact_groups router-admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }

define host{
 host_name bogus-router
 alias Bogus Router #1
 address 192.168.1.254
 parents server-backbone
 check_command check-host-alive
 max_check_attempts 5
 check_period 24x7
 process_perf_data 0
 retain_nonstatus_information 0
 contact_groups router-admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }

define host{
 host_name bogus-router
 alias Bogus Router #1
 address 192.168.1.254
 parents server-backbone
 check_command check-host-alive
 max_check_attempts 5
 check_period 24x7
 process_perf_data 0
 retain_nonstatus_information 0
 contact_groups router-admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }

define host{
 host_name bogus-router
 alias Bogus Router #1
 address
192.168.1.254
 parents server-backbone
 check_command check-host-alive
 max_check_attempts 5
 check_period 24x7
 process_perf_data 0
 retain_nonstatus_information 0
 contact_groups router-admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }

define host{
 host_name bogus-router
 alias Bogus Router #1
 address 192.168.1.254
 parents server-backbone
 check_command check-host-alive
 max_check_attempts 5
 check_period 24x7
 process_perf_data 0
 retain_nonstatus_information 0
 contact_groups router-admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }
  

Links:
------
[1] http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#contact
[2]
http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#contactgroup
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20081107/6dc5c7fa/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
-------------- next part --------------
_______________________________________________
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