Clear ACK on state information change or performance data

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
phundisk
Posts: 1
Joined: Wed Sep 19, 2012 4:18 pm

Clear ACK on state information change or performance data

Post by phundisk »

We have several custom nagios checks which return users in the error state but they all get lumped into one check. (yeah I know we could have multiple, but you must trust me this is not feasible at the moment with current setup). The users are reported either in the status information field or in the performance data field. I would like to have a way (possibly a script that I am going to write in Python or Perl) to clear the ACK if this changes (i.e. another user is found to be logged off).

Does anyone know of any thing like this already? Is there a command line tool I can query nagios with to pipe into a script I can create? Willing to open source it if it works out well enough. Also, FYI, I am using groundwork community edition nagios.
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: Clear ACK on state information change or performance dat

Post by jsmurphy »

I don't think there's anything like that already but I think the best way to accomplish this would probably be by using the NDOUtils plugin to sync nagios info to a database and use that as your source for querying information. Anything else would just end up being a rather ugly hack as there's no way to extract info directly from the Nagios application.

Now I'm not particularly familiar with Groundworks so it's possible that already has a backend DB you can query.
Locked