On Sun, Aug 10, 2008 at 6:50 PM, Filipe Brandenburger filbranden@gmail.comwrote:
2008/8/9 Rudi Ahlers rudiahlers@gmail.com:
It could be, but I don't know snmp at all. What do I need to change, if
you
don't mind telling me?
You can try creating a /etc/snmp/snmpd.conf file with only this line in it:
rocommunity public 192.168.1.0/24
If you want, change "public" to a (secret) community name you want, and change the IP range to the IP range you want to allow to query your server via SNMP. (Note that localhost is not included there, so include another line for 127.0.0.0/8 if you want queries from localhost.)
This will expose the whole MIB to any host on that IP range using that community name, and it is a good starting point for your configuration.
This should be enough to get you started. However, this is a very permissive configuration (although it doesn't allow writes which could be dangerous in terms of allowing other hosts to change settings on your host). It's OK for me, but it might not be considering your security policies. If you need something more restrictive than that, read the snmpd.conf manual page very carefully to establish what exactly you need.
HTH, Filipe _______________________________________________
Unfortunately this didn't work. Although I could see a whole lot of MIB's now, Cacti still doesn't graph the network interface
The error I'm getting is :
*Data Query* [SNMP - Interface Statistics] [image: Reload Associated Query]http://saturn.softdux.com/graphs/graphs_new.php?action=query_reload&id=1&host_id=1 This data query returned 0 rows, perhaps there was a problem executing this data query. You can run this data query in debug modehttp://saturn.softdux.com/graphs/host.php?action=query_verbose&id=1&host_id=1to get more information.
When I enable debug mode for the interface, this is all I get:
+ Running data query [1]. + Found type = '3' [snmp query]. + Found data query XML file at '/var/www/html/graphs/resource/snmp_queries/interface.xml' + XML file parsed ok. + Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1' + Located input field 'ifIndex' [walk] + Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.1' + Found item [ifIndex='1'] index: 1 [from value] + Found item [ifIndex='2'] index: 2 [from value] + Found item [ifIndex='3'] index: 3 [from value] + Found item [ifIndex='4'] index: 4 [from value] + Found item [ifIndex='5'] index: 5 [from value] + Found item [ifIndex='6'] index: 6 [from value] + Found item [ifIndex='7'] index: 7 [from value] + Found item [ifIndex='8'] index: 8 [from value] + Found item [ifIndex='9'] index: 9 [from value] + Found item [ifIndex='10'] index: 10 [from value] + Found item [ifIndex='11'] index: 11 [from value] + Found item [ifIndex='15'] index: 15 [from value] + Found item [ifIndex='20'] index: 20 [from value] + Found item [ifIndex='21'] index: 21 [from value] + Found item [ifIndex='25'] index: 25 [from value] + Located input field 'ifOperStatus' [walk] + Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.8' + Found item [ifOperStatus='Up'] index: 1 [from value] + Found item [ifOperStatus='Up'] index: 2 [from value] + Found item [ifOperStatus='Down'] index: 3 [from value] + Found item [ifOperStatus='Up'] index: 4 [from value] + Found item [ifOperStatus='Up'] index: 5 [from value] + Found item [ifOperStatus='Down'] index: 6 [from value] + Found item [ifOperStatus='Down'] index: 7 [from value] + Found item [ifOperStatus='Down'] index: 8 [from value] + Found item [ifOperStatus='Down'] index: 9 [from value] + Found item [ifOperStatus='Down'] index: 10 [from value] + Found item [ifOperStatus='Down'] index: 11 [from value] + Found item [ifOperStatus='Up'] index: 15 [from value] + Found item [ifOperStatus='Up'] index: 20 [from value] + Found item [ifOperStatus='Up'] index: 21 [from value] + Found item [ifOperStatus='Up'] index: 25 [from value] + Located input field 'ifDescr' [walk] + Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.2' + Found item [ifDescr='lo'] index: 1 [from value] + Found item [ifDescr='peth0'] index: 2 [from value] + Found item [ifDescr='sit0'] index: 3 [from value] + Found item [ifDescr='vif0.0'] index: 4 [from value] + Found item [ifDescr='eth0'] index: 5 [from value] + Found item [ifDescr='vif0.1'] index: 6 [from value] + Found item [ifDescr='veth1'] index: 7 [from value] + Found item [ifDescr='vif0.2'] index: 8 [from value] + Found item [ifDescr='veth2'] index: 9 [from value] + Found item [ifDescr='vif0.3'] index: 10 [from value] + Found item [ifDescr='veth3'] index: 11 [from value] + Found item [ifDescr='xenbr0'] index: 15 [from value] + Found item [ifDescr='vif8.0'] index: 20 [from value] + Found item [ifDescr='vif9.0'] index: 21 [from value] + Found item [ifDescr='vifzsas0'] index: 25 [from value] + Located input field 'ifName' [walk] + Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.1' + Found item [ifName='lo'] index: 1 [from value] + Found item [ifName='peth0'] index: 2 [from value] + Found item [ifName='sit0'] index: 3 [from value] + Found item [ifName='vif0.0'] index: 4 [from value] + Found item [ifName='eth0'] index: 5 [from value] + Found item [ifName='vif0.1'] index: 6 [from value] + Found item [ifName='veth1'] index: 7 [from value] + Found item [ifName='vif0.2'] index: 8 [from value] + Found item [ifName='veth2'] index: 9 [from value] + Found item [ifName='vif0.3'] index: 10 [from value] + Found item [ifName='veth3'] index: 11 [from value] + Found item [ifName='xenbr0'] index: 15 [from value] + Found item [ifName='vif8.0'] index: 20 [from value] + Found item [ifName='vif9.0'] index: 21 [from value] + Found item [ifName='vifzsas0'] index: 25 [from value] + Located input field 'ifAlias' [walk] + Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.18' + Found item [ifAlias=''] index: 1 [from value] + Found item [ifAlias=''] index: 2 [from value] + Found item [ifAlias=''] index: 3 [from value] + Found item [ifAlias=''] index: 4 [from value] + Found item [ifAlias=''] index: 5 [from value] + Found item [ifAlias=''] index: 6 [from value] + Found item [ifAlias=''] index: 7 [from value] + Found item [ifAlias=''] index: 8 [from value] + Found item [ifAlias=''] index: 9 [from value] + Found item [ifAlias=''] index: 10 [from value] + Found item [ifAlias=''] index: 11 [from value] + Found item [ifAlias=''] index: 15 [from value] + Found item [ifAlias=''] index: 20 [from value] + Found item [ifAlias=''] index: 21 [from value] + Found item [ifAlias=''] index: 25 [from value] + Located input field 'ifType' [walk] + Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.3' + Found item [ifType='softwareLoopback(24)'] index: 1 [from value] + Found item [ifType='ethernetCsmacd(6)'] index: 2 [from value] + Found item [ifType='tunnel(131)'] index: 3 [from value] + Found item [ifType='ethernetCsmacd(6)'] index: 4 [from value] + Found item [ifType='ethernetCsmacd(6)'] index: 5 [from value] + Found item [ifType='ethernetCsmacd(6)'] index: 6 [from value] + Found item [ifType='ethernetCsmacd(6)'] index: 7 [from value] + Found item [ifType='ethernetCsmacd(6)'] index: 8 [from value] + Found item [ifType='ethernetCsmacd(6)'] index: 9 [from value] + Found item [ifType='ethernetCsmacd(6)'] index: 10 [from value] + Found item [ifType='ethernetCsmacd(6)'] index: 11 [from value] + Found item [ifType='ethernetCsmacd(6)'] index: 15 [from value] + Found item [ifType='ethernetCsmacd(6)'] index: 20 [from value] + Found item [ifType='ethernetCsmacd(6)'] index: 21 [from value] + Found item [ifType='ethernetCsmacd(6)'] index: 25 [from value] + Located input field 'ifSpeed' [walk] + Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.5' + Found item [ifSpeed='10000000'] index: 1 [from value] + Found item [ifSpeed='1000000000'] index: 2 [from value] + Found item [ifSpeed='0'] index: 3 [from value] + Found item [ifSpeed='10000000'] index: 4 [from value] + Found item [ifSpeed='10000000'] index: 5 [from value] + Found item [ifSpeed='10000000'] index: 6 [from value] + Found item [ifSpeed='10000000'] index: 7 [from value] + Found item [ifSpeed='10000000'] index: 8 [from value] + Found item [ifSpeed='10000000'] index: 9 [from value] + Found item [ifSpeed='10000000'] index: 10 [from value] + Found item [ifSpeed='10000000'] index: 11 [from value] + Found item [ifSpeed='10000000'] index: 15 [from value] + Found item [ifSpeed='10000000'] index: 20 [from value] + Found item [ifSpeed='10000000'] index: 21 [from value] + Found item [ifSpeed='10000000'] index: 25 [from value] + Located input field 'ifHwAddr' [walk] + Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.6' + Found item [ifHwAddr=''] index: 1 [from value] + Found item [ifHwAddr='00:FE:FF:FF:FF:FF:FF'] index: 2 [from value] + Found item [ifHwAddr=''] index: 3 [from value] + Found item [ifHwAddr='00:FE:FF:FF:FF:FF:FF'] index: 4 [from value] + Found item [ifHwAddr='00:00:1C:C0:52:6A:D8'] index: 5 [from value] + Found item [ifHwAddr='00:FE:FF:FF:FF:FF:FF'] index: 6 [from value] + Found item [ifHwAddr=''] index: 7 [from value] + Found item [ifHwAddr='00:FE:FF:FF:FF:FF:FF'] index: 8 [from value] + Found item [ifHwAddr=''] index: 9 [from value] + Found item [ifHwAddr='00:FE:FF:FF:FF:FF:FF'] index: 10 [from value] + Found item [ifHwAddr=''] index: 11 [from value] + Found item [ifHwAddr='00:FE:FF:FF:FF:FF:FF'] index: 15 [from value] + Found item [ifHwAddr='00:FE:FF:FF:FF:FF:FF'] index: 20 [from value] + Found item [ifHwAddr='00:FE:FF:FF:FF:FF:FF'] index: 21 [from value] + Found item [ifHwAddr='00:FE:FF:FF:FF:FF:FF'] index: 25 [from value] + Located input field 'ifIP' [walk] + Executing SNMP walk for data @ '.1.3.6.1.2.1.4.20.1.2' + Found item [ifIP='127.0.0.1'] index: 1 [from regexp oid parse] + Found item [ifIP='192.168.10.11'] index: 5 [from regexp oid parse] + Found item [ifIP='196.34.136.110'] index: 5 [from regexp oid parse] + Found data query XML file at '/var/www/html/graphs/resource/snmp_queries/interface.xml' + Found data query XML file at '/var/www/html/graphs/resource/snmp_queries/interface.xml' + Found data query XML file at '/var/www/html/graphs/resource/snmp_queries/interface.xml'