Service State Type is not changed

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
parisa
Posts: 62
Joined: Tue Sep 25, 2018 3:18 am

Service State Type is not changed

Post by parisa »

Hello
I have defined some hosts and service in Nagios XI and I use passive check (SNMP Trap), the service has been defined as below:

define service {
host_name host_1,host_2,host_3,...
service_description ETH_LOS
use xiwizard_passive_service
max_check_attempts 2
retry_interval 1
active_checks_enabled 0
passive_checks_enabled 1
check_period 24x7
event_handler TRS_ETH_LOSS_Alarm
event_handler_enabled 1
notification_options w,c,u,r,f,
register 1
}

but I have faced with problem, I got some traps from one of the hosts, according to the traps and service configuration, when service goes to soft state after a minute it will go to hard state if alarm is not recovered.
but according to attached log, the service didn't go to hard state even after 2:25 seconds.
would you please guide me about the case?
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Service State Type is not changed

Post by scottwilkerson »

Being this service only receives traps, it will only update the non-OK state if it receives another trap because you have the max_check_attempts set to 2.

It would need to receive a second non-OK trap to go into a hard state.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
parisa
Posts: 62
Joined: Tue Sep 25, 2018 3:18 am

Re: Service State Type is not changed

Post by parisa »

@scottwilkerson Thanks for your answer.

I receive traps from a third party server, the traps are related to 2000 nodes, and I have limitation for access to the third party server.
based on you post, I need 2 non-ok traps that the state goes to hard. but my devices for any event send just a trap, and I'm not able to change their configuration
Is there any solution to combine passive and active check, at first it works as passive check but when is send a non-ok trap, if state of service didn't change to ok, this state change to hard state based on "max_check_attempts" and "retry_interval"?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Service State Type is not changed

Post by scottwilkerson »

I would change the following

Code: Select all

max_check_attempts 1
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
parisa
Posts: 62
Joined: Tue Sep 25, 2018 3:18 am

Re: Service State Type is not changed

Post by parisa »

Ok, thanks for your support
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Service State Type is not changed

Post by scottwilkerson »

parisa wrote:Ok, thanks for your support
No problem!
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked