<span style="font-weight: bold;">Contacts.cfg</span><br><br>define contact{<br> contact_name mis<br> alias mis<br> host_notification_period 24x7<br> service_notification_period 24x7
<br> host_notification_options d,r,u,f<br> service_notification_options c,r,w,f<br> host_notification_commands host-notify-by-email<br> service_notification_commands notify-by-email<br>
email <a href="mailto:admin@domain.com">admin@domain.com</a> (edited)<br> }<br><br><br><span style="font-weight: bold;">Services.cfg</span><br><br># Generic service definition template
<br>define service{<br> name generic-service ; Generic service name<br> active_checks_enabled 1 ; Active service checks are enabled<br> passive_checks_enabled 1 ; Passive service checks are enabled/accepted
<br> parallelize_check 1 ; Active service checks should be parallelized (Don't disable)<br> obsess_over_service 1 ; We should obsess over this service (if necessary)
<br> check_freshness 0 ; Default is to NOT check service 'freshness'<br> notifications_enabled 1 ; Service notifications are enabled<br> event_handler_enabled 1 ; Service event handler is enabled
<br> flap_detection_enabled 1 ; Flap detection is enabled<br> process_perf_data 1 ; Process performance data<br> retain_status_information 1 ; Retain status information across program restarts
<br> retain_nonstatus_information 1 ; Retain non-status information across program restarts<br> register 0 ; DONT REGISTER THIS DEFINITION - NOT A REAL SERVICE, JUST A TEMPLATE!
<br> }<br><br># Generic for all services<br>define service{<br> use generic-service<br> name basic-service<br> is_volatile 0
<br> check_period 24x7<br> max_check_attempts 5<br> normal_check_interval 5<br> retry_check_interval 1<br> notification_interval 5
<br> notification_period 24x7<br> register 0<br> }<br><br>define service{<br> use basic-service<br> name ping-service
<br> notification_options n<br> check_command check_ping!1000.0,20%!2000.0,60%<br> register 0<br> }<br><br>define service{<br> use basic-service
<br> name check-http<br> notification_options n<br> check_command check_http<br> register 0<br> }<br><br>define service{
<br> use basic-service<br> name check-site<br> notification_options w,u,c,r<br> check_command check_http!-H <a href="http://lagarde.lagardeinc.com">
lagarde.lagardeinc.com</a> -t 5 -s "LaGarde"<br> register 0<br> }<br><br>define service{<br> use basic-service<br> name check-smtp
<br> notification_options w,u,c,r<br> check_command check_smtp!-t 5 -e "<a href="http://mail.domain.com">mail.domain.com</a>"<br> register 0
<br> }<br><br><br>define service{<br> use ping-service<br> service_description PING<br> contact_groups mishelpdesk<br> hostgroup_name basic-clients
<br># host_name one_client<br> }<br><br>define service{<br> use check-http<br> service_description HTTP<br> contact_groups mishelpdesk<br> hostgroup_name basic-clients
<br>}<br><br>define service{<br> use check-site <br> service_description Site<br> contact_groups mishelpdesk<br> host_name lg02<br>}<br><br>define service{<br> use check-smtp
<br> service_description SMTP<br> contact_groups mishelpdesk<br> host_name lg01<br>}<br><br><br><div><span class="gmail_quote">On 6/22/07, <b class="gmail_sendername">Valdinger, Stephen (DOV, MSX)
</b> <<a href="mailto:svalding@doverchem.com">svalding@doverchem.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Can you post your definition and your
template that it uses? It may have something to do with your notification
options. Check your mail log and nagios log to see if anything happened behind
the scenes and post any funny or suspicious output. Thanks.</span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<div>
<p><font color="navy" face="Times New Roman" size="3"><span style="font-size: 12pt; color: navy;"> </span></font></p>
<p><font color="navy" face="Times New Roman" size="3"><span style="font-size: 12pt; color: navy;">Stephen Valdinger</span></font></p>
<p><font color="navy" face="Times New Roman" size="3"><span style="font-size: 12pt; color: navy;">MIS Helpdesk Coordinator</span></font></p>
<p><font color="navy" face="Times New Roman" size="3"><span style="font-size: 12pt; color: navy;">Dover Chemical Corporation</span></font></p>
<p><font color="navy" face="Times New Roman" size="3"><span style="font-size: 12pt; color: navy;">3676 Davis Rd NW</span></font><font color="navy"><span style="color: navy;"></span></font></p>
<p><font color="navy" face="Times New Roman" size="3"><span style="font-size: 12pt; color: navy;">Dover</span></font><font color="navy"><span style="color: navy;">, OH 44622</span></font><font color="navy"><span style="color: navy;">
</span></font></p>
<p><font color="navy" face="Times New Roman" size="3"><span style="font-size: 12pt; color: navy;">330-365-3622</span></font></p>
<p><font color="navy" face="Times New Roman" size="3"><span style="font-size: 12pt; color: navy;"><a href="mailto:stephen.valdinger@doverchem.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">stephen.valdinger@doverchem.com
</a></span></font></p>
<p><font color="navy" face="Times New Roman" size="3"><span style="font-size: 12pt; color: navy;"> </span></font></p>
<p><font color="navy" face="Times New Roman" size="3"><span style="font-size: 12pt; color: navy;"> </span></font></p>
</div>
<div>
<div style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">
<hr align="center" size="2" width="100%">
</span></font></div>
<p><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;"> Jerad Riggin
[mailto:<a href="mailto:jriggin@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jriggin@gmail.com</a>] <br>
<b><span style="font-weight: bold;">Sent:</span></b> Friday, June 22, 2007 10:56
AM<br>
<b><span style="font-weight: bold;">To:</span></b>
<a href="mailto:nagios-users@lists.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">nagios-users@lists.sourceforge.net</a><br>
<b><span style="font-weight: bold;">Subject:</span></b> [Nagios-users]
Notifications</span></font></p>
</div><span class="q">
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>
<div>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Sorry if this question is confusing.</span></font></p>
</div>
<div>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>
</div>
<div>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">I'm monitoring the HTTP service on a server. I have it set to
notify on w,u,c,r in services.cfg. I turned of HTTP to trigger a warning
state and I successfully received an e-mail. I turned HTTP back on and
successfully received a recovery warning. I then triggered another
warning and never received an e-mail and a notification wasn't listed in
nagios' web interface. Any ideas? </span></font></p>
</div>
</span></div>
</div>
</blockquote></div><br>