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
nagios xi not sending notifications for one service
Re: nagios xi not sending notifications for one service
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?The change of status to one of the services does not even appear in the report State History
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_FILABe sure to check out our Knowledgebase for helpful articles and solutions!
Re: nagios xi not sending notifications for one service
lmiltchev wrote: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?The change of status to one of the services does not even appear in the report State History
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
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.
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!
Re: nagios xi not sending notifications for one service
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.
"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.
Re: nagios xi not sending notifications for one service
OK, Tank you. solved by changing the parameter Max check attemptsabrist wrote:Does it fail all retries? As previously mentioned, if it does not change to a HARD problem state, no notifications will be sent.