Setting up email notification

Marc Powell marc at ena.com
Fri Jan 8 05:47:06 CET 2010


On Jan 7, 2010, at 8:56 PM, xmanhosting wrote:

> and then I have tried to add the contact to a host (switch.cfg):
>  
> define host{
>  use  generic-switch  ; Inherit default values from a template
>  host_name Billion  ; The name we're giving to this switch
>  alias  Billion 7401 ; A longer name associated with the switch
>  address  192.168.1.254  ; IP address of the switch
>  hostgroups switches  ; Host groups this switch is associated with
>   contact         nagiosadmin
>  }
>  
> however when I run:
> 
> /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
> 
> I get:
> Processing object config file '/usr/local/nagios/etc/objects/switch.cfg'...
> Error: Invalid host object directive 'contact'

It's 'contacts', plural, not 'contact'.

--
Marc


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
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