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.
Clear ACK on state information change or performance data
Re: Clear ACK on state information change or performance dat
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.
Now I'm not particularly familiar with Groundworks so it's possible that already has a backend DB you can query.