Service or Hostcheck get acknowledge Status

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
scall
Posts: 1
Joined: Tue Sep 25, 2018 9:07 am

Service or Hostcheck get acknowledge Status

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Service or Hostcheck get acknowledge Status

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked