|
|
| Would you or your company pay someone to create more graph templates? |
| Yes |
|
16% |
[ 14 ] |
| No |
|
33% |
[ 28 ] |
| Maybe |
|
27% |
[ 23 ] |
| You suck for even asking |
|
22% |
[ 19 ] |
|
| Total Votes : 84 |
|
| Author |
Message |
scubabri
Joined: 13 Jul 2006 Posts: 32
|
Posted: Fri Jul 14, 2006 12:38 pm Post subject: |
|
|
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?
|
|
| Back to top |
|
 |
scubabri
Joined: 13 Jul 2006 Posts: 32
|
Posted: Fri Jul 14, 2006 1:30 pm Post subject: |
|
|
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
|
|
| Back to top |
|
 |
kees
Joined: 17 Jul 2006 Posts: 1
|
Posted: Fri Sep 01, 2006 4:53 pm Post subject: Re: ucd/net snmp Device (Disk) I/O templates - Updated - v2 |
|
|
| 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!
|
|
| Back to top |
|
 |
phayes
Joined: 06 Sep 2006 Posts: 1 Location: France
|
Posted: Thu Oct 05, 2006 11:42 am Post subject: Data Query does not import in cacti 0.8.6h |
|
|
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 |
|
| Back to top |
|
 |
sylvan
Joined: 05 Oct 2006 Posts: 1
|
Posted: Thu Oct 05, 2006 11:58 pm Post subject: Re: Data Query does not import in cacti 0.8.6h |
|
|
| 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)
|
|
| Back to top |
|
 |
phayes
Joined: 06 Sep 2006 Posts: 1 Location: France
|
Posted: Fri Oct 06, 2006 2:54 am Post subject: Re: Data Query does not import in cacti 0.8.6h |
|
|
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?
|
|
| Back to top |
|
 |
clshrock
Joined: 16 Nov 2006 Posts: 1
|
Posted: Thu Nov 16, 2006 2:22 am Post subject: Empty SNMP query can be caused by old version of net-snmp |
|
|
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
|
|
| Back to top |
|
 |
cspenpen
Joined: 05 Dec 2006 Posts: 12
|
Posted: Thu Dec 07, 2006 10:09 pm Post subject: |
|
|
my cacti server use centos3
detect server use RH4 ES and net-snmp-5.4
now my Data Query Debug Information
| Quote: |
+ 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
| Quote: | 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!
|
|
| Back to top |
|
 |
raindrift
Joined: 12 Jan 2007 Posts: 1
|
|
| Back to top |
|
 |
eald
Joined: 15 Jan 2007 Posts: 1 Location: Monterrey, NL, Mex
|
Posted: Mon Jan 15, 2007 11:22 am Post subject: Re: ucd/net snmp Device (Disk) I/O templates - Updated - v2 |
|
|
| 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
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12275 Location: Muenster, Germany
|
Posted: Sat Feb 03, 2007 12:36 pm Post subject: |
|
|
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
| Description: |
|
 Download |
| Filename: |
diskio.tgz |
| Filesize: |
4.83 KB |
| Downloaded: |
1487 Time(s) |
|
|
| Back to top |
|
 |
mr.Scamp
Joined: 27 Dec 2006 Posts: 6
|
Posted: Sun Feb 04, 2007 5:57 pm Post subject: |
|
|
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?
| Description: |
|
| Filesize: |
40.34 KB |
| Viewed: |
8081 Time(s) |

|
|
|
| Back to top |
|
 |
pirx Cacti User
Joined: 10 Feb 2004 Posts: 165 Location: Sindelfingen, Germany
|
Posted: Sat Feb 10, 2007 6:53 am Post subject: |
|
|
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?
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12275 Location: Muenster, Germany
|
Posted: Sat Feb 10, 2007 4:05 pm Post subject: |
|
|
| 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
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12275 Location: Muenster, Germany
|
Posted: Sat Feb 10, 2007 4:05 pm Post subject: |
|
|
| pirx wrote: | ...
I guess this is net-snmp problem? | I suppose so. Please post to the net-snmp-users mailing list
Reinhard
|
|
| Back to top |
|
 |
|