Very basic QLogic SANBox 5000 Series (5xxx) snmp query

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
dalaro
Posts: 8
Joined: Wed Jun 18, 2008 1:06 pm

Very basic QLogic SANBox 5000 Series (5xxx) snmp query

Post by dalaro »

Uses Fibre Alliance MIB. Only handles input and output octets; no errors, no temperature readings, just traffic bytes.

See this post for background.
Attachments
sanboxfa.xml
(1.38 KiB) Downloaded 996 times
Last edited by dalaro on Wed Mar 25, 2009 12:48 pm, edited 1 time in total.
gheppner
Posts: 20
Joined: Thu Dec 04, 2008 5:10 pm

Post by gheppner »

Wow, this is incredibly useful. I'm trying to get stats out of some Hewlet Packard Virtual Connect FC Modules that use these same mibs. I've done up some based on the FE-Elements mib (32 bit counters only) that record error stats. Youu can't get bandwidth from that MIB because it only provides frames and not words, so this is truly great.

I'll post any updates to this template within this thread once i've had a chance to change my templates and queries over to use the 64 bit versions.
toe_cutter
Cacti User
Posts: 168
Joined: Fri Sep 12, 2008 2:41 am
Location: Sweden

Post by toe_cutter »

Here's an updated xml.
Lists Index, Port, Portname, Portspeed and gets:
Elements, Class1,2,3 Frames, Class3 Discards, Link Resets, Link Failures, Invalid Words and Loss of Synchronization.
Might add sensors at some point.

Tho i only poll the Elements, but the rest will be interesting once i get spine0.8.7c installed (im loosing some hex-digits at times in the poll causing the graph to jump to ~60Petabytes/s, which i hope is spines fault :/).
Attachments
fca_san.xml
(7.26 KiB) Downloaded 739 times
dalaro
Posts: 8
Joined: Wed Jun 18, 2008 1:06 pm

Post by dalaro »

Thanks for the feedback and update.

I wrote that this query loses precision when run on 32-bit Cacti servers (cf 64-bit), but I think I was wrong. I *think* Cacti servers running in both 32-bit and 64-bit OSes maintain full precision in measurement. Edited original post.
jussiu
Posts: 2
Joined: Mon Mar 30, 2009 4:03 am

Post by jussiu »

Hi,

I am a very new cacti user. My main mission is to get our sanbox units graphed, since the qlogic software we have doe snot work with the newest firmware. I have managed to get graphing to work on our basic switches and firewalls, but I am not getting this sanbox query to work. This might very well be because I really don't know what I am doing to well, so could you please just post a short "how to get this query to graph" tutorial?

I am running cacti 0.8.7d on RHEL 5.2.

What I have managed by trial and error:

I created a new data query that uses fca_san.xml, is of type "Get SNMP Data (Indexed)" and has a Graph template associated. The Graph template is called SanTraffic, and is based on Interface-Traffic (bits/sec). Datasources are traffic_in: connUnitPortStatCountRxElements and traffic_out: connUnitPortStatCountTxElements.

I have set up a sanbox unit as a device, and associated the dataquery with it. A verbose query on the device returns a lot of data and no errors. I just can't seem to make cacti actually poll the SanBox units, all the grapsh I have associated with the datasources say that there are no .rrd files.

I know this is all probably pretty basic, I just couldn't figure it out by reading the documentation myself. Thanks for your help in advance.

/jussi
toe_cutter
Cacti User
Posts: 168
Joined: Fri Sep 12, 2008 2:41 am
Location: Sweden

Post by toe_cutter »

jussiu wrote:...I have set up a sanbox unit as a device, and associated the dataquery with it. A verbose query on the device returns a lot of data and no errors. I just can't seem to make cacti actually poll the SanBox units, all the grapsh I have associated with the datasources say that there are no .rrd files...
Sorry for being late etc...
Have you checked why there arent any .rrd-files? Permissions of rra-folder?
Here's a good post thats helped me several times: http://forums.cacti.net/viewtopic.php?p=58221#58221
Go through/search the documentation site and/or the forum.

I'm going to post an updated xml on monday that uses 64bit counters instead of HEX-counters. Dunno how i didnt see these earlier but they work great.
jussiu
Posts: 2
Joined: Mon Mar 30, 2009 4:03 am

Post by jussiu »

toe_cutter wrote:
jussiu wrote:...I have set up a sanbox unit as a device, and associated the dataquery with it. A verbose query on the device returns a lot of data and no errors. I just can't seem to make cacti actually poll the SanBox units, all the grapsh I have associated with the datasources say that there are no .rrd files...
Sorry for being late etc...
Have you checked why there arent any .rrd-files? Permissions of rra-folder?
Here's a good post thats helped me several times: http://forums.cacti.net/viewtopic.php?p=58221#58221
Go through/search the documentation site and/or the forum.

I'm going to post an updated xml on monday that uses 64bit counters instead of HEX-counters. Dunno how i didnt see these earlier but they work great.
The system is generating the RRD files just fine for other devices (firewall, another snmp switch), so that is not the problem. The problem is squarely in how I have set up this device in cacti. I probably just don't understand how it should be set up, the whole data source/data query/graph/graph template system.
toe_cutter
Cacti User
Posts: 168
Joined: Fri Sep 12, 2008 2:41 am
Location: Sweden

Post by toe_cutter »

jussiu wrote:The system is generating the RRD files just fine for other devices (firewall, another snmp switch), so that is not the problem. The problem is squarely in how I have set up this device in cacti. I probably just don't understand how it should be set up, the whole data source/data query/graph/graph template system.
Okay, setting up datasource/dataquery/graph/graph template is tricky, and i cant really remember how i did it unless i followed dalaros instructions earlier:
Here's the little snmp_query XML document we use to monitor the SANBoxes. It's real simple, but it meets our needs. To set it up, I created a data query and set this as its XML file. Then I associated the stock Interface Traffic graph template using connUnitPortStatCountTxElements as traffic_out andconnUnitPortStatCountRxElements as traffic_in.
I know the documentation handles creating templates and stuff so im going to point you over there.
A tip is to try to find out how the stock Interface stats templates are linked together, copying them and experimenting on your own.
toe_cutter
Cacti User
Posts: 168
Joined: Fri Sep 12, 2008 2:41 am
Location: Sweden

Post by toe_cutter »

Sorry i missed my monday "deadline". But i got unsure about posting these templates/data queries since i use it on our McData SAN-switches and not Qlogic.
I DO know it doesnt work on Brocade, but theres already a good dataquery/template for them here

So to test if it works for you and your san-switches, snmpwalk this (portindex oid): 1.3.6.1.2.1.8888.1.3.1.1.1
If it doesnt work, use my earlier dataquery.

The main difference is that this data query uses

Code: Select all

iso(1). org(3). dod(6). internet(1). mgmt(2). mib-2(1). fcMgmtMIB(8888)
and not

Code: Select all

iso(1). org(3). dod(6). internet(1). experimental(3). fcmgmt(94)
as my earlier dataquery does. I dont know which is more recent but the fcMgmtMIB is from december 2000.

Whats new and yay about the dataqueries is that it outputs counter64 and not HEX! :D Everything else that was in my old post is still there.
I had trouble with the HEX as you might have read in my earlier post, im still not sure if it was an old version of Spine that had trouble or not. But these are 64bit counters that work, and our SAN-admin has a happyface now :)

Whats important with these templates/queries is that you try the snmpwalk above before you ruin your templates already loaded and that since i made my own fieldnames in the dataquery, you either change them to fit your datasources or use my templates.

Dont forget to backup or use a testenvironment, i know what it feels like to mess up a production server!!!!
Attachments
san_switch_-_port_statistics.xml
Import this _ONLY_ if your snmpwalk above works. It could ruin already imported templates.
Import via cacti.
(121 KiB) Downloaded 643 times
fca_san.xml
place in your ../resource/snmp_queries/-directory
(7.21 KiB) Downloaded 621 times
five0.4tluv
Posts: 18
Joined: Wed Mar 19, 2008 2:42 pm

Anyone still working on this?

Post by five0.4tluv »

I've stumbled onto this as I've got some 5200 and 5600 switches. I am using the 179 version of the data query. I had to manually create the rrd files and I've got empty graphs. the rrds are being updated with 0 values. Is there more to this that I'm missing.
djpetro
Posts: 1
Joined: Tue Jun 08, 2010 4:00 pm

Re: Anyone still working on this?

Post by djpetro »

five0.4tluv wrote:I've stumbled onto this as I've got some 5200 and 5600 switches. I am using the 179 version of the data query. I had to manually create the rrd files and I've got empty graphs. the rrds are being updated with 0 values. Is there more to this that I'm missing.
five0, I ran into the same thing with our sanbox 5202 and 5600 switches, and it sounds like jussiu did, too. I was able to get things working by ensuring the fibre alliance mib (http://www.emc.com/microsites/fibrealli ... /MIB40.txt) was being loaded by net-snmp, and switching from the php poller to spine.

To get the mibs loaded, I renamed the file to FCMGMT-MIB.txt, and placed it in /usr/share/snmp/mibs/, the system default location on my RHEL 5 machine. I then added this line to /etc/snmp/snmp.conf (note that's not snmpd.conf), and also to ~cacti/.snmp/snmp.conf:

Code: Select all

mibs +FCMGMT-MIB
The cacti user runs the poller in our setup, but you should put that snmp.conf line in whatever user run it in yours.

Then I compiled/installed spine according to the instructions on the cacti site. Before I did this, the rrd files were created, but no data was entered in, the rrd files were not even touched.

After spine was configured as the poller, data started showing in the graphs a couple polling cycles later.

Hope this helps!

-Dom
User avatar
pirx
Cacti User
Posts: 199
Joined: Tue Feb 10, 2004 10:08 am
Location: Esslingen, Germany

Re: Very basic QLogic SANBox 5000 Series (5xxx) snmp query

Post by pirx »

Hi,

I'm trying to create graphs for our new IBM Flex System FC-3171 SAN switches. These seem to be Qlogic switches. I tried the latest templates from this thread but the oid in the xml does not exist on the switch.

But the .1.3.6.1.3.94.1.1.0 oid from the old xml file is working.

# snmptranslate .1.3.6.1.3.94.1.1.0
FCMGMT-MIB::uNumber.0

Do I miss something? If I replace fca_san.xml with the old version, I see that snmp queries are working (I get the number of ports) but the graphs are not created.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests