ucd/net snmp Device (Disk) I/O templates - Updated - v3.1
Moderators: Developers, Moderators
ucd/net snmp Device (Disk) I/O templates - Updated - v3.1
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
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 9457 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 91286 times
Last edited by Rodre on Thu Sep 16, 2010 6:34 pm, edited 15 times in total.
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
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/
-
- Cacti User
- Posts: 150
- Joined: Sat Jul 30, 2005 2:15 pm
import errors/unmet dependencies
I am seeing the same issues cited above with 0.8.6f.
What debug information would be useful?
What debug information would be useful?
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
~Rodre
-
- Cacti User
- Posts: 150
- Joined: Sat Jul 30, 2005 2:15 pm
making sense of all this
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?
and is there a way to remove data templates in case I want to start over?
-
- Cacti User
- Posts: 150
- Joined: Sat Jul 30, 2005 2:15 pm
is this right?
when I import 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.
Code: Select all
net-snmp_devio.xml
It looks like I have access to the template values but no luck creating any graphs.
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
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
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
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
-
- Cacti User
- Posts: 150
- Joined: Sat Jul 30, 2005 2:15 pm
So does order matter?
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
If I remove everything, I still seem to get
By the way, do you have any samples of the graphs this makes?[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
-
- Cacti User
- Posts: 150
- Joined: Sat Jul 30, 2005 2:15 pm
still seeing issues
This is still acting wonky:
These templates are OK with 0.8.6f, no?
Code: Select all
ERROR: Not a valid vname: #55D6D3 in line AREA:#55D6D3:Bytes Read
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
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
-
- Number of Reads/Writes since last polling interval (5 mins in Cacti)
- Device_Read-Write.PNG (5.29 KiB) Viewed 182282 times
-
- 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 182282 times
-
- Number of bytes Read/Written since last polling interval (5 mins in Cacti)
- Byte_Read-Write.PNG (5.38 KiB) Viewed 182735 times
Last edited by Rodre on Thu Aug 18, 2005 5:30 pm, edited 2 times in total.
Who is online
Users browsing this forum: No registered users and 2 guests