Ok i have nailed this down to 

its working if i fire off snmpd by hand as root but not when i run it with the 
init script.   i am running the command by hand the same as its called in the 
init script so i am stuck to see a difference.

Anyone have any ideas?

Cheers,

Simon
________________________________________
From: Dwyer, Simon [[email protected]]
Sent: Monday, September 12, 2011 3:44 PM
To: [email protected]
Subject: SNMP Perl script with Centos 6.0

Hi Everyone,

I am trying to get the snmp perl script working on my Centos 6.0 server.

I can read the socket file with socat and it outputs all the stats.

i can run snmpd and point it to a simple perl script to touch a empty file and 
that works but when i put the haproxy.pl in i get :error on subcontainer 
'ia_addr' insert (-1) every few minutes.

and when i try and run :

snmpbulkwalk -c public -v2c localhost .1.3.6.1.4.1.29385.106.2.0.0
SNMPv2-SMI::enterprises.29385.106.2.0.0 = No more variables left in this MIB 
View (It is past the end of the MIB tree)

as far as i can tell i have everything right.

Any ideas?

Thanks,

Simon Dwyer


Reply via email to