Hi,
Here's the output:
y$ haproxy -vv
HA-Proxy version 1.3.15.7 2008/12/04
Copyright 2000-2008 Willy Tarreau <w...@1wt.eu>
Build options :
TARGET = linux26
CPU = i686
CC = gcc
CFLAGS = -O2 -march=i686 -g
OPTIONS = USE_PCRE=1
Stats are working (aside from the socket issue), as I can access the web
interface to view the status as well.
Thanks for your help
Ruy
Krzysztof Oledzki wrote:
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