From: Nicolai L. <ja...@li...> - 2008-12-30 23:02:55
|
Hi, I've been working my way towards making munin a MRTG killer (for routers and switches, it'll take some time yet) - and arrived at the SNMP "problem" some days ago. Ilmari has made a perl Munin::Plugin::SNMP module for us ages ago, it has just never been installed as part of the "make install" process. I've corrected that oversight and extended it to support SNMP v3 and ported snmp__uptime to use it. I'm sure I/we'll be adding more functions to it in the comming months but it seems a fairly good start right now. (I'll even test it for SNMP v3 as soon as I get my switch configured correctly, it's rejecting what I thought was the right user name). Any plugin ported to use this module will automatically be able to support SNMP 1, 2 and 3 with security extensions. Porting mostly consists of removing code and calling Munin::Plugin::SNMP->session() to make a SNMP session object to use. Anyone with a interest in SNMP plugins please take a look at http://munin.projects.linpro.no/browser/trunk/node/SNMP.pm.in and http://munin.projects.linpro.no/browser/trunk/node/node.d/snmp__uptime.in. Please post your comments and/or patches and/or ported plugins :-) -- I guess the Wiki needs updating now too. I expect that Munin::Plugin::SNMP will become part of the 1.2 series as well but that will be Matthias' call. Regards, Nicolai |
From: Philipp N. <phi...@di...> - 2009-01-08 09:21:25
|
Hi! On Wed, 31.12.2008-00:02:50 +0100, Nicolai Langfeldt wrote: > I've been working my way towards making munin a MRTG killer (for routers > and switches, it'll take some time yet) - and arrived at the SNMP > "problem" some days ago. > > Ilmari has made a perl Munin::Plugin::SNMP module for us ages ago, it > has just never been installed as part of the "make install" process. I just installed this new old SNMP module and use it on two nodes. After setting the configuration to snmp version 1, everything is running as good as is was before the upgrade. Seems to work fine. Another thing (as I currently don't have svn write access due to firewall restrictions): in Munin.pm there is a missing 'if $DEBUG' statement. I would be happy if someone could commit this to svn. The log grows BIG time without this. Index: trunk/server/Munin.pm.in =================================================================== --- trunk/server/Munin.pm.in (revision 1818) +++ trunk/server/Munin.pm.in (working copy) @@ -722,7 +722,7 @@ my $result = undef; - logger ("Debug: munin_set_var_path: Setting var \"$var\" = \"$val\""); + logger ("Debug: munin_set_var_path: Setting var \"$var\" = \"$val\"") if $DEBUG; if ($var =~ /^\s*([^:]+):(\S+)\s*$/) { my ($leftstring, $rightstring) = ($1, $2); Regards, Philipp -- Philipp Niemann DIMDI UNIX-Systembetreuer Peripherie Waisenhausgasse 36-38a Tel.: +49 221 4724 281 50676 Koeln http://www.dimdi.de Germany |
From: Nicolai L. <ja...@li...> - 2009-01-08 18:16:22
|
Philipp Niemann wrote: > On Wed, 31.12.2008-00:02:50 +0100, Nicolai Langfeldt wrote: >> I've been working my way towards making munin a MRTG killer (for routers >> and switches, it'll take some time yet) - and arrived at the SNMP >> "problem" some days ago. >> >> Ilmari has made a perl Munin::Plugin::SNMP module for us ages ago, it >> has just never been installed as part of the "make install" process. > > I just installed this new old SNMP module and use it on two nodes. After > setting the configuration to snmp version 1, everything is running as > good as is was before the upgrade. Seems to work fine. :-) > in Munin.pm there is a missing 'if $DEBUG' statement. I would be happy if > someone could commit this to svn. The log grows BIG time without this. Fixed. Thanks. Nicolai |