Is it possible to ack nagios alerts from the terminal on a remote workstation?

Posted by cat pants on Server Fault See other posts from Server Fault or by cat pants
Published on 2012-03-01T18:07:52Z Indexed on 2014/06/02 15:32 UTC
Read the original article Hit count: 156

Filed under:

I have nagios alerts set up to come through jabber with an http link to ack.

Is is possible there is a script I can run from a terminal on a remote workstation that takes the hostname as a parameter and acks the alert?

./ack hostname

The benefit, while seemingly mundane, is threefold. First, take http load off nagios. Secondly, nagios http pages can take up to 10-20 seconds to load, so I want to save time there. Thirdly, avoiding slower use of mouse + web interface + firefox/other annoyingly slow browser.

Ideally, I would like a script bound to a keyboard shortcut that simply acks the most recent alert. Finally, I want to take the inputs from a joystick, buttons and whatnot, and connect one to a big red button bound to the script so I can just ack the most recent nagios alert by hitting the button lol. (It would be rad too if the button had a screen on the enclosure that showed the text of the alert getting acked lol)

Make fun of me all you want, but this is actually something that would be useful to me. If I can save five seconds per alert, and I get 200 alerts per day I need to ack, that's saving me 15 minutes a day. And isn't the whole point of the sysadmin to automate what can be automated?

Thanks!

© Server Fault or respective owner

Related posts about nagios