API $SERVICESTATETYPE$

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Maxwellb99
Posts: 97
Joined: Tue Jan 26, 2016 5:29 pm

API $SERVICESTATETYPE$

Post by Maxwellb99 »

Hello,

Can you point me to the $SERVICESTATETYPE$ from the API? I assume it would be under “Help” -> “Objects Reference” -> “objects/statehistory”

My guess is it would be in here:
"state_change": "1",
"state": "2",
"state_type": "0",
"current_check_attempt": "1",
"max_check_attempts": "6",
"last_state": "0",

I'm just seeing any K:V pairs with a value of [Hard, Soft]

Thanks,
Maxwell Ramirez
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: API $SERVICESTATETYPE$

Post by npolovenko »

@Maxwellb99, State type would be it. 0 for soft and 1 for hard.
https://assets.nagios.com/downloads/nag ... estatetype
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked