Page 1 of 1

[Nagios-devel] Wierd Issue last night with Email not being sent

Posted: Fri Mar 12, 2010 4:30 pm
by Guest
This is a multi-part message in MIME format.

------=_NextPart_000_00E8_01CAC1C2.B68F6EF0
Content-Type: text/plain;
charset="US-ASCII"
Content-Transfer-Encoding: 7bit

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 [email protected]

}



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






------=_NextPart_000_00E8_01CAC1C2.B68F6EF0
Content-Type: text/html;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:x=3D"urn:schemas-microsoft-com:office:excel" =
xmlns:p=3D"urn:schemas-microsoft-com:office:powerpoint" =
xmlns:a=3D"urn:schemas-microsoft-com:office:access" =
xmlns:dt=3D"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" =
xmlns:s=3D"uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" =
xmlns:rs=3D"urn:schemas-microsoft-com:rowset" xmlns:z=3D"#RowsetSchema" =
xmlns:b=3D"urn:schemas-microsoft-com:office:publisher" =
xmlns:ss=3D"urn:schemas-microsoft-com:office:spreadsheet" =
xmlns:c=3D"urn:schemas-microsoft-com:office:component:spreadsheet

...[email truncated]...


This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]