Re: [gentoo-user] apcupsd - not emailing me when power down

2015-06-07 Thread Mick
On Saturday 06 Jun 2015 23:53:31 Joseph wrote:
> My remote box is connected direclty to apcups and it is running "apcupsd"
> However, when I pull the cord out of the wall the "onbattery" script is not
> email me anything.
> 
> My configuration: apcupsd.conf
> 
> UPSCABLE usb
> UPSTYPE usb
> DEVICE
> POLLTIME 60
> LOCKFILE /var/lock
> SCRIPTDIR /etc/apcupsd
> PWRFAILDIR /etc/apcupsd
> NOLOGINDIR /etc
> ONBATTERYDELAY 6
> BATTERYLEVEL 60
> MINUTES 10
> TIMEOUT 0
> ANNOY 300
> ANNOYDELAY 60
> NOLOGON disable
> KILLDELAY 0
> NETSERVER on
> NISIP 0.0.0.0
> NISPORT 3551
> EVENTSFILE /var/log/apcupsd.events
> EVENTSFILEMAX 10
> UPSCLASS standalone
> UPSMODE disable
> STATTIME 0
> STATFILE /var/log/apcupsd.status
> LOGSTATS off
> DATATIME 0
> 
> onbattery - script suppose to be called by "/etc/apcupsd/apccontrol" and
> execute it. What am I missing?

I don't have this UPS to know what its scripts are doing, but have you 
configured the /etc/apcupsd/onbattery script with your email address and have 
you installed a mail application to handle emailing tasks on your system?

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


[gentoo-user] apcupsd - not emailing me when power down

2015-06-06 Thread Joseph

My remote box is connected direclty to apcups and it is running "apcupsd"
However, when I pull the cord out of the wall the "onbattery" script is not email me 
anything.


My configuration: apcupsd.conf

UPSCABLE usb
UPSTYPE usb
DEVICE
POLLTIME 60
LOCKFILE /var/lock
SCRIPTDIR /etc/apcupsd
PWRFAILDIR /etc/apcupsd
NOLOGINDIR /etc
ONBATTERYDELAY 6
BATTERYLEVEL 60
MINUTES 10
TIMEOUT 0
ANNOY 300
ANNOYDELAY 60
NOLOGON disable
KILLDELAY 0
NETSERVER on
NISIP 0.0.0.0
NISPORT 3551
EVENTSFILE /var/log/apcupsd.events
EVENTSFILEMAX 10
UPSCLASS standalone
UPSMODE disable
STATTIME 0
STATFILE /var/log/apcupsd.status
LOGSTATS off
DATATIME 0

onbattery - script suppose to be called by "/etc/apcupsd/apccontrol" and 
execute it.
What am I missing?

--
Joseph