[mrtg] FW: MIB query (re HP/Nortel Blade switches )...
Mersberger, Robert
robert.mersberger at goldenliving.com
Tue Feb 17 23:49:26 CET 2009
Maybe you can help with this? I have save the template as nortel_gbe2.tp And tried to run it with cfgmaker but get and error. I have only used one template before so am not sure of what I am doing except for trial and error. I don't have much time to spend on this specific task.
Here is what I have and what I am getting
[root at mrtg mrtg]# /usr/bin/cfgmaker --if-template=nortel_gbe2.tp --global 'WorkDir: /usr/local/rrd_data' --global 'LogFormat: rrdtool' --global 'routers.cgi*Options[_]: scaled' --global 'Options[_]: bits,growright' --ifdesc=alias --snmp-options=:::::2 --output /etc/mrtg/blswr7e5at.cfg da1sy at blswr7e5a.beverlycorp.com<mailto:da1sy at blswr7e5a.beverlycorp.com>
Evaluation of the contents in the file
nortel_gbe2.tp
gave the error
"Undefined subroutine &SNMPv1_Session::getaddrinfo called at /usr/bin/../lib64/mrtg2/SNMP_Session.pm line 650, <IF_TEMPLATE> line 23.
"
Exiting cfgmaker
Thanks for your help, maybe working together we can get this to work.
________________________________
From: mrtg-bounces at lists.oetiker.ch [mailto:mrtg-bounces at lists.oetiker.ch] On Behalf Of Steve Shipway
Sent: Tuesday, February 17, 2009 2:54 PM
To: 'dhazell at aap.com.au'; 'mrtg at lists.oetiker.ch'
Subject: Re: [mrtg] FW: MIB query (re HP/Nortel Blade switches )...
Might be able to use both OIDs in the oid_pick in case either works:
my($hpoid) = oid_pick($router_connect,$v3opt,"1.3.6.1.4.1.11.2.3.7.11.33.4.2.1.1.2.2.1.15.$ifindex",
"1.3.6.1.4.1.11.2.3.7.11.33.1.2.1.1.2.2.1.15.$ifindex");
Its possible as well that the HP MIB doesn't use $ifindex as the suffix but some other index of their own, which would be a nuisance.
As someone else suggested, using --ifref=name --ifdesc=name as options is also a good idea; my rough script just grabbed the default identifier to use if it can't find an HP one.
Steve
________________________________
From: mrtg-bounces at lists.oetiker.ch [mailto:mrtg-bounces at lists.oetiker.ch] On Behalf Of Mersberger, Robert
Sent: Wednesday, 18 February 2009 05:02
To: 'Sean Cheesman'; mrtg at lists.oetiker.ch
Subject: Re: [mrtg] FW: MIB query (re HP/Nortel Blade switches )...
Try changing the OID in the template to .1.3.6.1.4.1.11.2.3.7.11.33.1.2.1.1.2.2.1.15.$ifindex.
sample of output.
I have the same switched and when I do an snmpwalk to this oid I get the following.
[root at mrtg ~]# snmpwalk -v 2c -c da1sy blswr7e5a .1.3.6.1.4.1.11.2.3.7.11.33.1.2.1.1.2.2.1.15
SNMPv2-SMI::enterprises.11.2.3.7.11.33.1.2.1.1.2.2.1.15.1 = STRING: "Blade Server 751"
SNMPv2-SMI::enterprises.11.2.3.7.11.33.1.2.1.1.2.2.1.15.2 = STRING: "Downlink2"
Hope this helps. I have not looked at the template yet but will look as it as time permits.
Please consider the environment before printing this e-mail.
CONFIDENTIAL NOTICE:
This e-mail message and any attachment(s) (collectively, this 'Email') are intended
only for the confidential use of the recipient(s) named above. If the reader of this
message is not the intended recipient named above or an agent responsible for
delivering it to the intended recipient named above, you have received this Email in error.
Please notify the sender immediately and permanently delete this Email and any copies thereof.
Please consider the environment before printing this e-mail.
CONFIDENTIAL NOTICE:
This e-mail message and any attachment(s) (collectively, this 'Email') are intended
only for the confidential use of the recipient(s) named above. If the reader of this
message is not the intended recipient named above or an agent responsible for
delivering it to the intended recipient named above, you have received this Email in error.
Please notify the sender immediately and permanently delete this Email and any copies thereof.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20090217/178b039e/attachment-0001.html
More information about the mrtg
mailing list