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
scubabri
Posts: 32
Joined: Thu Jul 13, 2006 3:11 pm

#61 Post by scubabri » Fri Jul 14, 2006 12:38 pm

ok, I have a bunch of hosts working with this, but this one host returns this

+ Running data query [10].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/cacti-0.8.6h/resource/snmp_queries/net-snmp_devio.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2021.13.15.1.1.1'
+ No SNMP data returned
+ Found data query XML file at '/var/www/cacti-0.8.6h/resource/snmp_queries/net-snmp_devio.xml'
+ Found data query XML file at '/var/www/cacti-0.8.6h/resource/snmp_queries/net-snmp_devio.xml'
+ Found data query XML file at '/var/www/cacti-0.8.6h/resource/snmp_queries/net-snmp_devio.xml'

but an snmpwalk from the command line

v-monitor1:~# snmpwalk -v1 -c public smpt01-01 .1.3.6.1.4.1.2021.13.15.1.1.1
UCD-DISKIO-MIB::diskIOIndex.1 = INTEGER: 1
UCD-DISKIO-MIB::diskIOIndex.2 = INTEGER: 2
UCD-DISKIO-MIB::diskIOIndex.3 = INTEGER: 3
UCD-DISKIO-MIB::diskIOIndex.4 = INTEGER: 4
UCD-DISKIO-MIB::diskIOIndex.5 = INTEGER: 5
UCD-DISKIO-MIB::diskIOIndex.6 = INTEGER: 6
UCD-DISKIO-MIB::diskIOIndex.7 = INTEGER: 7
UCD-DISKIO-MIB::diskIOIndex.8 = INTEGER: 8
UCD-DISKIO-MIB::diskIOIndex.9 = INTEGER: 9
UCD-DISKIO-MIB::diskIOIndex.10 = INTEGER: 10
UCD-DISKIO-MIB::diskIOIndex.11 = INTEGER: 11
UCD-DISKIO-MIB::diskIOIndex.12 = INTEGER: 12
UCD-DISKIO-MIB::diskIOIndex.13 = INTEGER: 13
UCD-DISKIO-MIB::diskIOIndex.14 = INTEGER: 14
UCD-DISKIO-MIB::diskIOIndex.15 = INTEGER: 15
UCD-DISKIO-MIB::diskIOIndex.16 = INTEGER: 16
UCD-DISKIO-MIB::diskIOIndex.17 = INTEGER: 17
UCD-DISKIO-MIB::diskIOIndex.18 = INTEGER: 18
UCD-DISKIO-MIB::diskIOIndex.19 = INTEGER: 19
UCD-DISKIO-MIB::diskIOIndex.20 = INTEGER: 20
UCD-DISKIO-MIB::diskIOIndex.21 = INTEGER: 21
UCD-DISKIO-MIB::diskIOIndex.22 = INTEGER: 22

any suggestions?

scubabri
Posts: 32
Joined: Thu Jul 13, 2006 3:11 pm

#62 Post by scubabri » Fri Jul 14, 2006 1:30 pm

Ok, that problem is resolved... my dns is horked up and I wasn't returning the host I thought I was.

Is there anything on the client side that I need to switch on to allow snmp to gather the data?

I get this from the LAN query

+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ Located input field 'ifIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.1'
+ Found item [ifIndex='1'] index: 1 [from value]
+ Found item [ifIndex='2'] index: 2 [from value]
+ Found item [ifIndex='3'] index: 3 [from value]
+ Found item [ifIndex='4'] index: 4 [from value]
+ Located input field 'ifOperStatus' [walk]

but this from the Device IO

+ Running data query [10].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/cacti-0.8.6h/resource/snmp_queries/net-snmp_devio.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2021.13.15.1.1.1'
+ No SNMP data returned
+ Found data query XML file at '/var/www/cacti-0.8.6h/resource/snmp_queries/net-snmp_devio.xml'
+ Found data query XML file at '/var/www/cacti-0.8.6h/resource/snmp_queries/net-snmp_devio.xml'
+ Found data query XML file at '/var/www/cacti-0.8.6h/resource/snmp_queries/net-snmp_devio.xml'

an a manual snmpwalk returns no data, I'm not having this problem on any other host.

This is a debian host running the latest version of net-snmp


any help would be appriciated

kees
Posts: 1
Joined: Mon Jul 17, 2006 4:54 pm

Re: ucd/net snmp Device (Disk) I/O templates - Updated - v2

#63 Post by kees » Fri Sep 01, 2006 4:53 pm

Rodre wrote:4. Add "ucd/net - Get Device I/O" Data Query to your SNMP Enabled host using the "Index Count Changed" Re-index Method.
I am running Cacti 0.8.6h. After installing the snmp_queries file and importing all the templates, I do not have the "ucd/net - Get Device I/O" Data Query. I have tried creating it by hand, but this results in none of the "Associated Data Templates" being listed for each of the graphs I attempt to associate.

What should I try next? Thanks!

phayes
Posts: 1
Joined: Wed Sep 06, 2006 10:12 am
Location: France

Data Query does not import in cacti 0.8.6h

#64 Post by phayes » Thu Oct 05, 2006 11:42 am

I've got the same problem as kees:
After following the installation method described in the first post, I cannot add the data query to the host in step 4 as it does not exist.

Thje following text shows the results of the imports of the (star)_templ.xml files where everything seems to have been imported correctly & without any apparent errors:
Console->Import Templates (net-snmp_devIO-BytesRW_graphTMPL.xml)
Cacti has imported the following items:
Round Robin Archive
[success] Daily (5 Minute Average) [update]
[success] Weekly (30 Minute Average) [update]
[success] Monthly (2 Hour Average) [update]
[success] Yearly (1 Day Average) [update]
GPRINT Preset
[success] Normal [update]
Data Input Method
[success] Get SNMP Data (Indexed) [update]
Data Template
[success] ucd/net - Device I/O [new]
Graph Template
[success] ucd/net - Device I/O - Bytes Read/Written [new]

Console->Import Templates (net-snmp_devIO-LoadAVG_graphTMPL.xml)
Cacti has imported the following items:
Round Robin Archive
[success] Daily (5 Minute Average) [update]
[success] Weekly (30 Minute Average) [update]
[success] Monthly (2 Hour Average) [update]
[success] Yearly (1 Day Average) [update]
GPRINT Preset
[success] Normal [update]
[success] Load Average [update]
Data Input Method
[success] Get SNMP Data (Indexed) [update]
Data Template
[success] ucd/net - Device I/O [update]
Graph Template
[success] ucd/net - Device I/O - Load Averages [new]

Console->Import Templates (net-snmp_devIO-ReadsWrites_graphTMPL.xml)
Cacti has imported the following items:
Round Robin Archive
[success] Daily (5 Minute Average) [update]
[success] Weekly (30 Minute Average) [update]
[success] Monthly (2 Hour Average) [update]
[success] Yearly (1 Day Average) [update]
GPRINT Preset
[success] Exact Numbers [update]
Data Input Method
[success] Get SNMP Data (Indexed) [update]
Data Template
[success] ucd/net - Device I/O [update]
Graph Template
[success] ucd/net - Device I/O - Reads/Writes [new]

I tried adding the data query and associating the graph templates to the data templates myself:
Name: ucd/net - Get Device I/O
Description: Queries a net-snmp host for a device I/O listing
xml path: <path_cacti>/resource/snmp_queries/net-snmp_devio.xml
Data Input Method: Get Script Data (indexed)
Associated Graph Templates
Name____________ Graph Template Name
ucd/net-Bytes R/W ucd/net - Device I/O - Bytes Read/Written
ucd/net-Load Aver ucd/net - Device I/O - Load Averages
ucd/net-Reads/Wri ucd/net - Device I/O - Reads/Writes

However, when I try to add the data query to the host, the following errors are shown.

Notice: Undefined index: arg_index in /usr/share/cacti/site/lib/data_query.php on line 98
Notice: Undefined index: script_path in /usr/share/cacti/site/lib/data_query.php on line 98
Notice: Undefined index: arg_query in /usr/share/cacti/site/lib/data_query.php on line 109
Notice: Undefined index: query_name in /usr/share/cacti/site/lib/data_query.php on line 109
Notice: Undefined index: script_path in /usr/share/cacti/site/lib/data_query.php on line 109
Notice: Undefined index: arg_query in /usr/share/cacti/site/lib/data_query.php on line 109
Notice: Undefined index: query_name in /usr/share/cacti/site/lib/data_query.php on line 109
Notice: Undefined index: script_path in /usr/share/cacti/site/lib/data_query.php on line 109
Warning: Cannot modify header information - headers already sent by (output started at /usr/share/cacti/site/lib/data_query.php:98 ) in /usr/share/cacti/site/host.php on line 129

Any guidance on what we need to do next?
Last edited by phayes on Thu Oct 05, 2006 11:51 am, edited 2 times in total.

sylvan
Posts: 1
Joined: Thu Oct 05, 2006 11:51 pm

Re: Data Query does not import in cacti 0.8.6h

#65 Post by sylvan » Thu Oct 05, 2006 11:58 pm

phayes wrote: I tried adding the data query and associating the graph templates to the data templates myself:
Name: ucd/net - Get Device I/O
Description: Queries a net-snmp host for a device I/O listing
xml path: <path_cacti>/resource/snmp_queries/net-snmp_devio.xml
Data Input Method: Get Script Data (indexed)
change to
Data Input Method: Get Script Data(indexed)-> Get Snmp Data(indexed)

phayes
Posts: 1
Joined: Wed Sep 06, 2006 10:12 am
Location: France

Re: Data Query does not import in cacti 0.8.6h

#66 Post by phayes » Fri Oct 06, 2006 2:54 am

And that was the missing link as it works perfectly now, thanks sylvan.

Rodre's instructions on the initial post seem to be missing a step between 3 & 4 (at least for Cacti 0.8.6h):
Add the data query and associate the graph templates to the data templates.

On a different subject, rodre left a comment in net-snmp_devio.xml saying that other cacti graphs could be found at http://www.rodre.com. As this site doesn't respond at present I was wondering if they were available anywhere else?

clshrock
Posts: 1
Joined: Thu Nov 16, 2006 1:40 am

Empty SNMP query can be caused by old version of net-snmp

#67 Post by clshrock » Thu Nov 16, 2006 2:22 am

For Gentoo, the newer versions of net-snmp that contain the diskio USE flag are currently masked. So you must unmask the package and re-emerge it with the diskio USE flag in order for this data to flow to Cacti :-)

cspenpen
Cacti User
Posts: 67
Joined: Tue Dec 05, 2006 5:10 am

#68 Post by cspenpen » Thu Dec 07, 2006 10:09 pm

my cacti server use centos3
detect server use RH4 ES and net-snmp-5.4

now my Data Query Debug Information
+ Running data query [14].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/net-snmp_devio.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2021.13.15.1.1.1'
+ No SNMP data returned
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/net-snmp_devio.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/net-snmp_devio.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/net-snmp_devio.xml'
and I use
snmpwalk -v 2c 137.102.32.182 -c public .1.3.6.1.4.1.2021.13.15.1.1.3
UCD-SNMP-MIB::ucdExperimental.15.1.1.3 = No Such Object available on this agent at this OID
so that mean my os dosn't suport disk io ?
have any solution can help me thx!

raindrift
Posts: 1
Joined: Fri Jan 12, 2007 7:56 pm

#69 Post by raindrift » Fri Jan 12, 2007 7:57 pm

To get diskio support on Linux systems without recompiling net-snmp:

http://spacepants.org/blog/net-snmp-lin ... ollector-2

eald
Posts: 1
Joined: Mon Jan 15, 2007 11:05 am
Location: Monterrey, NL, Mex

Re: ucd/net snmp Device (Disk) I/O templates - Updated - v2

#70 Post by eald » Mon Jan 15, 2007 11:22 am

Rodre wrote: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:
I know a bit about the "math". So I'll tell you.
Rodre wrote: 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?)
Bytes Read: Bytes read since de creation of this filesystem.
Bytes Written: Bytes written since de creation of this filesystem.
Read Accesses: Times that filesystem was accessed for read.
Write Accesses: Times that filesystem was accessed for Write.

So, what we normally want to know if how much the filesystem is being used and how many times is being accessed, to know this we only need the different between the last interval and the actual value every time. To me seems thats the way is working now.
The Load Avarage per filesystem isn't pressent in linux kernel afaik. Indeed I don't get what that could means. How much load is generated by that fs?
Rodre wrote: 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.
Let me comment on how I did it work, I'm a newbie in cacti but with this steps it worked.

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 data Query to cacti in Data Queries -> Add
5. Then associate the graphs from step 3 with Associated Graph Templates -> Add in the same page. Here choice de data corresponding to the graph that you want to graph.
6. In Devices-> <host> -> Associated Data Queries (bottom section) add the Data Query created in 4.

This is exactly as the posts with screenshots that is in the middle of the topic.

Maybe will be good if the first post is updated.

Regards

User avatar
gandalf
Developer
Posts: 22375
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

#71 Post by gandalf » Sat Feb 03, 2007 12:36 pm

Here's my complete DISKIO stuff.
It includes the ressources from the first post PLUS the missing Data Query definitions (which were already posted as screenshots).

Usage:
- tar -zxf attached file
- put net-snmp_devio.xml into ./ressources/snmp_queries
- import cacti_data_query_ucdnet_device_io.xml from the web interface

That should be all
You must use at least cacti 0.8.6j
My rra definitions are unchanged defaults. So must must only pay attention when using the "1min polling patch"

Reinhard
Attachments
diskio.tgz
The Ressources
(4.83 KiB) Downloaded 3417 times

mr.Scamp
Posts: 8
Joined: Wed Dec 27, 2006 10:53 am
Contact:

#72 Post by mr.Scamp » Sun Feb 04, 2007 5:57 pm

What data do i have to input in the fields on the picture below to get it working?
In what field do i have to type the disk`s name such as hda or ad0?
Attachments
cacti_diskio.PNG
cacti_diskio.PNG (40.34 KiB) Viewed 29074 times

User avatar
pirx
Cacti User
Posts: 199
Joined: Tue Feb 10, 2004 10:08 am
Location: Esslingen, Germany

#73 Post by pirx » Sat Feb 10, 2007 6:53 am

I always get this error message about truncated integer values with the DevIO plugin. The server I'm polling is a x86_64bit system (Debian Etch / net-snmp 5.2.3-7).

Feb 10 12:42:35 xxxxx snmpd[6133]: truncating integer value > 32 bits
Feb 10 12:45:19 xxxxx snmpd[6133]: truncating integer value > 32 bits
Feb 10 12:45:19 xxxxx snmpd[6133]: truncating integer value > 32 bits

I also see these messages during an snmpwalk of the following oid's.

BytesRead
.1.3.6.1.4.1.2021.13.15.1.1.3
BytesWritten
.1.3.6.1.4.1.2021.13.15.1.1.4

I guess this is net-snmp problem?

User avatar
gandalf
Developer
Posts: 22375
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

#74 Post by gandalf » Sat Feb 10, 2007 4:05 pm

mr.Scamp wrote:What data do i have to input in the fields on the picture below to get it working?
In what field do i have to type the disk`s name such as hda or ad0?
Are you using php-snmp? To check, select the big cactus on cacti's cosole screen at the lower left side and scroll to the bottom
Reinhard

User avatar
gandalf
Developer
Posts: 22375
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

#75 Post by gandalf » Sat Feb 10, 2007 4:05 pm

pirx wrote:...
I guess this is net-snmp problem?
I suppose so. Please post to the net-snmp-users mailing list
Reinhard

Post Reply