I've got upsmon (nut-client) and upsd (nut-server) set up and almost fully working on an RPi3.
Connected is a CP1500PFCLCD UPS via USB. upsd
and upsmon
start up perfectly every time. However, given about 2-20 hours of uptime, a "data stale" error will creep in. The specific error is:
raspberrypi upsd[14612]: Data for UPS [cyberpower] is stale - check driver
Followed by many, many more errors resulting from that one, specifically:
raspberrypi upsmon[9318]: Poll UPS [cyberpower@localhost] failed - Data stale
Unlike some others, mine does not appear to reconnect on its own.
If I restart the nut-server
service, then the ~2-20 hour cycle repeats. How do I "check driver" as it suggests? I need to get rid of that error, as it is causing other processes to fail.
I run "usb-devices" and the CP1500PFCLCD does show up in the list
MAXAGE
belongs inupsd.conf
notupsmon.conf
. This may be why it appears to be deprecated. – ianjs Jul 03 '21 at 08:23pollinterval
might not be needed, which makes sense - the default is2
, which is more often, it makes no sense to make it longer.So the
– Amunak Jul 12 '21 at 21:06DEADTIME
is the important part.MAXAGE
doesn't exist in newer NUT versions.pollinterval
does not need to be changed andMAXAGE
is in upsd.conf. Also, nut sucks. – CR. Oct 21 '22 at 03:27