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