event handlers in normale state

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
sjaak538
Posts: 1
Joined: Sun Jun 21, 2015 2:23 pm

event handlers in normale state

Post by sjaak538 »

Hi

I'm asking for advice.
I use a nice small pc (raspberry pi) for controlling our server room by nrpe.
It checks power/current consumption, Room temperature,Humidity, Air pressure and ....

Now I want to control a fan with an event handler when it's to hot, switch it on when it is in "hard error", works fine.
But I don't know what to do if temperature is getting back in normal state.

Does anybody know how can i resolve this ?
Would be nice.

Thanks in advance.


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

Re: event handlers in normale state

Post by tmcdonald »

Maybe I am missing something, but can't you just add a hook into your event handler that turns it off in the case of a recovery from a non-OK state?
Former Nagios employee
Locked