|
|
| Author |
Message |
dalaro
Joined: 18 Jun 2008 Posts: 8
|
Posted: Tue Mar 10, 2009 5:31 pm Post subject: Very basic QLogic SANBox 5000 Series (5xxx) snmp query |
|
|
Uses Fibre Alliance MIB. Only handles input and output octets; no errors, no temperature readings, just traffic bytes.
See this post for background.
| Description: |
|
 Download |
| Filename: |
sanboxfa.xml |
| Filesize: |
1.38 KB |
| Downloaded: |
264 Time(s) |
Last edited by dalaro on Wed Mar 25, 2009 12:48 pm; edited 1 time in total |
|
| Back to top |
|
 |
gheppner
Joined: 04 Dec 2008 Posts: 20
|
Posted: Wed Mar 11, 2009 5:48 pm Post subject: |
|
|
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.
|
|
| Back to top |
|
 |
toe_cutter Cacti User
Joined: 12 Sep 2008 Posts: 143 Location: Sweden
|
Posted: Mon Mar 16, 2009 8:33 am Post subject: |
|
|
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 :/).
| Description: |
|
 Download |
| Filename: |
fca_san.xml |
| Filesize: |
7.26 KB |
| Downloaded: |
253 Time(s) |
|
|
| Back to top |
|
 |
dalaro
Joined: 18 Jun 2008 Posts: 8
|
Posted: Wed Mar 25, 2009 12:51 pm Post subject: |
|
|
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.
|
|
| Back to top |
|
 |
jussiu
Joined: 30 Mar 2009 Posts: 2
|
Posted: Mon Mar 30, 2009 4:24 am Post subject: |
|
|
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
|
|
| Back to top |
|
 |
toe_cutter Cacti User
Joined: 12 Sep 2008 Posts: 143 Location: Sweden
|
Posted: Fri Apr 03, 2009 8:05 am Post subject: |
|
|
| 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.
|
|
| Back to top |
|
 |
jussiu
Joined: 30 Mar 2009 Posts: 2
|
Posted: Fri Apr 03, 2009 8:11 am Post subject: |
|
|
| 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.
|
|
| Back to top |
|
 |
toe_cutter Cacti User
Joined: 12 Sep 2008 Posts: 143 Location: Sweden
|
Posted: Fri Apr 03, 2009 3:40 pm Post subject: |
|
|
| 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:
| Quote: | | 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.
|
|
| Back to top |
|
 |
toe_cutter Cacti User
Joined: 12 Sep 2008 Posts: 143 Location: Sweden
|
Posted: Tue Apr 07, 2009 1:38 am Post subject: |
|
|
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: | | iso(1). org(3). dod(6). internet(1). mgmt(2). mib-2(1). fcMgmtMIB(8888) | and not | Code: | | 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! 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!!!!
| Description: |
| place in your ../resource/snmp_queries/-directory |
|
 Download |
| Filename: |
fca_san.xml |
| Filesize: |
7.21 KB |
| Downloaded: |
199 Time(s) |
| Description: |
Import this _ONLY_ if your snmpwalk above works. It could ruin already imported templates. Import via cacti. |
|
 Download |
| Filename: |
san_switch_-_port_statistics.xml |
| Filesize: |
121 KB |
| Downloaded: |
199 Time(s) |
|
|
| Back to top |
|
 |
five0.4tluv
Joined: 19 Mar 2008 Posts: 16
|
Posted: Wed Apr 07, 2010 10:13 am Post subject: Anyone still working on this? |
|
|
| 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.
|
|
| Back to top |
|
 |
djpetro
Joined: 08 Jun 2010 Posts: 1
|
Posted: Tue Jun 08, 2010 4:27 pm Post subject: Re: Anyone still working on this? |
|
|
| 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/fibrealliance/mib/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:
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
|
|
| Back to top |
|
 |
|