hosts.config

Layne Meier lmeier at ajc.com
Mon Nov 10 16:18:00 CET 2008


That's what I'm trying to find out.  Can I put an individual contact  
within the contact_groups list?

ie;
contact_groups			router-admins,lmeier


Thank you,
Layne Meier
AJC Information Technology
Atlanta Journal-Constitution
A Cox Newspaper



On Nov 10, 2008, at 10:06 AM, Assaf Flatto wrote:

I may be mistaken , but i don't think you can /need to define both  
contact groups and individual
contacts in the host declaration.

Besides that - the definitions look fine .




On Monday 10 November 2008 14:38:54 Layne Meier wrote:
> 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



-- 
Assaf Flatto
SSP Ops Team
Linux System Administrator
169 Euston Road, London, NW1 2AE





IMPORTANT . this email and the information in it may be confidential,  
legally
privileged and/or protected by law. It is intended solely for the use  
of the
person to whom it is addressed. If you are not the intended recipient,  
please
notify the sender immediately and do not disclose the contents to any  
other
person, use it for any purpose, or store or copy the information in  
any medium.
Please also delete all copies of this email and any attachments from  
your
system.

We cannot guarantee the security or confidentiality of email  
communications. We
do not accept any liability for losses or damages that you may suffer  
as a
result of your receipt of this email including but not limited to  
computer
service or system failure, access delays or interruption, data non- 
delivery or
mis-delivery, computer viruses or other harmful components.

Copyright in this email and any attachments belong to Select Service  
Partner UK
Limited. Should you communicate with anyone at Select Service Partner  
UK Limited by
email, you consent to us monitoring and reading any such correspondence.

Nothing in this email shall be taken or read as suggesting, proposing or
relating to any agreement concerted practice or other practice that  
could
infringe UK or EC competition legislation.

Select Service Partner UK Limited is a company registered in England  
and Wales
(company number 05687183) whose registered office is at 1 The Heights,  
Brooklands, Weybridge. Surrey. KT13 0NY



-------------------------------------------------------------------------
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=/
_______________________________________________
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


-------------------------------------------------------------------------
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=/
_______________________________________________
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