> I'm just looking at the code of snmp-ups driver in the source tree. > I'm trying to find out, what can I change in the code to force the > snmp-ups driver to send shutdown command to the upsd to shutdown the > computer when I set up on the UPS via telnet that it should restart > gracefully.
The 'upsd' server sits between (in your case) the snmp-ups driver and (usually) upsmon client. The latter will shutdown the system if it sees that the UPS is both reporting On Battery (OB) and Low Battery (LB) or when the Force ShutDown (FSD) flag is set. Since drivers should *never* set the FSD flag directly, your only option here is to make the snmp-ups driver reports both OB and LB. Any clients attached should respond to this by shutting down. 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-upsdev mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev
