Wierd Issue last night with Email not being sent from nagios

Paul Fitzpatrick filsdepatrick at gmail.com
Fri Mar 12 18:37:47 CET 2010


BTW this is a developer's list, the users list is the proper place for these
sorts of questions

On Fri, Mar 12, 2010 at 9:33 AM, Paul Fitzpatrick
<filsdepatrick at gmail.com>wrote:

> 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.
>
> On Fri, Mar 12, 2010 at 7:02 AM, David Murphy <david at icewatermedia.com>wrote:
>
>>  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.
>>
>>
>>
>> Does anyone see anything amiss or am I correct in thinking this is likely
>> very odd bug that occurred.
>>
>>
>>
>> From nagios.log
>>
>> *[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%)*
>>
>> *[1268387923] SERVICE ALERT: DB2;/mnt/BINLOGS;OK;HARD;3;Disk OK -
>> /mnt/BINLOGS TOTAL: 408.482GB USED: 207.886GB (50%) FREE: 200.596GB (50%)
>> *
>>
>> *[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%)*
>>
>> * *
>>
>> * *
>>
>> CFG’s:
>>
>> * *
>>
>> * *
>>
>> *define service{*
>>
>> *        name                            SNMP-DISK-/mnt/BINLOGS*
>>
>> *        service_description             /mnt/BINLOGS*
>>
>> *        use                             generic-service*
>>
>> *        check_command
>> check_centreon_remote_storage!/mnt/BINLOGS!80!90!$USER2$!1*
>>
>> *        max_check_attempts                      5*
>>
>> *        normal_check_interval           5*
>>
>> *        retry_check_interval            5*
>>
>> *        active_checks_enabled           1*
>>
>> *        passive_checks_enabled          1*
>>
>> *        check_period                    24x7*
>>
>> *        notification_period             24x7*
>>
>> *        notification_interval           10*
>>
>> *        notification_options            w,u,c,r*
>>
>> *        notifications_enabled           1*
>>
>> *        first_notification_delay                5*
>>
>> *        contact_groups                  Supervisors*
>>
>> *        contacts                                Clint_Priest,
>> David_Murphy, TechMobiles*
>>
>> *        register                                0*
>>
>> *        ;TEMPLATE-HOST-LINK             Servers-Linux*
>>
>> *}*
>>
>> *define service{*
>>
>> *        host_name                               DB2*
>>
>> *        service_description             /mnt/BINLOGS*
>>
>> *        _SERVICE_ID                     121*
>>
>> *        use                             SNMP-DISK-/mnt/BINLOGS*
>>
>> *}*
>>
>> * *
>>
>> *define contact{*
>>
>> *        contact_name                    David_Murphy*
>>
>> *        alias                           dmurphy*
>>
>> *        contactgroups                   Supervisors*
>>
>> *        host_notification_period                24x7*
>>
>> *        service_notification_period             24x7*
>>
>> *        host_notification_options               d,u,r,f,s*
>>
>> *        service_notification_options    w,u,c,r,f,s*
>>
>> *        host_notification_commands              host-notify-by-email*
>>
>> *        service_notification_commands   service-notify-by-email*
>>
>> *        email                           dmurphy at zypsmedia.com*
>>
>> *}*
>>
>> * *
>>
>> *define contactgroup{*
>>
>> *        contactgroup_name                       Supervisors*
>>
>> *        alias                           Centreon supervisors*
>>
>> *        members                         Clint_Priest, David_Murphy,
>> Supervisor, TechMobiles*
>>
>> *}*
>>
>> * *
>>
>> *define command{*
>>
>> *        command_name                    service-notify-by-email*
>>
>> *        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$*
>>
>> *}*
>>
>>
>>
>>
>>
>> Thanks
>>
>> David Murphy
>>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Download Intel® Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>> _______________________________________________
>> Nagios-devel mailing list
>> Nagios-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-devel
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20100312/b99750b8/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list