On Tue, 3 Feb 2009, Ruy Diaz wrote:
> Hi,
Hi,
> I've been trying to get SNMP monitoring to work for the last few days
> and have had quite a hard time getting it up. I am quite new to Linux,
> load balancing and SNMP so please take it easy on me.
>
> I am running Ubuntu 8.10, Haproxy 1.3.15.7 and I have just compiled net-snmp 5.4.2.1 with perl enabled (tried configuring with both v3 and v2c without
> success). I have copied haproxy.pl to /etc/snmp/haproxy and I modified /etc/snmp/snmpd.conf to include the lines indicated in the netsnmp-perl README.
>
> However, when I run:
>
> $ sudo snmpbulkwalk -c public -v2c 127.0.0.1 1.3.6.1.4.1.29385.106
> SNMPv2-SMI::enterprises.29385.106 = No more variables left in this MIB View (It is past the end of the MIB tree)
>
> Digging through forums I thought what I needed was to add a 'stats socket /var/run/haproxy.stat mod 777' line to my haproxy config, but when I add
> this, I get the following error:
>
> [ALERT] 032/163027 (24099) : parsing [/etc/haproxy/haproxy.cfg:29] : unknown stats parameter 'stats' (expects 'hide-version', 'uri', 'realm', 'auth' or
> 'enable').
> [ALERT] 032/163027 (24099) : Error reading configuration file : /etc/haproxy/haproxy.cfg
Are you sure you have the 1.3.15.7 version? Your net-snmp daemon has to be able to communicate with you haproxy instance and it is not possible to do this without the 'stats socket' support.
Plase show the output from "haproxy -vv".
Best regards,
Krzysztof Olędzki Received on 2009/02/03 19:16
This archive was generated by hypermail 2.2.0 : 2009/02/03 19:30 CET