Koozali.org: home of the SME Server

Nut UPS, Sending email on events

Scott

Nut UPS, Sending email on events
« on: October 18, 2004, 11:14:27 AM »
Can anyone point me in the right direction to get my server to send an email when my ups goes onto battery etc..

cheers

Scott

Nut UPS, Sending email on events
« Reply #1 on: October 21, 2004, 01:06:57 AM »
Well i've looked into this.

In upsmon.conf i have put 'EXEC' next to each event eg "NOTIFYFLAG ONBATT SYSLOG+EXEC"

and checked the EXEC command at "NOTIFYCMD /sbin/e-smith/nutUPS.notify"

the EXEC script works when i run it manually, but does not when i pull the power on the UPS.

can anyone help?