Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


ucd/net snmp Device (Disk) I/O templates - Updated - v3
Goto page 1, 2, 3, 4, 5, 6, 7  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates

Would you or your company pay someone to create more graph templates?
Yes
16%
 16%  [ 14 ]
No
33%
 33%  [ 28 ]
Maybe
27%
 27%  [ 23 ]
You suck for even asking
22%
 22%  [ 19 ]
Total Votes : 84

Author Message
Rodre



Joined: 22 Jul 2005
Posts: 29

PostPosted: Thu Aug 04, 2005 7:01 pm    Post subject: ucd/net snmp Device (Disk) I/O templates - Updated - v3 Reply with quote

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_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.

**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.

~®odre



Cacti_Net-SNMP_DevIO_v3.zip
 Description:
net-snmp Device IO XML Templates

Download
 Filename:  Cacti_Net-SNMP_DevIO_v3.zip
 Filesize:  9.95 KB
 Downloaded:  74289 Time(s)



Last edited by Rodre on Tue Oct 28, 2008 5:08 am; edited 11 times in total
Back to top
sumsum
Cacti User


Joined: 26 Apr 2004
Posts: 57
Location: Switzerland

PostPosted: Fri Aug 05, 2005 11:13 pm    Post subject: Reply with quote

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: 29

PostPosted: Sat Aug 06, 2005 4:21 pm    Post subject: Reply with quote

What is your Cacti version?
Back to top
jennifer



Joined: 01 Aug 2005
Posts: 5

PostPosted: Sat Aug 06, 2005 6:14 pm    Post subject: Reply with quote

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

PostPosted: Sat Aug 06, 2005 6:49 pm    Post subject: Reply with quote

hi
i'm running cacti version 0.8.6f.
Back to top
jennifer



Joined: 01 Aug 2005
Posts: 5

PostPosted: Mon Aug 08, 2005 7:02 pm    Post subject: Reply with quote

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

PostPosted: Mon Aug 08, 2005 10:59 pm    Post subject: import errors/unmet dependencies Reply with quote

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: 29

PostPosted: Tue Aug 09, 2005 3:27 pm    Post subject: Reply with quote

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

PostPosted: Tue Aug 09, 2005 4:21 pm    Post subject: making sense of all this Reply with quote

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

PostPosted: Tue Aug 09, 2005 4:31 pm    Post subject: is this right? Reply with quote

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.
Back to top
Rodre



Joined: 22 Jul 2005
Posts: 29

PostPosted: Tue Aug 09, 2005 6:46 pm    Post subject: Reply with quote

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

PostPosted: Tue Aug 09, 2005 9:09 pm    Post subject: Reply with quote

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

PostPosted: Tue Aug 09, 2005 11:41 pm    Post subject: So does order matter? Reply with quote

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

PostPosted: Tue Aug 09, 2005 11:52 pm    Post subject: still seeing issues Reply with quote

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: 29

PostPosted: Wed Aug 10, 2005 12:02 pm    Post subject: Reply with quote

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



Device_Load-Avg.PNG
 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:  47515 Time(s)

Device_Load-Avg.PNG



Device_Read-Write.PNG
 Description:
Number of Reads/Writes since last polling interval (5 mins in Cacti)
 Filesize:  5.29 KB
 Viewed:  47515 Time(s)

Device_Read-Write.PNG



Byte_Read-Write.PNG
 Description:
Number of bytes Read/Written since last polling interval (5 mins in Cacti)
 Filesize:  5.38 KB
 Viewed:  47968 Time(s)

Byte_Read-Write.PNG




Last edited by Rodre on Thu Aug 18, 2005 5:30 pm; edited 2 times in total
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Goto page 1, 2, 3, 4, 5, 6, 7  Next
Page 1 of 7

 



Powered by phpBB © 2001, 2005 phpBB Group