Page 1 of 1

API $SERVICESTATETYPE$

Posted: Tue Dec 18, 2018 4:48 pm
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

Re: API $SERVICESTATETYPE$

Posted: Tue Dec 18, 2018 6:00 pm
by npolovenko
@Maxwellb99, State type would be it. 0 for soft and 1 for hard.
https://assets.nagios.com/downloads/nag ... estatetype