Page 1 of 1

Service or Hostcheck get acknowledge Status

Posted: Tue Sep 25, 2018 9:18 am
by scall
Hi Everyone

I'm looking for a way how I can get the ACK "state" of a check inside of a check like I can use the state infos by the MACROS.
Need this information dropping metainfos inside of the check. BTW the ACKNOWLEDGE is not a usable state e.g. state in $LASTSERVICESTATEID$
Event_handler ist not "nice" I saw custom attributes somewhere but not available in Nagios.

Thx all
SCALL

Re: Service or Hostcheck get acknowledge Status

Posted: Tue Sep 25, 2018 4:56 pm
by scottwilkerson
There is no way to get this with a macro, tho only thing I can think to do would be to use the Status JSON CGI to query your host and grab the current value

You can access the query generator at

Code: Select all

http://YOUR_HOST/nagios/jsonquery.html