From: <bj...@ru...> - 2007-03-28 19:09:37
|
Michael Renner wrote: > Moin, > > I own a ZyXEL ES2008 switch that supports SNMP. I can reach the switch > (hostname is 'switch') using smpwalk and get values using snmpget: > cassiopeia:~# snmpwalk -v 1 switch -c public ifOutOctets.1 > IF-MIB::ifOutOctets.1 = Counter32: 89885199 > > So I started > cassiopeia:/etc/munin/plugins# munin-node-configure --snmp switch.mtr.mynet > --snmpversion 1 --snmpcommunity public > ln > -s /usr/share/munin/plugins/snmp__if_err_ /etc/munin/plugins/snmp_switch.mtr.mynet_if_err_1 > ln > -s /usr/share/munin/plugins/snmp__if_err_ /etc/munin/plugins/snmp_switch.mtr.mynet_if_err_10 > ln > -s /usr/share/munin/plugins/snmp__if_err_ /etc/munin/plugins/snmp_switch.mtr.mynet_if_err_2 > cassiopeia:/etc/munin/plugins# ln > -s /usr/share/munin/plugins/snmp__if_ /etc/munin/plugins/snmp_switch.mtr.mynet_if_1 > cassiopeia:/etc/munin/plugins# ln > -s /usr/share/munin/plugins/snmp__if_ /etc/munin/plugins/snmp_switch.mtr.mynet_if_10 > cassiopeia:/etc/munin/plugins# ln > -s /usr/share/munin/plugins/snmp__if_ /etc/munin/plugins/snmp_switch.mtr.mynet_if_2 > > and so on for the interfaces and the errors. > > I made the symlinks, changed the configuration in /etc/munin/munin.conf and > restarted the node at the host that present the virtual node: > > [switch.mtr.mynet] > address 192.168.5.53 > use_node_name no I suspect the address is wrong... > But there is just the entry for 'switch.mtr.mynet' in the index.html page. > But no category entry, no graph, just nothing. It seems to me that the node > is monitoring the snmp device: > > cassiopeia:~# telnet localhost 4949 > Trying 127.0.0.1... > Connected to localhost. > Escape character is '^]'. > # munin node at cassiopeia.mtr.mynet > nodes > cassiopeia.mtr.mynet > switch.mtr.mynet > . ...proven here. Change your munin.conf to: [switch.mtr.mynet] address 127.0.0.1 use_node_name no The plugins run from localhost, and then localhost contacts the switch for SNMP readouts. Munin must be told on which host the _plugins_ are, not the IP address of the switch. -- Bjørn |