Hello Malcolm,
On 2010-03-26 13:55, Malcolm Turnbull wrote:
I was just checking out the SNMP support for the latest version of HAProxy:
Older versions gave:
snmpwalk -c public -v2c 127.0.0.1 1.3.6.1.4.1.29385.106.1.0
SNMPv2-SMI::enterprises.29385.106.1.0.0.1.0 = STRING: "stats"
SNMPv2-SMI::enterprises.29385.106.1.0.1.1.0 = STRING: "FRONTEND"
SNMPv2-SMI::enterprises.29385.106.1.0.2.1.0 = ""
etc.
But the current version gives:
snmpwalk -c public -v2c 127.0.0.1 1.3.6.1.4.1.29385.106.1.0
SNMPv2-SMI::enterprises.29385.106.1.0 = No Such Instance currently
exists at this OID
Strange. It should work without any problems and it works for me. Are
you sure you didn't change anything in your haproxy's or snmpd's config?
Please try
snmpwalk -v2c -c XykeBuwu 127.1 1.3.6.1.4.1.29385.106.2.0
if it works, you have a poblem with haproxy<->haproxy.pl communication,
if not, there is something with your snmpd which is not able to run perl
script.
I'm using: http://haproxy.1wt.eu/download/contrib/netsnmp-perl/haproxy.pl
I assume the mapping has changed?
my %info_vars = (
0 => 'Name',
1 => 'Version',
2 => 'Release_date',
3 => 'Nbproc',
4 => 'Process_num',
5 => 'Pid',
6 => 'Uptime',
7 => 'Uptime_sec',
8 => 'Memmax_MB',
9 => 'Ulimit-n',
10 => 'Maxsock',
11 => 'Maxconn',
12 => 'CurrConns',
);
Yes, and it hasn't been updated yet and it should but only to provide
access to new, recently introduced stats. There are several other places
we need to make small changes, for example to allow walking stats for
sockets (bind xxx). I'm currently testing a new version which I'm
planning to push in the next few days.
Has anyone already done this? Perl is not my strong point :-).
Yes, haproxy.pl-0.27 + haproxy-1.4 works.
Best regards,
Krzysztof Olędzki