<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18702"></HEAD>
<BODY>
<DIV><SPAN class=781075002-08012010><FONT size=2>Hello,</FONT></SPAN></DIV>
<DIV><SPAN class=781075002-08012010><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=781075002-08012010><FONT size=2>I am trying to set up email
notification.</FONT></SPAN></DIV>
<DIV><SPAN class=781075002-08012010><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=781075002-08012010><STRONG><FONT size=2>In my contacts.cfg file
I have</FONT></STRONG></SPAN></DIV>
<DIV><SPAN class=781075002-08012010><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=781075002-08012010><FONT size=2>define
contact{<BR>contact_name
nagiosadmin<BR> use generic-contact ;
Inherit default values from generic-contact template (defined
above)<BR>alias
Nagios Admin ; Full name of user</FONT></SPAN></DIV>
<DIV><SPAN class=781075002-08012010><FONT
size=2>email
</FONT><A href="mailto:anthony@xmanhosting.com.au"><FONT
size=2>anthony@xmanhosting.com.au</FONT></A><FONT size=2> ; <<*****
CHANGE THIS TO YOUR EMAIL ADDRESS
******<BR> }</FONT></SPAN></DIV>
<DIV><SPAN class=781075002-08012010><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=781075002-08012010><FONT size=2><STRONG>and then I have tried
to add the contact to a host (switch.cfg):</STRONG></FONT></SPAN></DIV>
<DIV><SPAN class=781075002-08012010><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=781075002-08012010><FONT size=2>define
host{<BR> use generic-switch ; Inherit default values
from a template<BR> host_name Billion ; The name we're
giving to this switch<BR> alias Billion 7401 ; A longer
name associated with the
switch<BR> address 192.168.1.254 ; IP address of the
switch<BR> hostgroups switches ; Host groups this switch is
associated
with<BR><STRONG> contact
nagiosadmin</STRONG><BR> }</FONT></SPAN></DIV>
<DIV><SPAN class=781075002-08012010><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=781075002-08012010><FONT size=2>however when I
run:</FONT></SPAN></DIV>
<DIV><SPAN class=781075002-08012010><FONT size=2
face="Times New Roman"><BR><STRONG>/usr/local/nagios/bin/nagios -v
/usr/local/nagios/etc/nagios.cfg</STRONG><BR></FONT><FONT size=2
face="Times New Roman"><BR>I get:</FONT></DIV>
<DIV><PRE><FONT size=2 face="Times New Roman"><STRONG>Processing object config file '/usr/local/nagios/etc/objects/switch.cfg'...<BR>Error: Invalid host object directive 'contact'.<BR>Error: Could not add object property in file '/usr/local/nagios/etc/objects/switch.cfg' on line 30.<BR>Error processing object config files!</STRONG></FONT><FONT size=2 face="Times New Roman"><BR><BR></FONT></PRE><PRE><FONT size=2 face="Times New Roman">Is someone able to assist me to get notificatio<SPAN class=781075002-08012010>n</SPAN>s working?</FONT></PRE><PRE><FONT size=2 face="Times New Roman">Thanks for any help</FONT></PRE><PRE><FONT size=2 face="Times New Roman">Kind regards,</FONT></PRE><PRE><FONT size=2 face="Times New Roman">Anthony</FONT></PRE></SPAN></DIV></BODY></HTML>