I have a UPS for which there is no out-of-the-box sysutils/nut driver. nut, however, provides the excellent dummy-ups driver, which, according to the documentation, reads the state of the pseudo-UPS from a freely configurable file, and reports that to nut_upsmon. From upsmon.conf(5) man page,
None of the man pages explains what "providing status information to upsmon" means. I have a script that updates the information in the .seq file specified for the dummy-ups and provides the information on whether the UPS is on-grid or off-grid. After a time considerably longer than DEADTIME, upsmon will invariably complain that it lost communication with the UPS.
What needs to be provided in the .seq file to convince upsmon that the communication has not been lost, or what have I misunderstood?
The ups.conf(5) man page makes reference to the nutupsdrv(8) man page, which makes reference to the dummy-ups(8) man page. The dummy-ups(8) man page explains how the dummy-ups .seq and .dev files work and how to provide values in them for nutupsdrv.upsmon requires a UPS to provide status information every few seconds (see POLLFREQ and POLLFREQALERT) to keep things updated. If the status fetch fails, the UPS is marked stale. If it stays stale for more than DEADTIME seconds, the UPS is marked dead.
None of the man pages explains what "providing status information to upsmon" means. I have a script that updates the information in the .seq file specified for the dummy-ups and provides the information on whether the UPS is on-grid or off-grid. After a time considerably longer than DEADTIME, upsmon will invariably complain that it lost communication with the UPS.
What needs to be provided in the .seq file to convince upsmon that the communication has not been lost, or what have I misunderstood?