Page 1 of 1

Nagios doesn't send notifications in order

Posted: Mon Sep 28, 2015 3:53 am
by xerez
Hi, I am testing alerts in Nagios, I simulated a critical error and after a recovery. In the GUI, in Notifications is fine:

Code: Select all

hostname	Memory Usage	OK	09-28-2015 10:24:56	nagiosadmin	notify-service-by-email	Virtual Memory: 32% Physical Memory: 58% (<90%) : OK
hostname	Memory Usage	CRITICAL	09-28-2015 10:19:54	nagiosadmin	notify-service-by-email	Virtual Memory: 32% used (3365 MB / 10649 MB) Physical Memory: 58% used (2371 MB / 4096 MB) (>20%) : CRITICAL
But the emails alerts arrived bad, first the recovery, and four minutes later the critical:

Code: Select all

***** Nagios *****

Notification Type: RECOVERY

Service: Memory Usage
Host: hostname
Address: ip
State: OK

Date/Time: Mon Sept 28 10:24:56 CEST 2015

Additional Info:

Virtual Memory: 32% Physical Memory: 58% (90%) : OK

Code: Select all

***** Nagios *****

Notification Type: PROBLEM

Service: Memory Usage
Host: hostname
Address: ip
State: CRITICAL

Date/Time: Mon Sept 28 10:19:54 CEST 2015

Additional Info:

Virtual Memory: 32% used (3365 MB / 10649 MB) Physical Memory: 58% used (2371 MB / 4096 MB) (20%) : CRITICAL
Why does happen it?

Re: Nagios doesn't send notifications in order

Posted: Mon Sep 28, 2015 11:35 am
by jdalrymple
This appears perfect to me.

They are using the same notification command so the problem must almost certainly be in your mailing system. Is it possible that your mailing system has some sort of a greylisting functionality that puts a hold on E-mails?

Re: Nagios doesn't send notifications in order

Posted: Tue Sep 29, 2015 1:54 am
by xerez
No, but he moment it is working fine again, I don't know what could happen.

Re: Nagios doesn't send notifications in order

Posted: Tue Sep 29, 2015 9:38 am
by hsmith
Let us know if it pops up again. I'll leave this topic open for now.