Hello,
For a while now I have had this problem that apcupsd doesn't restart
properly on system boot - e.g. after power failure. The log appears
fine:
2018-10-11 16:43:44 +1100 apcupsd 3.14.14 (31 May 2016) debian startup succeeded
I can't remember for sure if the process is running or not. I think it
might be, just to confuse matters more.
However there is no connection been establed to the device (using SNMP
over IP) and "apcaccess" reports dummy values. Furthermore it doesn't do
anything on a power failure.
If I manually restart it it starts working fine:
/etc/init.d/apcupsd restart
The logs appear as before:
2018-10-11 18:48:15 +1100 apcupsd exiting, signal 15
2018-10-11 18:48:15 +1100 apcupsd shutdown succeeded
2018-10-11 18:48:15 +1100 apcupsd 3.14.14 (31 May 2016) debian startup succeeded
But now "apcaccess" returns correct values.
Any ideas?
I thought maybe the problem was using the hostname in
/etc/apcupsd/apcupsd.conf and putting the lookup in /etc/hosts - should
work but was wondering if it was trying to use DNS regardless and DNS is
provided by a VM on the box that is still booting.
So I now put the IP address in /etc/apcupsd/apcupsd.conf, but it is
still failing.
Regards
--
Brian May <brian(a)linuxpenguins.xyz>
https://linuxpenguins.xyz/brian/