Nagios doesn't send notifications in order

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
xerez
Posts: 77
Joined: Wed Apr 22, 2015 7:50 am

Nagios doesn't send notifications in order

Post 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?
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Nagios doesn't send notifications in order

Post 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?
xerez
Posts: 77
Joined: Wed Apr 22, 2015 7:50 am

Re: Nagios doesn't send notifications in order

Post by xerez »

No, but he moment it is working fine again, I don't know what could happen.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios doesn't send notifications in order

Post by hsmith »

Let us know if it pops up again. I'll leave this topic open for now.
Former Nagios Employee.
me.
Locked