Duplicate Email For the Critical Alert
Posted: Thu Mar 05, 2020 4:42 am
Hi,
I am getting duplicate alert mail for the same critical issues.
As per configuration it is suppose send alerts after 72 hours if any critical alert is triggered.
-------------------------------------------------------------------------------------------------------
Nagios Log
[1583399128] SERVICE NOTIFICATION: tp.dev.env;vwcapfisqcrbs2;Total Memory Usage;CRITICAL;notify-by-email;Memory usage: total:7167.55 MB - used: 5380.48 MB (75%) - free: 1787.07 MB (25%)
[1583399130] SERVICE NOTIFICATION: tp.dev.env;vwcapfisqcrbs2;Total Memory Usage;CRITICAL;notify-by-email;Memory usage: total:7167.55 MB - used: 5380.48 MB (75%) - free: 1787.07 MB (25%)
[1583399707] SERVICE NOTIFICATION: tp.dev.env;vwcapfisqcrbs2;Total Memory Usage;CRITICAL;notify-by-email;Memory usage: total:7167.55 MB - used: 5385.26 MB (75%) - free: 1782.28 MB (25%)
[1583399714] SERVICE NOTIFICATION: tp.dev.env;vwcapfisqcrbs2;Total Memory Usage;CRITICAL;notify-by-email;Memory usage: total:7167.55 MB - used: 5384.48 MB (75%) - free: 1783.07 MB (25%)
[1583399723] SERVICE NOTIFICATION: tp.dev.env;vwcapfisqcrbs2;Total Memory Usage;CRITICAL;notify-by-email;Memory usage: total:7167.55 MB - used: 5385.49 MB (75%) - free: 1782.06 MB (25%)
[1583399728] SERVICE NOTIFICATION: tp.dev.env;vwcapfisqcrbs2;Total Memory Usage;CRITICAL;notify-by-email;Memory usage: total:7167.55 MB - used: 5377.11 MB (75%) - free: 1790.44 MB (25%)
[1583399730] SERVICE NOTIFICATION: tp.dev.env;vwcapfisqcrbs2;Total Memory Usage;CRITICAL;notify-by-email;Memory usage: total:7167.55 MB - used: 5377.11 MB (75%) - free: 1790.44 MB (25%)
-------------------------------------------------------------------------------------------------------
Service Conf
define service{
host_name vwcapfisqcrbs2
service_description Total Memory Usage
check_command check_nt_memuse!60!75
max_check_attempts 3
normal_check_interval 5
retry_check_interval 3
check_period 24x7
notification_interval 4320
notification_period 24x7
notification_options c,r
contact_groups touchpoint
notifications_enabled 1
first_notification_delay 10
}
-------------------------------------------------------------------------------------------------------
contactgroups.cfg
define contactgroup{
contactgroup_name touchpoint
alias TP Env Team
members tp.dev.env
}
-------------------------------------------------------------------------------------------------------
contacts.cfg
define contact{
contact_name tp.dev.env
alias TP Environments
contactgroups touchpoint
host_notification_period 24x7
service_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,u,r
host_notification_commands host-notify-by-email
service_notification_commands notify-by-email
email [email protected]
}
-------------------------------------------------------------------------------------------------------
Let me know why I am getting this error, I have searched but unable to find the root cause.
When I try to send a custom alert from nagios portal [for the same critical alert] its not happening but its happening when nagios send the critical alert by itself.
Note: I have just given a single machine, this is happening for many machines for services.
I am getting duplicate alert mail for the same critical issues.
As per configuration it is suppose send alerts after 72 hours if any critical alert is triggered.
-------------------------------------------------------------------------------------------------------
Nagios Log
[1583399128] SERVICE NOTIFICATION: tp.dev.env;vwcapfisqcrbs2;Total Memory Usage;CRITICAL;notify-by-email;Memory usage: total:7167.55 MB - used: 5380.48 MB (75%) - free: 1787.07 MB (25%)
[1583399130] SERVICE NOTIFICATION: tp.dev.env;vwcapfisqcrbs2;Total Memory Usage;CRITICAL;notify-by-email;Memory usage: total:7167.55 MB - used: 5380.48 MB (75%) - free: 1787.07 MB (25%)
[1583399707] SERVICE NOTIFICATION: tp.dev.env;vwcapfisqcrbs2;Total Memory Usage;CRITICAL;notify-by-email;Memory usage: total:7167.55 MB - used: 5385.26 MB (75%) - free: 1782.28 MB (25%)
[1583399714] SERVICE NOTIFICATION: tp.dev.env;vwcapfisqcrbs2;Total Memory Usage;CRITICAL;notify-by-email;Memory usage: total:7167.55 MB - used: 5384.48 MB (75%) - free: 1783.07 MB (25%)
[1583399723] SERVICE NOTIFICATION: tp.dev.env;vwcapfisqcrbs2;Total Memory Usage;CRITICAL;notify-by-email;Memory usage: total:7167.55 MB - used: 5385.49 MB (75%) - free: 1782.06 MB (25%)
[1583399728] SERVICE NOTIFICATION: tp.dev.env;vwcapfisqcrbs2;Total Memory Usage;CRITICAL;notify-by-email;Memory usage: total:7167.55 MB - used: 5377.11 MB (75%) - free: 1790.44 MB (25%)
[1583399730] SERVICE NOTIFICATION: tp.dev.env;vwcapfisqcrbs2;Total Memory Usage;CRITICAL;notify-by-email;Memory usage: total:7167.55 MB - used: 5377.11 MB (75%) - free: 1790.44 MB (25%)
-------------------------------------------------------------------------------------------------------
Service Conf
define service{
host_name vwcapfisqcrbs2
service_description Total Memory Usage
check_command check_nt_memuse!60!75
max_check_attempts 3
normal_check_interval 5
retry_check_interval 3
check_period 24x7
notification_interval 4320
notification_period 24x7
notification_options c,r
contact_groups touchpoint
notifications_enabled 1
first_notification_delay 10
}
-------------------------------------------------------------------------------------------------------
contactgroups.cfg
define contactgroup{
contactgroup_name touchpoint
alias TP Env Team
members tp.dev.env
}
-------------------------------------------------------------------------------------------------------
contacts.cfg
define contact{
contact_name tp.dev.env
alias TP Environments
contactgroups touchpoint
host_notification_period 24x7
service_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,u,r
host_notification_commands host-notify-by-email
service_notification_commands notify-by-email
email [email protected]
}
-------------------------------------------------------------------------------------------------------
Let me know why I am getting this error, I have searched but unable to find the root cause.
When I try to send a custom alert from nagios portal [for the same critical alert] its not happening but its happening when nagios send the critical alert by itself.
Note: I have just given a single machine, this is happening for many machines for services.