ucd/net snmp Device (Disk) I/O templates - Updated - v3.1

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

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

jnojr
Cacti User
Posts: 65
Joined: Tue Jul 15, 2008 11:16 am
Location: San Diego, CA
Contact:

Post by jnojr »

I wound up reinstalling from scratch because of another problem. I followed the guide at http://www.goldfisch.at/knowwiki/howtos/cacti#disk_io After I go to Devices, the server I want to monitor, "Associated Data Queries", I can add "ucd/net - Device I/O". But when I go to "Create Graphs for this Host", under Data Query [ucd/net - Device I/O] I get a red "Error in data query".

Back on the Device page, if I do a verbose query for ucd/net - Device I/O, it says:

+ Running data query [10].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/net-snmp_devio.xml'
+ Error parsing XML file into an array.
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/net-snmp_devio.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/net-snmp_devio.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/net-snmp_devio.xml'

The contents of that file are:

<query>
<name>Get Disk I/O</name>
<description>Queries a net-snmp host for a device I/O listing</description>
<comment>Get more Cacti graphs at http://www.rodre.com</comment>
<oid_index>.1.3.6.1.4.1.2021.13.15.1.1.1</oid_index>
<index_order>diskIODevice:diskIOIndex</index_order>
<index_order_type>numeric</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>
<fields>
<diskIOIndex>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.2021.13.15.1.1.1</oid>
</diskIOIndex>
<diskIODevice>
<name>Device</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.2021.13.15.1.1.2</oid>
</diskIODevice>
<diskIONRead>
<name>BytesRead</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2021.13.15.1.1.3</oid>
</diskIONRead>
<diskIONWritten>
<name>BytesWritten</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2021.13.15.1.1.4</oid>
</diskIONWritten>
<diskIOReads>
<name>DeviceReads</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2021.13.15.1.1.5</oid>
</diskIOReads>
<diskIOWrites>
<name>DeviceWrites</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2021.13.15.1.1.6</oid>
</diskIOWrites>
<diskIOLA1>
<name>DiskIO-LoadAvg1min</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2021.13.15.1.1.9</oid>
</diskIOLA1>
<diskIOLA5>
<name>DiskIO-LoadAvg5min</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2021.13.15.1.1.10</oid>
</diskIOLA5>
<diskIOLA15>
<name>DiskIO-LoadAvg15min</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2021.13.15.1.1.11</oid>
</diskIOLA15>
</fields>
</query>
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please have a look at http://docs.cacti.net/templates for a different disk_io template that may not have such a problem.
Reinhard
me4sun
Posts: 2
Joined: Fri Sep 07, 2007 12:33 pm

Post by me4sun »

When I import this, I get dependancy unmet errors, what I am missing ?

_______________________________

acti has imported the following items:

CDEF
[success] Make Stack Negative [update]

GPRINT Preset
[success] Normal [update]

Data Input Method
[success] Get SNMP Data (Indexed) [update]

Data Template
[success] Host MIB - Disk IO Bytes [update]
[success] Host MIB - Disk IO Transactions [update]

Graph Template
[success] Host MIB - Disk IO - Bytes per Second [update]
[success] Host MIB - Disk IO - Transactions per Second [update]
+ Found Dependency: (Data Template Item) disk_read_trans
+ Found Dependency: (GPRINT Preset) Normal
+ Unmet Dependency: (Data Template Item)
+ Found Dependency: (CDEF) Make Stack Negative
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)

Data Query
[success] SNMP - Get Disk IO [update]
+ Found Dependency: (Data Input Method) Get SNMP Data (Indexed)
+ Found Dependency: (Graph Template) Host MIB - Disk IO - Bytes per Second
+ Found Dependency: (Data Template) Host MIB - Disk IO Bytes
+ Found Dependency: (Data Template Item) disk_bytes_read
+ Found Dependency: (Data Template Item) disk_bytes_written
+ Found Dependency: (Graph Template) Host MIB - Disk IO - Transactions per Second
+ Found Dependency: (Data Template) Host MIB - Disk IO Transactions
+ Found Dependency: (Data Template Item) disk_read_trans
+ Unmet Dependency: (Data Template Item)
______________________________________________
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Which version of cacti are you using?
Reinhard
me4sun
Posts: 2
Joined: Fri Sep 07, 2007 12:33 pm

Post by me4sun »

I am using cacti-0.8.7d. I had upgraded it from cacti-0.8.6j
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Unfortunately, I have to admit that the import will break even if export was done without errors. First investigation shows, that it is not a quick fix for me. So I will mark the template as broken for the moment. Due to a vacation, this will not be fixed before end of next week.
Reinhard
jnojr
Cacti User
Posts: 65
Joined: Tue Jul 15, 2008 11:16 am
Location: San Diego, CA
Contact:

Post by jnojr »

gandalf wrote:Please have a look at http://docs.cacti.net/templates for a different disk_io template that may not have such a problem.
Reinhard
You mean, http://docs.cacti.net/usertemplate:data:host_mib:diskio which says: "template is broken due to export error "?
jnojr
Cacti User
Posts: 65
Joined: Tue Jul 15, 2008 11:16 am
Location: San Diego, CA
Contact:

Post by jnojr »

Can anyone tell me how to make any Disk I/O graphs work?
User avatar
psyber
Cacti User
Posts: 84
Joined: Tue Aug 02, 2005 7:18 pm

Post by psyber »

I managed to download and fix the broken version so it works on my install, I could export it but I dont have anything near a standard cacti install so I fear the export may possibly cause others issues. Basically what I did was download the files (using a previous version of the page) put the script where it belonged, and imported the broken bit.

The things I had to fix were:
The Data Sources under Console -> Data Queries -> (Edit [SNMP - Get Disk IO]) -> Associated Graph Templates
(transactions/writes was munged)

And in the graph template I had to re-associate the writes datasource with the appropriate graph items.

I think that was it.
jnojr
Cacti User
Posts: 65
Joined: Tue Jul 15, 2008 11:16 am
Location: San Diego, CA
Contact:

Post by jnojr »

Could someone send me a link to this template, since the link above doesn't link to the broken one?
User avatar
psyber
Cacti User
Posts: 84
Joined: Tue Aug 02, 2005 7:18 pm

Post by psyber »

jiguopeng
Posts: 2
Joined: Sun May 10, 2009 11:06 am

I am install normal, but the graph is black, ths

Post by jiguopeng »

it's seems everything is normal , but the graph can't display .[/url]
Attachments
a.JPG
a.JPG (146.37 KiB) Viewed 35100 times
jnojr
Cacti User
Posts: 65
Joined: Tue Jul 15, 2008 11:16 am
Location: San Diego, CA
Contact:

Post by jnojr »

It works perfectly for me. That probably isn't much consolation for you, but the template and data source do function.
sirhopcount
Posts: 5
Joined: Tue Mar 25, 2008 5:56 am

Post by sirhopcount »

Hi,

I am also trying to use the template but I keep getting an error when I try to import the template.

I am using the old revision:
But when I try to import the template I get the following error:
Error: XML: Hash version does not exist.
I am using version 0.8.7b of cacti. I tried to download the latest version of the template but the site stills says that its broken ( 0.8.7d template is broken due to export error ) but It has not been updated after 2009-04-27.

Did anyone succeed in the installation ? Is there a update version somewhere else ?

Regards,

Hopcount
bigturk
Posts: 37
Joined: Wed Sep 02, 2009 4:45 pm

not graphing or gathering stats

Post by bigturk »

i have imported the *.xml's and moved the net-snmp_devio.xml into the right location. i was able to link the data queries to graphs and associate data queries with a system. but status are 0items, 0Rows.
I see the graphs listed under Graph management. under create graphs i have data query but i only have a drop down menu "select a graph.
I get a graph for Bytes Read/Written but no graphs for Load Avg or Reads/Writes.
Cacti is installed on Win2003 0.8.7d
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests