[Nut-upsuser] nut-monitor service fails even though nut-monitor seems to work

Roger Price roger at rogerprice.org
Mon Aug 30 09:34:05 BST 2021


On Sun, 29 Aug 2021, Nathan Dehnel via Nut-upsuser wrote:

> The systemd service fails even though the output seems to indicate
> that nut-monitor is communicating successfully with the UPS.
>
> Aug 16 23:45:52 gentoodesktop upsmon[1944]:   12.457065        Logged
> into UPS heartbeat at localhost
> Aug 16 23:45:52 gentoodesktop upsmon[1944]:   12.457104
> pollups: heartbeat at localhost
> Aug 16 23:45:52 gentoodesktop upsmon[1944]:   12.457110
> get_var: heartbeat at localhost / status
> Aug 16 23:45:52 gentoodesktop upsmon[1944]:   12.457142
> parse_status: [OL]
> Aug 16 23:45:52 gentoodesktop upsmon[1944]:   12.457148        parsing: [OL]
> Aug 16 23:45:52 gentoodesktop upsmon[1944]:   12.457151
> ups_on_line: heartbeat at localhost (first time)
> Aug 16 23:45:52 gentoodesktop upsmon[1944]:   12.457154        Current
> power value: 1
> Aug 16 23:45:52 gentoodesktop upsmon[1944]:   12.457157        Minimum
> power value: 1

It's not central to your problem, but a heartbeat should have a power value of 
0 in the MONITOR declaration.

> Aug 16 23:47:12 gentoodesktop systemd[1]: nut-monitor.service: start
> operation timed out. Terminating.
> Aug 16 23:47:12 gentoodesktop upsmon[1944]:   91.852466        Signal
> 15: exiting
> Aug 16 23:47:12 gentoodesktop upsmon[1944]:   91.852486
> Dropping connection to UPS [tripplite1 at pfsense]
> Aug 16 23:47:12 gentoodesktop upsmon[1944]:   91.852556
> Dropping connection to UPS [heartbeat at localhost]
> Aug 16 23:47:12 gentoodesktop upsmon[1944]: Network UPS Tools upsmon 2.7.4
> Aug 16 23:47:12 gentoodesktop systemd[1]: nut-monitor.service: Failed
> with result 'timeout'.

Where does this systemd timer come from?  Could we see the file 
nut-monitor.service ?

Roger



More information about the Nut-upsuser mailing list