Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sun May 19, 2019 11:40 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 169 posts ]  Go to page 1, 2, 3, 4, 5 ... 12  Next

Would you or your company pay someone to create more graph templates?
Poll ended at Wed Nov 02, 2005 7:01 pm
Yes 17%  17%  [ 14 ]
No 33%  33%  [ 28 ]
Maybe 27%  27%  [ 23 ]
You suck for even asking 23%  23%  [ 19 ]
Total votes : 84
Author Message
 Post subject: ucd/net snmp Device (Disk) I/O templates - Updated - v3.1
PostPosted: Thu Aug 04, 2005 7:01 pm 
Offline

Joined: Fri Jul 22, 2005 7:17 pm
Posts: 39
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:
File comment: 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.
net-snmp_devio.xml_for_64bit_systems.zip [596 Bytes]
Downloaded 7083 times
File comment: net-snmp Device IO XML Templates v3.1
Includes the Missing Data Query Template

Cacti_Net-SNMP_DevIO_v3.1.zip [14.76 KiB]
Downloaded 88873 times


Last edited by Rodre on Thu Sep 16, 2010 6:34 pm, edited 15 times in total.
Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 05, 2005 11:13 pm 
Offline
Cacti User
User avatar

Joined: Mon Apr 26, 2004 7:18 am
Posts: 68
Location: Switzerland
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/


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 06, 2005 4:21 pm 
Offline

Joined: Fri Jul 22, 2005 7:17 pm
Posts: 39
What is your Cacti version?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 06, 2005 6:14 pm 
Offline

Joined: Mon Aug 01, 2005 1:22 am
Posts: 5
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


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 06, 2005 6:49 pm 
Offline
Cacti User
User avatar

Joined: Mon Apr 26, 2004 7:18 am
Posts: 68
Location: Switzerland
hi
i'm running cacti version 0.8.6f.

_________________
http://www.lounge-radio.com/


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 08, 2005 7:02 pm 
Offline

Joined: Mon Aug 01, 2005 1:22 am
Posts: 5
Okay, I have upgraded to 0.8.6f and I am getting the same errors as Sumsum. Any advice?

Jen


Top
 Profile  
 
 Post subject: import errors/unmet dependencies
PostPosted: Mon Aug 08, 2005 10:59 pm 
Offline
Cacti User

Joined: Sat Jul 30, 2005 2:15 pm
Posts: 148
I am seeing the same issues cited above with 0.8.6f.

What debug information would be useful?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 09, 2005 3:27 pm 
Offline

Joined: Fri Jul 22, 2005 7:17 pm
Posts: 39
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


Top
 Profile  
 
 Post subject: making sense of all this
PostPosted: Tue Aug 09, 2005 4:21 pm 
Offline
Cacti User

Joined: Sat Jul 30, 2005 2:15 pm
Posts: 148
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?


Top
 Profile  
 
 Post subject: is this right?
PostPosted: Tue Aug 09, 2005 4:31 pm 
Offline
Cacti User

Joined: Sat Jul 30, 2005 2:15 pm
Posts: 148
when I import
Code:
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.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 09, 2005 6:46 pm 
Offline

Joined: Fri Jul 22, 2005 7:17 pm
Posts: 39
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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 09, 2005 9:09 pm 
Offline

Joined: Mon Aug 01, 2005 1:22 am
Posts: 5
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


Top
 Profile  
 
 Post subject: So does order matter?
PostPosted: Tue Aug 09, 2005 11:41 pm 
Offline
Cacti User

Joined: Sat Jul 30, 2005 2:15 pm
Posts: 148
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?


Top
 Profile  
 
 Post subject: still seeing issues
PostPosted: Tue Aug 09, 2005 11:52 pm 
Offline
Cacti User

Joined: Sat Jul 30, 2005 2:15 pm
Posts: 148
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?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 10, 2005 12:02 pm 
Offline

Joined: Fri Jul 22, 2005 7:17 pm
Posts: 39
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:
File comment: 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
Device_Load-Avg.PNG [ 4.75 KiB | Viewed 167606 times ]
File comment: Number of Reads/Writes since last polling interval (5 mins in Cacti)
Device_Read-Write.PNG
Device_Read-Write.PNG [ 5.29 KiB | Viewed 167606 times ]
File comment: Number of bytes Read/Written since last polling interval (5 mins in Cacti)
Byte_Read-Write.PNG
Byte_Read-Write.PNG [ 5.38 KiB | Viewed 168059 times ]


Last edited by Rodre on Thu Aug 18, 2005 5:30 pm, edited 2 times in total.
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 169 posts ]  Go to page 1, 2, 3, 4, 5 ... 12  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group