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. 

-- Peter


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=
> ver
> > (e.g. if the ups is defect).
> 
> You can do this by means of a script that is called by NOTIFYCMD (see 'ma=
> n
> 5 upsmon.conf') or through upssched (see 'man 8 upssched'), which is more
> flexible.
> 
> Best regards, Arjen
> --=20
> 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@lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
> 


_______________________________________________
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser

Reply via email to