Re: canīt get snmp to work

From: Krzysztof Oledzki <>
Date: Tue, 22 Apr 2008 14:00:33 +0200 (CEST)

On Tue, 22 Apr 2008, Willy Tarreau wrote:

> Hi Pablo,


> On Mon, Apr 21, 2008 at 06:27:16PM +0200, Pablo Escobar wrote:
>> Hi all
>> Today I decided to upgrade to last stable version of haproxy on my web cluster
>> because I would like to get snmp statistics from haproxy to show on cacti but
>> I canīt get snmp to work.
>> I followed the instructions on haproxy-1.3.15/contrib/netsnmp-perl/README so
>> copied the script to /etc/snmp directory and got this two new
>> lines on my snmpd.conf
>> [root]@[txema]# tail -n2 /etc/snmp/snmpd.conf
>> disablePerl false
>> perl do '/etc/snmp/';
>> then I restarted snmpd and tried to do some snmp queries but I get no results.
> I have not tried this script yet, because I don't have a perl-enabled snmpd.
> But could you check /var/log/messages, just in case snmpd would log some
> errors ? Probably that /etc/snmp/ needs to be installed with
> execute permission (chmod +x).

Actually, it does not need to, 644 should be fine here.

> Also check that the unix socket referenced in matches the one you
> have in your haproxy configuration. Maybe you have a slightly different path ?

And this is very important. It is also important to make sure that snmpd process is able to connect to that socket, especially if it is executed without root privileges.

Best regards,

                                 Krzysztof Oledzki Received on 2008/04/22 14:00

This archive was generated by hypermail 2.2.0 : 2008/04/22 14:15 CEST