|
|
| Would you or your company pay someone to create more graph templates? |
| Yes |
|
16% |
[ 14 ] |
| No |
|
33% |
[ 28 ] |
| Maybe |
|
27% |
[ 23 ] |
| You suck for even asking |
|
22% |
[ 19 ] |
|
| Total Votes : 84 |
|
| Author |
Message |
Rodre
Joined: 22 Jul 2005 Posts: 23
|
Posted: Thu Aug 04, 2005 7:01 pm Post subject: ucd/net snmp Device (Disk) I/O templates - Updated - v2 |
|
|
Hello fellow Cacti,
I have created some XML Templates for monitoring Device [Disk] IO using net-snmp. My Cacti setup is 08.6f with all the latestes patches, RRDTool v1.0.49, running on FC4 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_v2.zip (4 Files)
2. Copy net-snmp_devio.xml to <path_cacti>/resource/snmp_queries/net-snmp_devio.xml
3. Import all *_templ.xml via Cacti "Import Templates" interface - These templates should include all their dependancies
4. Add "ucd/net - Get Device I/O" Data Query to your SNMP Enabled host using the "Index Count Changed" Re-index Method.
5. Create Graphs for your desired Disk and/or Memory devices.
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.
~®odre
| Description: |
| net-snmp Device IO XML Templates |
|
 Download |
| Filename: |
Cacti_Net-SNMP_DevIO_v2.zip |
| Filesize: |
9.13 KB |
| Downloaded: |
73497 Time(s) |
Last edited by Rodre on Tue Sep 06, 2005 1:33 pm; edited 9 times in total |
|
| Back to top |
|
 |
sumsum Cacti User
Joined: 26 Apr 2004 Posts: 57 Location: Switzerland
|
Posted: Fri Aug 05, 2005 11:13 pm Post subject: |
|
|
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
|
|
| Back to top |
|
 |
Rodre
Joined: 22 Jul 2005 Posts: 23
|
Posted: Sat Aug 06, 2005 4:21 pm Post subject: |
|
|
| What is your Cacti version?
|
|
| Back to top |
|
 |
jennifer
Joined: 01 Aug 2005 Posts: 5
|
Posted: Sat Aug 06, 2005 6:14 pm Post subject: |
|
|
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
|
|
| Back to top |
|
 |
sumsum Cacti User
Joined: 26 Apr 2004 Posts: 57 Location: Switzerland
|
Posted: Sat Aug 06, 2005 6:49 pm Post subject: |
|
|
hi
i'm running cacti version 0.8.6f.
|
|
| Back to top |
|
 |
jennifer
Joined: 01 Aug 2005 Posts: 5
|
Posted: Mon Aug 08, 2005 7:02 pm Post subject: |
|
|
Okay, I have upgraded to 0.8.6f and I am getting the same errors as Sumsum. Any advice?
Jen
|
|
| Back to top |
|
 |
paulbeard206 Cacti User
Joined: 30 Jul 2005 Posts: 106
|
Posted: Mon Aug 08, 2005 10:59 pm Post subject: import errors/unmet dependencies |
|
|
I am seeing the same issues cited above with 0.8.6f.
What debug information would be useful?
|
|
| Back to top |
|
 |
Rodre
Joined: 22 Jul 2005 Posts: 23
|
Posted: Tue Aug 09, 2005 3:27 pm Post subject: |
|
|
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
|
|
| Back to top |
|
 |
paulbeard206 Cacti User
Joined: 30 Jul 2005 Posts: 106
|
Posted: Tue Aug 09, 2005 4:21 pm Post subject: 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?
|
|
| Back to top |
|
 |
paulbeard206 Cacti User
Joined: 30 Jul 2005 Posts: 106
|
Posted: Tue Aug 09, 2005 4:31 pm Post subject: 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.
|
|
| Back to top |
|
 |
Rodre
Joined: 22 Jul 2005 Posts: 23
|
Posted: Tue Aug 09, 2005 6:46 pm Post subject: |
|
|
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
|
|
| Back to top |
|
 |
jennifer
Joined: 01 Aug 2005 Posts: 5
|
Posted: Tue Aug 09, 2005 9:09 pm Post subject: |
|
|
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
|
|
| Back to top |
|
 |
paulbeard206 Cacti User
Joined: 30 Jul 2005 Posts: 106
|
Posted: Tue Aug 09, 2005 11:41 pm Post subject: 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
| Quote: |
[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?
|
|
| Back to top |
|
 |
paulbeard206 Cacti User
Joined: 30 Jul 2005 Posts: 106
|
Posted: Tue Aug 09, 2005 11:52 pm Post subject: still seeing issues |
|
|
This is still acting wonky:
| Code: | ERROR: Not a valid vname: #55D6D3 in line AREA:#55D6D3:Bytes Read
|
These templates are OK with 0.8.6f, no?
|
|
| Back to top |
|
 |
Rodre
Joined: 22 Jul 2005 Posts: 23
|
Posted: Wed Aug 10, 2005 12:02 pm Post subject: |
|
|
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
| Description: |
| 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 |
|
| Filesize: |
4.75 KB |
| Viewed: |
42426 Time(s) |

|
| Description: |
| Number of Reads/Writes since last polling interval (5 mins in Cacti) |
|
| Filesize: |
5.29 KB |
| Viewed: |
42426 Time(s) |

|
| Description: |
| Number of bytes Read/Written since last polling interval (5 mins in Cacti) |
|
| Filesize: |
5.38 KB |
| Viewed: |
42879 Time(s) |

|
Last edited by Rodre on Thu Aug 18, 2005 5:30 pm; edited 2 times in total |
|
| Back to top |
|
 |
|