Page 1 of 1

event handlers in normale state

Posted: Sun Jul 05, 2015 4:48 pm
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

Re: event handlers in normale state

Posted: Mon Jul 06, 2015 9:43 am
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?