hosts.config
Layne Meier
lmeier at ajc.com
Mon Nov 10 15:38:54 CET 2008
Would it be okay then to have a host entry in the hosts.cfg file like
this based upon the response I received from Dennis Hünsler:
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
contacts lmeier
notification_interval 30
notification_period 24x7
notification_options d,u,r
}
Thank you,
Layne Meier
Atlanta Journal-Constitution
On Nov 7, 2008, at 2:21 AM, Dennis Hünseler wrote:
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 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. 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 <lmeier at ajc.com> 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
}
In place of the contact_groups as being defined as router-admins, can
you put the name of an actual person there (from the contacts.cfg) ie;
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 lmeier
notification_interval 30
notification_period 24x7
notification_options d,u,r
}
Or is there a different command that needs to go there:
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 lmeier
notification_interval 30
notification_period 24x7
notification_options d,u,r
}
Thank you,
Layne Meier
Atlanta Journal-Constitution
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20081110/0635261e/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