ucd/net snmp Device (Disk) I/O templates - Updated - v3.1
Moderators: Developers, Moderators
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>
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>
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Please have a look at http://docs.cacti.net/templates for a different disk_io template that may not have such a problem.
Reinhard
Reinhard
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)
______________________________________________
_______________________________
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)
______________________________________________
You mean, http://docs.cacti.net/usertemplate:data:host_mib:diskio which says: "template is broken due to export error "?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
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.
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.
I am install normal, but the graph is black, ths
it's seems everything is normal , but the graph can't display .[/url]
- Attachments
-
- a.JPG (146.37 KiB) Viewed 35100 times
-
- Posts: 5
- Joined: Tue Mar 25, 2008 5:56 am
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:
Did anyone succeed in the installation ? Is there a update version somewhere else ?
Regards,
Hopcount
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:
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.Error: XML: Hash version does not exist.
Did anyone succeed in the installation ? Is there a update version somewhere else ?
Regards,
Hopcount
not graphing or gathering stats
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
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
Who is online
Users browsing this forum: No registered users and 7 guests