<div>That's true on check-http, but on check-site for one of my servers it has w,u,c,r and it worked once, but all alerts since then go unnotified.</div>
<div> </div>
<div>Also, how do you check a specific URL for http? It looks like nagios just uses the address in hosts.cfg and ignores the -H <a href="http://site.com">site.com</a> switch you add in services.cfg.<br><br> </div>
<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="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div lang="EN-US" vlink="blue" link="blue">
<div>
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">You are supplying a notification option of "n" inside the service definition for http. Should it not be set for w,c,r etc? try doing that and triggering something to happen again.
</span></font></p><span class="q">
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> </span></font></p>
<div>
<p><font face="Times New Roman" color="navy" size="3"><span style="FONT-SIZE: 12pt; COLOR: navy"> </span></font></p>
<p><font face="Times New Roman" color="navy" size="3"><span style="FONT-SIZE: 12pt; COLOR: navy">Stephen Valdinger</span></font></p>
<p><font face="Times New Roman" color="navy" size="3"><span style="FONT-SIZE: 12pt; COLOR: navy">MIS Helpdesk Coordinator</span></font></p>
<p><font face="Times New Roman" color="navy" size="3"><span style="FONT-SIZE: 12pt; COLOR: navy">Dover Chemical Corporation</span></font></p>
<p><font face="Times New Roman" color="navy" 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 face="Times New Roman" color="navy" 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 face="Times New Roman" color="navy" size="3"><span style="FONT-SIZE: 12pt; COLOR: navy">330-365-3622</span></font></p>
<p><font face="Times New Roman" color="navy" size="3"><span style="FONT-SIZE: 12pt; COLOR: navy"><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:stephen.valdinger@doverchem.com" target="_blank">stephen.valdinger@doverchem.com
</a></span></font></p>
<p><font face="Times New Roman" color="navy" size="3"><span style="FONT-SIZE: 12pt; COLOR: navy"> </span></font></p>
<p><font face="Times New Roman" color="navy" size="3"><span style="FONT-SIZE: 12pt; COLOR: navy"> </span></font></p></div></span>
<div>
<div style="TEXT-ALIGN: center" align="center"><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">
<hr align="center" width="100%" size="2">
</span></font></div>
<p><b><font face="Tahoma" size="2"><span style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</span></font></b><font face="Tahoma" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> Jerad Riggin [mailto:
<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:jriggin@gmail.com" target="_blank">jriggin@gmail.com</a>] <br><b><span style="FONT-WEIGHT: bold">Sent:</span></b> Friday, June 22, 2007 11:54 AM<br><b>
<span style="FONT-WEIGHT: bold">To:</span></b> Valdinger, Stephen (DOV, MSX)<br><b><span style="FONT-WEIGHT: bold">Cc:</span></b> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:nagios-users@lists.sourceforge.net" target="_blank">
nagios-users@lists.sourceforge.net</a><br><b><span style="FONT-WEIGHT: bold">Subject:</span></b> Re: [Nagios-users] Notifications</span></font></p></div>
<div><span class="e" id="q_113542a163cbcd6c_3">
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> </span></font></p>
<p style="MARGIN-BOTTOM: 12pt"><b><font face="Times New Roman" size="3"><span style="FONT-WEIGHT: bold; FONT-SIZE: 12pt">Contacts.cfg</span></font></b><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 onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:admin@domain.com" target="_blank">
admin@domain.com</a> (edited)<br> }<br><br><br><b><span style="FONT-WEIGHT: bold">Services.cfg</span></b><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-si
te
<br> notification_options w,u,c,r<br> check_command check_http!-H <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lagarde.lagardeinc.com/" target="_blank">
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 onclick="return top.js.OpenExtLink(window,event,this)" href="http://mail.domain.com/" target="_blank">
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></p>
<div>
<p><span><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">On 6/22/07, <b><span style="FONT-WEIGHT: bold">Valdinger, Stephen (DOV, MSX) </span></b><<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:svalding@doverchem.com" target="_blank">
svalding@doverchem.com</a>> wrote:</span></font></span></p>
<div vlink="purple" link="blue">
<div>
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">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 face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> </span></font></p>
<div>
<p><font face="Times New Roman" color="navy" size="3"><span style="FONT-SIZE: 12pt; COLOR: navy"> </span></font></p>
<p><font face="Times New Roman" color="navy" size="3"><span style="FONT-SIZE: 12pt; COLOR: navy">Stephen Valdinger</span></font></p>
<p><font face="Times New Roman" color="navy" size="3"><span style="FONT-SIZE: 12pt; COLOR: navy">MIS Helpdesk Coordinator</span></font></p>
<p><font face="Times New Roman" color="navy" size="3"><span style="FONT-SIZE: 12pt; COLOR: navy">Dover Chemical Corporation</span></font></p>
<p><font face="Times New Roman" color="navy" size="3"><span style="FONT-SIZE: 12pt; COLOR: navy">3676 Davis Rd NW</span></font></p>
<p><font face="Times New Roman" color="navy" 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 face="Times New Roman" color="navy" size="3"><span style="FONT-SIZE: 12pt; COLOR: navy">330-365-3622</span></font></p>
<p><font face="Times New Roman" color="navy" size="3"><span style="FONT-SIZE: 12pt; COLOR: navy"><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:stephen.valdinger@doverchem.com" target="_blank">stephen.valdinger@doverchem.com
</a></span></font></p>
<p><font face="Times New Roman" color="navy" size="3"><span style="FONT-SIZE: 12pt; COLOR: navy"> </span></font></p>
<p><font face="Times New Roman" color="navy" 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" width="100%" size="2">
</span></font></div>
<p><b><font face="Tahoma" size="2"><span style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</span></font></b><font face="Tahoma" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> Jerad Riggin [mailto:
<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:jriggin@gmail.com" target="_blank">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 onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:nagios-users@lists.sourceforge.net" target="_blank">nagios-users@lists.sourceforge.net</a><br><b><span style="FONT-WEIGHT: bold">
Subject:</span></b> [Nagios-users] Notifications</span></font></p></div>
<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></div></div></div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> </span></font></p></span></div></div></div></blockquote></div><br>