Page 1 of 1

nagios xi not sending notifications for one service

Posted: Fri Jul 11, 2014 11:27 am
by opensys
Good afternoon.
I have two services on the same host. Both are configured to send notification to the same contacts. But only one service sends notification.

The configuration of services like this:

define service {
host_name VSQL
service_description AUTOMATE:Erro de Acesso
check_command check_nrpe!AUTOMATE_ERRO!!!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
flap_detection_enabled 0
notification_interval 60
first_notification_delay 0
notification_period xi_timeperiod_24x7
notifications_enabled 1
contacts fernando,marcelo,nagiosadmin
_xiwizard windowsdesktop
register 1
}

define service {
host_name VSQL
service_description AUTOMATE:Fila
check_command check_nrpe!AUTOMATE_FILA!!!!!!!
max_check_attempts 5
check_interval 5
retry_interval 5
check_period xi_timeperiod_24x7
flap_detection_enabled 0
notification_interval 60
first_notification_delay 0
notification_period xi_timeperiod_24x7
notifications_enabled 1
contacts fernando,marcelo,nagiosadmin
_xiwizard windowsdesktop
register 1

The change of status to one of the services does not even appear in the report State History.
The scripts run on the host are similar and are returning the staus properly

I appreciate if you can help me

Re: nagios xi not sending notifications for one service

Posted: Fri Jul 11, 2014 1:25 pm
by lmiltchev
The change of status to one of the services does not even appear in the report State History
The service status should change to hard non-ok in order for the alert to be sent. Can you run the actual commands in the CLI for both services, and show us the output?

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H <client IP> -t 60 -c AUTOMATE_ERRO
/usr/local/nagios/libexec/check_nrpe -H <client IP> -t 60 -c AUTOMATE_FILA

Re: nagios xi not sending notifications for one service

Posted: Fri Jul 11, 2014 2:05 pm
by opensys
lmiltchev wrote:
The change of status to one of the services does not even appear in the report State History
The service status should change to hard non-ok in order for the alert to be sent. Can you run the actual commands in the CLI for both services, and show us the output?

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H <client IP> -t 60 -c AUTOMATE_ERRO
/usr/local/nagios/libexec/check_nrpe -H <client IP> -t 60 -c AUTOMATE_FILA

[root@srvnagios ~]# /usr/local/nagios/libexec/check_nrpe -H <IP> -t 60 -c AUTOMATE_FILA
OK - 0 |'fila'=0

[root@srvnagios ~]# /usr/local/nagios/libexec/check_nrpe -H <IP> -t 60 -c AUTOMATE_ERRO
OK

simulating error

[root@srvnagios ~]# /usr/local/nagios/libexec/check_nrpe -H <IP> -t 60 -c AUTOMATE_ERRO
CRITICAL - PROC_ID: 13745, DATA: Jul 11 2014 1:40PM, MENSAGEM: EX0709 - RECINTO INFORMADO NAO, NUMERO DESPACHO: 21406858080, QUANTIDADE VOLUME:4998, CONTEINER: SUDU6113132, LACRE: BOLT4400950, CONTEINER: SUDU6085745

In Service Detail status appears as critical in red but notification are not sent. and change status not appear in the report State History

Re: nagios xi not sending notifications for one service

Posted: Fri Jul 11, 2014 2:13 pm
by lmiltchev
Go to:

Reports->State History->Limit To = VSQL->State Types = Both->Update
Reports->Notifications->type "AUTOMATE" in the search bar and hit "Enter".

Show us screenshots of both pages.

Re: nagios xi not sending notifications for one service

Posted: Fri Jul 11, 2014 2:14 pm
by abrist
Does it fail all retries? As previously mentioned, if it does not change to a HARD problem state, no notifications will be sent.

Re: nagios xi not sending notifications for one service

Posted: Fri Jul 11, 2014 2:56 pm
by opensys
abrist wrote:Does it fail all retries? As previously mentioned, if it does not change to a HARD problem state, no notifications will be sent.
OK, Tank you. solved by changing the parameter Max check attempts