Automating some tasks

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
stecino
Posts: 248
Joined: Thu Mar 14, 2013 4:42 pm

Automating some tasks

Post by stecino »

I wanted to be able to do these if possible:

Automatically remove acknowledgment of an alert after 2 hours.
Automatically unsilent alerts that have been silenced for 12 hours or more.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Automating some tasks

Post by ssax »

XI currently doesn't have the ability to do this, I've created a feature request for you:

Code: Select all

NEW TASK ID 5493 created - Nagios XI Feature Request: Add the options to unsilence and remove acknowledgements after a specified amount of time
I'm not sure there is a quick and easy way to handle this with out doing a bit of development.
stecino
Posts: 248
Joined: Thu Mar 14, 2013 4:42 pm

Re: Automating some tasks

Post by stecino »

ssax wrote:XI currently doesn't have the ability to do this, I've created a feature request for you:

Code: Select all

NEW TASK ID 5493 created - Nagios XI Feature Request: Add the options to unsilence and remove acknowledgements after a specified amount of time
I'm not sure there is a quick and easy way to handle this with out doing a bit of development.
What would you recommend? Is there a cgi script I could write that would handle this?
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Automating some tasks

Post by jdalrymple »

You may be able to get creative without our help.

Submitting external commands is easy: http://nagios.sourceforge.net/docs/nagi ... mands.html

Are you able to create a custom plugin that can read the existing nagios.log to search for ACKs and silence commands that you want to inactivate? The logic is fairly simple, it would just require a bit of log file parsing.
Locked