[Nut-upsuser] "no longer stale" when disconnected with 2.0.5
selinger at mathstat.dal.ca
Sat Jan 27 17:41:38 CET 2007
If I understood Markus correctly, the problem is not that the data
goes stale (it should do that when disconnecting the UPS
communications line), but that it goes unstale immediately afterwards
(even when the UPS is still disconnected).
This shouldn't really happen. Maybe some debugging is needed.
Markus: the function that decides whether your UPS is stale or not is
server/sstate.c:sstate_dead(). Perhaps you can insert some debugging
statements to figure out what this function returns and why.
Arjen de Korte wrote:
> > After reconnect the ups, the communication is ok and nut works until I
> > disconnect again.
> Which version of NUT are you using?
> > I tired also different values for pollinterval.
> Which values? Did you also change the MAXAGE value for upsd?
> > We want to shutdown the server, if the ups is disconnected from the ser=
> > (e.g. if the ups is defect).
> You can do this by means of a script that is called by NOTIFYCMD (see 'ma=
> 5 upsmon.conf') or through upssched (see 'man 8 upssched'), which is more
> Best regards, Arjen
> Eindhoven - The Netherlands
> Key fingerprint - 66 4E 03 2C 9D B5 CB 9B 7A FE 7E C1 EE 88 BC 57
> Nut-upsuser mailing list
> Nut-upsuser at lists.alioth.debian.org
More information about the Nut-upsuser