nagios xi not sending notifications for one service

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
opensys
Posts: 17
Joined: Fri Sep 27, 2013 7:58 am

nagios xi not sending notifications for one service

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: nagios xi not sending notifications for one service

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
opensys
Posts: 17
Joined: Fri Sep 27, 2013 7:58 am

Re: nagios xi not sending notifications for one service

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: nagios xi not sending notifications for one service

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: nagios xi not sending notifications for one service

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
opensys
Posts: 17
Joined: Fri Sep 27, 2013 7:58 am

Re: nagios xi not sending notifications for one service

Post 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
Locked