[Linux-HA] APC SNMP STONITH
pk at q-leap.com
Tue Sep 18 02:10:02 MDT 2007
Philip Gwyn wrote:
> As discussed earlier, I'm writing a new SNMP STONITH plugin. The goal is for
> it to seamlessly work with the new and old MIBs (AP9606 vs AP7900).
Ok, the old apcmastersnmp needed work, right.
> Instead of fixing the current apcmastersnmp.c, I started over from stratch,
> very roughly basing it on the net-snmp tutorial.
one thing that bothered me in the old apcmastersnmp was that
one could not configure the oids, they were hardcoded
as #defines, would it be possible to change that?
(I know, configuration files end in .c)
> So far, I have a small library that will
> - query the PDU
> - detect which MIB to use
> - find necessary outlet
> - turn the outlet on (or off)
> - query the PDU until the outlet goes to that state (or timeout)
> Tomorrow I'm going to go over apcmastersnmp.c again to see if there are some
> gotchas that I might have missed. However, it does a reset (not turn off) so I
> don't know how useful that is.
why don't you use the reset as well? That is a feature of the pdu
that allows to configure the delay between off and on. I really
think you should stick to that. It worked like this for
some years now, and there was no problem at all with it.
Your argument that if the server needs to be resetted because
there is a problem with it, and therefore should not start
automatically I can not follow. If the server boots after
a reset what harm can it do? And you can change the
behaviour in the BIOS. If the heartbeat projects
thinks about replacing the current apcmastersnmp with
yours it should be a compatible as possible.
(Is Heartbeat going to replace the plugin with this one?)
What firmware did you test your plugin with?
Please have a look at this thread:
make sure your oids are valid for versions 2.x and 3.x.
More information about the Linux-HA