BTW this is a developer's list, the users list is the proper place for these sorts of questions<br><br><div class="gmail_quote">On Fri, Mar 12, 2010 at 9:33 AM, Paul Fitzpatrick <span dir="ltr"><<a href="mailto:filsdepatrick@gmail.com">filsdepatrick@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">What I notice here is the log entry indicates a HARD state for the check when the check attempt is at 3. In the check definition you have max_check_attempts set to 5. You might look for a conflict in your config in connection with the max_check_attempts.<br>
<br><div class="gmail_quote"><div><div></div><div class="h5">On Fri, Mar 12, 2010 at 7:02 AM, David Murphy <span dir="ltr"><<a href="mailto:david@icewatermedia.com" target="_blank">david@icewatermedia.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal">We hate a critical issue last night where the DB ran out of
disk space, I see where nagios.log noticed this, however the system did not
fire off the service-notify-by-email as defined by the below cfgs.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Does anyone see anything amiss or am I correct in thinking
this is likely very odd bug that occurred. </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">From nagios.log</p>
<p class="MsoNormal"><i>[1268373600] CURRENT SERVICE STATE:
DB2;/mnt/BINLOGS;CRITICAL;HARD;3;Disk CRITICAL - /mnt/BINLOGS TOTAL: 408.482GB
USED: 385.826GB (94%) FREE: 22.656GB (6%)</i></p>
<p class="MsoNormal"><i>[1268387923] SERVICE ALERT:
DB2;/mnt/BINLOGS;OK;HARD;3;Disk OK - /mnt/BINLOGS TOTAL: 408.482GB USED:
207.886GB (50%) FREE: 200.596GB (50%)</i></p>
<p class="MsoNormal"><i>[1268404187] INITIAL SERVICE STATE:
DB2;/mnt/BINLOGS;OK;HARD;1;Disk OK - /mnt/BINLOGS TOTAL: 408.482GB USED:
17.303GB (4%) FREE: 391.179GB (96%)</i></p>
<p class="MsoNormal"><i> </i></p>
<p class="MsoNormal"><i> </i></p>
<p class="MsoNormal">CFG’s:</p>
<p class="MsoNormal"><i> </i></p>
<p class="MsoNormal"><i> </i></p>
<p class="MsoNormal"><i>define service{</i></p>
<p class="MsoNormal"><i> name SNMP-DISK-/mnt/BINLOGS</i></p>
<p class="MsoNormal"><i> service_description /mnt/BINLOGS</i></p>
<p class="MsoNormal"><i> use generic-service</i></p>
<p class="MsoNormal"><i> check_command
check_centreon_remote_storage!/mnt/BINLOGS!80!90!$USER2$!1</i></p>
<p class="MsoNormal"><i> max_check_attempts 5</i></p>
<p class="MsoNormal"><i> normal_check_interval 5</i></p>
<p class="MsoNormal"><i> retry_check_interval 5</i></p>
<p class="MsoNormal"><i> active_checks_enabled 1</i></p>
<p class="MsoNormal"><i> passive_checks_enabled 1</i></p>
<p class="MsoNormal"><i> check_period 24x7</i></p>
<p class="MsoNormal"><i> notification_period 24x7</i></p>
<p class="MsoNormal"><i> notification_interval 10</i></p>
<p class="MsoNormal"><i> notification_options w,u,c,r</i></p>
<p class="MsoNormal"><i> notifications_enabled 1</i></p>
<p class="MsoNormal"><i> first_notification_delay 5</i></p>
<p class="MsoNormal"><i> contact_groups Supervisors</i></p>
<p class="MsoNormal"><i> contacts
Clint_Priest, David_Murphy, TechMobiles</i></p>
<p class="MsoNormal"><i> register 0</i></p>
<p class="MsoNormal"><i> ;TEMPLATE-HOST-LINK Servers-Linux</i></p>
<p class="MsoNormal"><i>}</i></p>
<p class="MsoNormal"><i>define service{</i></p>
<p class="MsoNormal"><i> host_name DB2</i></p>
<p class="MsoNormal"><i> service_description /mnt/BINLOGS</i></p>
<p class="MsoNormal"><i> _SERVICE_ID 121</i></p>
<p class="MsoNormal"><i> use
SNMP-DISK-/mnt/BINLOGS</i></p>
<p class="MsoNormal"><i>}</i></p>
<p class="MsoNormal"><i> </i></p>
<p class="MsoNormal"><i>define contact{</i></p>
<p class="MsoNormal"><i> contact_name David_Murphy</i></p>
<p class="MsoNormal"><i> alias dmurphy</i></p>
<p class="MsoNormal"><i> contactgroups Supervisors</i></p>
<p class="MsoNormal"><i> host_notification_period 24x7</i></p>
<p class="MsoNormal"><i> service_notification_period 24x7</i></p>
<p class="MsoNormal"><i> host_notification_options d,u,r,f,s</i></p>
<p class="MsoNormal"><i> service_notification_options w,u,c,r,f,s</i></p>
<p class="MsoNormal"><i> host_notification_commands
host-notify-by-email</i></p>
<p class="MsoNormal"><i> service_notification_commands
service-notify-by-email</i></p>
<p class="MsoNormal"><i> email
<a href="mailto:dmurphy@zypsmedia.com" target="_blank">dmurphy@zypsmedia.com</a></i></p>
<p class="MsoNormal"><i>}</i></p>
<p class="MsoNormal"><i> </i></p>
<p class="MsoNormal"><i>define contactgroup{</i></p>
<p class="MsoNormal"><i> contactgroup_name Supervisors</i></p>
<p class="MsoNormal"><i> alias Centreon
supervisors</i></p>
<p class="MsoNormal"><i> members Clint_Priest,
David_Murphy, Supervisor, TechMobiles</i></p>
<p class="MsoNormal"><i>}</i></p>
<p class="MsoNormal"><i> </i></p>
<p class="MsoNormal"><i>define command{</i></p>
<p class="MsoNormal"><i> command_name service-notify-by-email</i></p>
<p class="MsoNormal"><i> command_line /usr/bin/printf
"%b" "***** centreon Notification *****\n\nNotification Type:
$NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress:
$HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATE$ Additional Info :
$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ alert -
$HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$</i></p>
<p class="MsoNormal"><i>}</i></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Thanks</p>
<p class="MsoNormal">David Murphy</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
</div>
</div>
<br></div></div>------------------------------------------------------------------------------<br>
Download Intel® Parallel Studio Eval<br>
Try the new software tools for yourself. Speed compiling, find bugs<br>
proactively, and fine-tune applications for parallel performance.<br>
See why Intel Parallel Studio got high marks during beta.<br>
<a href="http://p.sf.net/sfu/intel-sw-dev" target="_blank">http://p.sf.net/sfu/intel-sw-dev</a><br>_______________________________________________<br>
Nagios-devel mailing list<br>
<a href="mailto:Nagios-devel@lists.sourceforge.net" target="_blank">Nagios-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-devel</a><br>
<br></blockquote></div><br>
</blockquote></div><br>