Change state from warning to critical after set time

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
gbrown
Posts: 2
Joined: Thu Jul 17, 2014 11:07 am

Change state from warning to critical after set time

Post by gbrown »

Hi

Is it possible to change the state from warning to critical after a set time?

Thanks
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Change state from warning to critical after set time

Post by tmcdonald »

This is not a built-in function in Nagios, no. You might be able to create a wrapper script around your plugin that will maintain state and change based on time elapsed.
Former Nagios employee
gbrown
Posts: 2
Joined: Thu Jul 17, 2014 11:07 am

Re: Change state from warning to critical after set time

Post by gbrown »

Thanks for the response I thought that may be the case as I couldn't find anything that looked like it would do it.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Change state from warning to critical after set time

Post by tmcdonald »

We're always happy to help, but some things just don't work out of the box.
Former Nagios employee
Locked