From peter.stessel at gmail.com Fri Jul 13 17:18:33 2012 From: peter.stessel at gmail.com (Peter Stessel) Date: Fri, 13 Jul 2012 17:18:33 +0200 Subject: [mrtg-developers] Juniper Netscreen ssg description Message-ID: Hi, I'm Peter and work at a small hospital in Belgium. i'm new to this list but don't have much programming experience in Perl. I use mrtg to monitor the bandwith usage of 2 Juniper Netscreen routers (models ssg140 and ssg5) When i run the cfgmaker with --ifdescr=descr or ifAlias option, I never seem to get what is set as description of the interface since Juniper sets this in a different OID named nsIfDescr at 1.3.6.1.4.1.3224.9.1.1.22. Could someone point me in a direction where to change the source of cfgmaker (using version 2.16.2 currently) to add support for this oid? So far I've located the if block at line 168 to determine if it's a Cisco or other device. I would try to add a similar statement for Juniper too and add the oid to the definition of the snmpmapObjID's variables at line 1544. Could anyone point out what else to change in the code? Or would it be too hard to start working on, never having programmed in Perl before? Thanks in advance for the assistance, Peter Stessel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.oetiker.ch/pipermail/mrtg-developers/attachments/20120713/8e6349d6/attachment.htm From s.shipway at auckland.ac.nz Sat Jul 14 04:52:38 2012 From: s.shipway at auckland.ac.nz (Steve Shipway) Date: Sat, 14 Jul 2012 02:52:38 +0000 Subject: [mrtg-developers] Juniper Netscreen ssg description In-Reply-To: References: Message-ID: <7294716191A1E142B80615ED2C633BCA0136B37D@uxcn10-2.UoA.auckland.ac.nz> First, make sure you have the latest cfgmaker in the latest MRTG. I know some additional device OIDs were supported automatically in later versions. Next - if the Juniper enterprise OID is not automatically picked up by your cfgmaker (like the Cisco one is) then the only way around it is to make a custom interface template that you pass on to cfgmaker via the --if-template option. This requires a bit of Perl coding knowledge :( There are some custom templates available at http://www.steveshipway.org/cfgmaker but none for Juniper as yet. However, since we are now installing Junipers at UoA it would be in my interests to make one... I'll take a look when I get back to work Monday... Steve Steve Shipway University of Auckland ITS UNIX Systems Design Lead s.shipway at auckland.ac.nz Ph: +64 9 373 7599 ext 86487 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.oetiker.ch/pipermail/mrtg-developers/attachments/20120714/37ba6193/attachment.htm