munin plugin - UPDATE 20130502

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
speculatrix
DD-WRT Novice


Joined: 24 Apr 2013
Posts: 7

PostPosted: Wed May 01, 2013 21:46    Post subject: munin plugin - UPDATE 20130502 Reply with quote
UPDATE 20130502! More efficient! See followon posts!

I wrote a munin plugin and uploaded it here:

http://www.zaurus.org.uk/download/scripts/wndr3800ifstats


you'll need to set the maximum interface number "MAXIF" depending on how many you've got set up.

Add the following to /etc/munin/plugin-conf.d/munin-node to prevent timeouts, and set the hostname and community name:

[wndr3800ifstats]
timeout 40
env.ddwrthost hostname-or-ip
env.snmpcommunity public



I hope this helps someone
regards
Paul


Last edited by speculatrix on Thu May 02, 2013 10:13; edited 2 times in total
Sponsor
speculatrix
DD-WRT Novice


Joined: 24 Apr 2013
Posts: 7

PostPosted: Thu May 02, 2013 9:34    Post subject: Reply with quote
updated!

the old script was very inefficient as it made a call to snmpget for each and every value. Now, it makes one call for each interface to get the name and values, whether in config mode or now.

also, the host name and parameters are now in the plugin-conf.d/munin-node file
robertut
DD-WRT User


Joined: 30 Mar 2009
Posts: 145

PostPosted: Thu Aug 08, 2013 14:01    Post subject: Reply with quote
Sorry but you did not provide any install instructions. It seems it needs much more than a simple MUNIN installation, as it dies in my case on Ubuntu server 12.04 with:

Code:
MIB search path: /home/horvathar/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (IF-MIB): At line 1 in (none)
IF-MIB::ifDescr.1: Unknown Object Identifier
IF-MIB::ifInOctets.1: Unknown Object Identifier
IF-MIB::ifOutOctets.1: Unknown Object Identifier
IF-MIB::ifInErrors.1: Unknown Object Identifier
IF-MIB::ifOutErrors.1: Unknown Object Identifier
IF-MIB::ifInDiscards.1: Unknown Object Identifier
IF-MIB::ifOutDiscards.1: Unknown Object Identifier
expr: syntax error
expr: syntax error
expr: syntax error
expr: syntax error
for each interface...
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum