Re: Setting up SNMP

From: Krzysztof Oledzki <ole#ans.pl>
Date: Wed, 4 Feb 2009 02:12:43 +0100 (CET)

On Tue, 3 Feb 2009, Ruy Diaz wrote:

> Apologies about the top-posting.
>
> I have moved the stats socket to the global section (I had it in defaults)
> and now I can see /var/run/haproxy.stat.

Good!

> However, I am still getting the "No
> more variables left in this MIB View (It is past the end of the MIB tree)"
> error.

Bad :(

> If I monitor syslog, I can see that a connection is being made, but I have a
> feeling that the haproxy.pl script is having some sort of problem accessing
> the information from the socket. Although this time when I ran perl
> /etc/snmp/haproxy.pl, the error I received was different:
>
> $ perl /etc/snmp/haproxy.pl
> NetSNMP::agent object version 5.0401 does not match bootstrap parameter
> 5.04021 at /usr/lib/perl/5.10/DynaLoader.pm line 219.

Your perl/net-snmp environment is damaged. You have mismatched files from 5.4.2.1 and 5.4.1.

> Compilation failed in require at /etc/snmp/haproxy.pl line 18.
> BEGIN failed--compilation aborted at /etc/snmp/haproxy.pl line 18.
>
> During my previous fiddling around trying to find the root of the problem, I
> did copy net-snmp-5.4.2.1/perl/blib/lib/NetSNMP/agent.pm to
> /usr/local/lib/perl/5.10.0/NetSNMP/agent.pm.

So now you have one file from 5.4.2.1 and others from 5.4.1. My suggestion is to stick with 5.4.1 or to make a proper upgrade to 5.4.2.1.

> I'm not sure if this has an impact or if I maybe overwrote something
> that was already there.

I doubt that the haproxy.pl script gets loaded. However, you may try to walk 1.3.6.1.4.1.29385.106.2.0 to check if the problem is with accessing the socket.

Best regards,

                                 Krzysztof Olędzki Received on 2009/02/04 02:12

This archive was generated by hypermail 2.2.0 : 2009/02/04 02:15 CET