I’ve been fooling with a script to multiplex two snmp servers on one box. The
idea is to have xinetd connect to the script, and the script pass the packets
on to servers in order until one of them can respond. The script is
attached. This is running on a Linux box with Ruby 1.6.7.
This isn’t working, even with the single existing server. Normally, if you do
an snmpget for OID 0, the response is that there is no such OID. Ditto with
0.0. However, with the script in place, OID 0 gets no answer from the
server, OID 0.0 hangs until OID 0 is sent, then I get an answer, but the
script hangs in the decode (gleefully borrowed from the SNMP package from
RAA). Honestly, I’m not sure if this is a problem with xinetd, my script
(and so the province of this list), or something with the server itself.
But, xinetd seems to be behaving properly (from the log review of done if
it), and the server responds as expected without the script in place.
Can anyone see any obvious errors I’m making?
snmp-unified.rb (1.66 KB)
···
–
Judson