ucd/net snmp Device (Disk) I/O templates - Updated - v3.1

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

Moderators: Moderators, Developers

Post Reply

Would you or your company pay someone to create more graph templates?

Poll ended at Wed Nov 02, 2005 7:01 pm

Yes
14
17%
No
28
33%
Maybe
23
27%
You suck for even asking
19
23%
 
Total votes: 84

Author
Message
Rodre
Posts: 39
Joined: Fri Jul 22, 2005 7:17 pm

ucd/net snmp Device (Disk) I/O templates - Updated - v3.1

#1 Post by Rodre » Thu Aug 04, 2005 7:01 pm

Hello fellow Cacti,

I have created some XML Templates for monitoring Device [Disk] IO using net-snmp. My Cacti setup is 08.7b with all the latestes patches, RRDTool 1.2.23, running on CentOS 5 i386 Linux. Although the templates work (pretty graphs are generated based on values recieved by SNMP queries) I am not 100% sure the math behind the math (CDEF) behind the graph calculates properly. In either case you can get some kind of idea of what your disk activity looks like, or at least stare at the pretty colors. Here is what it will graph:

PLEASE NOTE: These graphs DO NOT WORK with NET-SNMP under WIN32. This is a limitation of net-snmp not supporting the DiskIO OIDs (.1.3.6.1.4.1.2021.13.15) under Windows.

Bytes Read (per sec?)
Bytes Written (per sec?)
Read Accesses (per sec?)
Write Accesses (per sec?)
1 Min. Load Average (BSD only - No Linux support in net-snmp?)
5 Min. Load Average (BSD only - No Linux support in net-snmp?)
15 Min. Load Average (BSD only - No Linux support in net-snmp?)

Setup:

1. Unzip Cacti_Net-SNMP_DevIO_v3.1.zip (5 Files)
2. Copy net-snmp_devio.xml to <path_cacti>/resource/snmp_queries/net-snmp_devio.xml
3. Import all *_TMPL.xml files via Cacti "Import Templates" interface- These templates should include all their dependancies
4. Import the net-snmp_devIO-Data_query.xml file LAST
5. Add "ucd/net - Get Device I/O" Data Query to your SNMP Enabled host using the "Index Count Changed" Re-index Method.
6. Create Graphs for your desired Disk and/or Memory devices.

----As of version 3.1 you should no longer need to do the following---------

**NOTE** - You may need to manually add the Data Queries from the screenshots on page 3 of this post. I have re-exported the templates from my new install (Version 0.8.7b) so the required Data Queries should be bundled with the templates. Make sure you have a Data Querie titled "ucd/net - Get Device I/O" in order to make sure the templates work.

---------------------------------------------------------------------------


There seems to have been Import issues with previous versions, please remove all graph, data source, and template residue from prior versions before importing this version. Thanks.

Under Linux, and possibly other OSes that use the net-snmp implementation you will have to allow Cacti to walk the OIDs required for device I/O. You can do this by making the following change in your /etc/snmp/snmpd.conf file:

# Make at least snmpwalk -v 1 localhost -c public system fast again.
# name incl/excl subtree mask(optional)
#view systemview included .1.3.6.1.2.1.1
#view systemview included .1.3.6.1.2.1.25.1.1
view systemview included .1


~�odre
Attachments
net-snmp_devio.xml_for_64bit_systems.zip
Use this net-snmp_devio.xml instead of the one in the template bundle if you are pollling 64-bit systems. This net-snmp_devio.xml has been updated to use 64-bit counters. Shout out to webstoney for this.
(596 Bytes) Downloaded 7483 times
Cacti_Net-SNMP_DevIO_v3.1.zip
net-snmp Device IO XML Templates v3.1
Includes the Missing Data Query Template
(14.76 KiB) Downloaded 89283 times
Last edited by Rodre on Thu Sep 16, 2010 6:34 pm, edited 15 times in total.

User avatar
sumsum
Cacti User
Posts: 68
Joined: Mon Apr 26, 2004 7:18 am
Location: Switzerland
Contact:

#2 Post by sumsum » Fri Aug 05, 2005 11:13 pm

thanx for sharing your scripts

here my bug report.

1. during import i get unmet dependencies for all templates.
2. if i add the graph @ Associated Data Queries. following Data Query Debug Information will be shown

+ Running data query [13].
+ Unknown type = ''
+ Found data query XML file at '/home/zumbi/public_html/cacti-stats/resource/snmp_queries/net-snmp_devio.xml'
+ Found data query XML file at '/home/zumbi/public_html/cacti-stats/resource/snmp_queries/net-snmp_devio.xml'
+ Found data query XML file at '/home/zumbi/public_html/cacti-stats/resource/snmp_queries/net-snmp_devio.xml'

cheers
tom
http://www.lounge-radio.com/

Rodre
Posts: 39
Joined: Fri Jul 22, 2005 7:17 pm

#3 Post by Rodre » Sat Aug 06, 2005 4:21 pm

What is your Cacti version?

jennifer
Posts: 5
Joined: Mon Aug 01, 2005 1:22 am
Contact:

#4 Post by jennifer » Sat Aug 06, 2005 6:14 pm

When I try and import the templates, I get the error

Error: XML: Hash version does not exist.


What am I doing wrong?

cacti version 0.8.6e

User avatar
sumsum
Cacti User
Posts: 68
Joined: Mon Apr 26, 2004 7:18 am
Location: Switzerland
Contact:

#5 Post by sumsum » Sat Aug 06, 2005 6:49 pm

hi
i'm running cacti version 0.8.6f.
http://www.lounge-radio.com/

jennifer
Posts: 5
Joined: Mon Aug 01, 2005 1:22 am
Contact:

#6 Post by jennifer » Mon Aug 08, 2005 7:02 pm

Okay, I have upgraded to 0.8.6f and I am getting the same errors as Sumsum. Any advice?

Jen

paulbeard206
Cacti User
Posts: 148
Joined: Sat Jul 30, 2005 2:15 pm

import errors/unmet dependencies

#7 Post by paulbeard206 » Mon Aug 08, 2005 10:59 pm

I am seeing the same issues cited above with 0.8.6f.

What debug information would be useful?

Rodre
Posts: 39
Joined: Fri Jul 22, 2005 7:17 pm

#8 Post by Rodre » Tue Aug 09, 2005 3:27 pm

Sorry for my delayed response, I was out of town and didn't have access to the system that I have tthe cacti running on. I have updated the template XML file (in the zip file in my initial post above) to include all the dependancies in one file. Please try to import this xml template and see if it works for you.

~Rodre

paulbeard206
Cacti User
Posts: 148
Joined: Sat Jul 30, 2005 2:15 pm

making sense of all this

#9 Post by paulbeard206 » Tue Aug 09, 2005 4:21 pm

Can you either put all the files in an archive (so we can make sure we get everything) or re-upload the original archive?

and is there a way to remove data templates in case I want to start over?

paulbeard206
Cacti User
Posts: 148
Joined: Sat Jul 30, 2005 2:15 pm

is this right?

#10 Post by paulbeard206 » Tue Aug 09, 2005 4:31 pm

when I import

Code: Select all

net-snmp_devio.xml
I get no feedback, whereas on the other files, I get a success or failure notification.

It looks like I have access to the template values but no luck creating any graphs.

Rodre
Posts: 39
Joined: Fri Jul 22, 2005 7:17 pm

#11 Post by Rodre » Tue Aug 09, 2005 6:46 pm

Hi Paul,

The net-snmp_devio.xml file goes in your <path_cacti>/resource/snmp_queries/net-snmp_devio.xml and doesn't get imported via the Cacti GUI.

I did export everything into one XML template that should contain all the dependencies and posted it as the file attachement to my original post above.

In order to delete the existing templates I believe you have to go to "Console -> Data Templates" in the Cacti GUI and check off the check-box to the right of the template you want to delete, then choose "Delete" from the drop down menu at the bottom right of the "Console -> Data Templates" GUI page and click the "Go" button.

~Rodre

jennifer
Posts: 5
Joined: Mon Aug 01, 2005 1:22 am
Contact:

#12 Post by jennifer » Tue Aug 09, 2005 9:09 pm

Rodre,
It imports wonderfully now, but still get the "type" error

+ Running data query [11].
+ Unknown type = ''
+ Found data query XML file at /usr/share/cacti/resource/snmp_queries/net-snmp_devio.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/net-snmp_devio.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/net-snmp_devio.xml'

Any sugestions?

Jenny

paulbeard206
Cacti User
Posts: 148
Joined: Sat Jul 30, 2005 2:15 pm

So does order matter?

#13 Post by paulbeard206 » Tue Aug 09, 2005 11:41 pm

I would like to re-import everything: I still see errors but I'm not sure if matters (ie, if a dependency is resolved later, does it matter?).

If I remove everything, I still seem to get
[success] ucd/net - Device I/O [update]
+ Unmet Dependency: (Data Input Method) Get SNMP Data (Indexed)
+ Unmet Dependency: (Data Input Field) Output Type ID
+ Unmet Dependency: (Data Input Field) Index Value
+ Unmet Dependency: (Data Input Field) Index Type
+ Unmet Dependency: (Data Input Field) SNMP Version (1, 2, or 3)
+ Unmet Dependency: (Data Input Field) SNMP Password (v3)
+ Unmet Dependency: (Data Input Field) SNMP Username (v3)
+ Unmet Dependency: (Data Input Field) SNMP Community
+ Unmet Dependency: (Data Input Field) SNMP IP Address
By the way, do you have any samples of the graphs this makes?

paulbeard206
Cacti User
Posts: 148
Joined: Sat Jul 30, 2005 2:15 pm

still seeing issues

#14 Post by paulbeard206 » Tue Aug 09, 2005 11:52 pm

This is still acting wonky:

Code: Select all

ERROR: Not a valid vname: #55D6D3 in line AREA:#55D6D3:Bytes Read
These templates are OK with 0.8.6f, no?

Rodre
Posts: 39
Joined: Fri Jul 22, 2005 7:17 pm

#15 Post by Rodre » Wed Aug 10, 2005 12:02 pm

I generated the templates using 0.8.6f with all the latest patches.

Jenny - Go to "Console -> Data Queries" and click on "ucd/net - Get Device I/O". Does the "Data Input Method" = "Get SNMP Data(Indexed)"?

Paul - Have you re-downloaded the file I posted with my original post? It is the XML templates all in one file, so I believe the dependencies will be met in the right order. I am not sure if it matters if a dependency requirement is met later - can someone from this list answer that question?

#55D6D3 is a Hex code I used for one of the graph colors in the graph template. I picked it from the drop down menu; meaning it was present from my Cacti install. Where are you getting this error from? How customized is your Cacti install? - Meaning how did you install it? -RPM, Source, etc.

~Rodre
Attachments
Device_Read-Write.PNG
Number of Reads/Writes since last polling interval (5 mins in Cacti)
Device_Read-Write.PNG (5.29 KiB) Viewed 168817 times
Device_Load-Avg.PNG
1, 5, 15 Minute Load Averages since last polling interval (5 mins in Cacti) - BSD support only - netsnmp currently has no support for these OIDs in Linux
Device_Load-Avg.PNG (4.75 KiB) Viewed 168817 times
Byte_Read-Write.PNG
Number of bytes Read/Written since last polling interval (5 mins in Cacti)
Byte_Read-Write.PNG (5.38 KiB) Viewed 169270 times
Last edited by Rodre on Thu Aug 18, 2005 5:30 pm, edited 2 times in total.

Post Reply