[Nut-upsuser] Using NUT to detect a normally closed circuit opening

James Smith james.smith at jofco.com
Wed Jun 22 14:48:40 UTC 2011


Ok.

I now have everything in place and I get an email when the temp sensor opens

Question - what do I set so the system doesn't shut down when the sensor stays open?

Can I just set SHUTDOWNCMD "" ?

Or is there a cleaner way

thx


-----Original Message-----
From: Charles Lepple [mailto:clepple at gmail.com] 
Sent: Tuesday, June 21, 2011 7:18 AM
To: James Smith
Cc: 'nut-upsuser at lists.alioth.debian.org'
Subject: Re: [Nut-upsuser] Using NUT to detect a normally closed circuit opening

On Jun 20, 2011, at 2:09 PM, James Smith wrote:

> I have a temperature sensor (normally closed) that opens when it 
> reaches a pre-defined temp. what I am trying to do is use NUT to look 
> for the circuit opening and trigger an action (email or whatever). Is 
> there a NUT ups driver I can use to do this? If so, does anybody know 
> which pins on the serial I should connect the sensor to?
>
Someone else might have some suggestions about which pins to use, but the genericups driver is the one which allows you to choose which pins map to various states:

http://www.networkupstools.org/docs/man/genericups.html#_custom_configurations

You probably want to map the sensor to the on line/on battery states, since the low battery state is meant to be a one-way trip to shutting down the system. The OL and OB states mentioned in the genericups man page will trigger the first two notifications listed here:

http://www.networkupstools.org/docs/man/upsmon.html#_notify_events




More information about the Nut-upsuser mailing list