Re: [Nut-upsuser] UPSSCHED and FreeBSD 8.3?

2013-01-05 Thread Roger Price
My upssched.conf: PIPEFN /var/db/nut/upssched/upssched.pipe LOCKFN /var/db/nut/upssched/upssched.lock I'm sure you've checked permissions already, but what does "ls -alF /var/db/nut/upssched" report? Roger ___ Nut-upsuser mailing list Nut-upsuse

Re: [Nut-upsuser] UPSSCHED and FreeBSD 8.3?

2013-01-05 Thread Thomas Laus
> What about if you use the full path for mail? I don't know about the > environment used - if it is very restrictive the mail executable might not be > found. > I can 'su' to the FreeBSD nutuser, uucp, and execute the upssched-cmd script upsbatt argument with that username. Mail from uucp gets

Re: [Nut-upsuser] UPSSCHED and FreeBSD 8.3?

2013-01-04 Thread Daniel O'Connor
On 05/01/2013, at 1:23, Thomas Laus wrote: > I want to send an email to my cellphone only for significant UPS events that > involve starting the generator and want to ignore short duration events. > > My upssched.conf: > > CMDSCRIPT /usr/local/bin/upssched-cmd > PIPEFN /var/db/nut/upssched/ups

Re: [Nut-upsuser] UPSSCHED and FreeBSD 8.3?

2013-01-04 Thread Roger Price
On Fri, 4 Jan 2013, Thomas Laus wrote: My CMDSCRIPT /usr/local/bin/upssched-cmd: #!/bin/sh case $1 in upsbatt) echo "The UPS has been on battery for awhile" \ | mail -s"UPS monitor" me@testhost.local ;; ... ..., but no email was generated

[Nut-upsuser] UPSSCHED and FreeBSD 8.3?

2013-01-04 Thread Thomas Laus
Group: The Background: I maintain the network hardware for a county government building that is un- occupied except for weekday dayshift. The building is located in an older section of town and the electric service has components that are nearing their 100 year lifetime. The building has UPS