Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sun Jun 16, 2019 2:02 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 169 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 12  Next

Would you or your company pay someone to create more graph templates?
Poll ended at Wed Nov 02, 2005 7:01 pm
Yes 17%  17%  [ 14 ]
No 33%  33%  [ 28 ]
Maybe 27%  27%  [ 23 ]
You suck for even asking 23%  23%  [ 19 ]
Total votes : 84
Author Message
 Post subject:
PostPosted: Fri Jul 14, 2006 12:38 pm 
Offline

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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 14, 2006 1:30 pm 
Offline

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


Top
 Profile  
 
 Post subject: Re: ucd/net snmp Device (Disk) I/O templates - Updated - v2
PostPosted: Fri Sep 01, 2006 4:53 pm 
Offline

Joined: Mon Jul 17, 2006 4:54 pm
Posts: 1
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!


Top
 Profile  
 
 Post subject: Data Query does not import in cacti 0.8.6h
PostPosted: Thu Oct 05, 2006 11:42 am 
Offline

Joined: Wed Sep 06, 2006 10:12 am
Posts: 1
Location: France
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.

Top
 Profile  
 
 Post subject: Re: Data Query does not import in cacti 0.8.6h
PostPosted: Thu Oct 05, 2006 11:58 pm 
Offline

Joined: Thu Oct 05, 2006 11:51 pm
Posts: 1
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)


Top
 Profile  
 
 Post subject: Re: Data Query does not import in cacti 0.8.6h
PostPosted: Fri Oct 06, 2006 2:54 am 
Offline

Joined: Wed Sep 06, 2006 10:12 am
Posts: 1
Location: France
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?


Top
 Profile  
 
 Post subject: Empty SNMP query can be caused by old version of net-snmp
PostPosted: Thu Nov 16, 2006 2:22 am 
Offline

Joined: Thu Nov 16, 2006 1:40 am
Posts: 1
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 :-)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 07, 2006 10:09 pm 
Offline
Cacti User

Joined: Tue Dec 05, 2006 5:10 am
Posts: 67
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!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 12, 2007 7:57 pm 
Offline

Joined: Fri Jan 12, 2007 7:56 pm
Posts: 1
To get diskio support on Linux systems without recompiling net-snmp:

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


Top
 Profile  
 
 Post subject: Re: ucd/net snmp Device (Disk) I/O templates - Updated - v2
PostPosted: Mon Jan 15, 2007 11:22 am 
Offline

Joined: Mon Jan 15, 2007 11:05 am
Posts: 1
Location: Monterrey, NL, Mex
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


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 03, 2007 12:36 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22376
Location: Muenster, Germany
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:
File comment: The Ressources
diskio.tgz [4.83 KiB]
Downloaded 3319 times

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository
Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 04, 2007 5:57 pm 
Offline

Joined: Wed Dec 27, 2006 10:53 am
Posts: 8
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 28837 times ]
Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 10, 2007 6:53 am 
Offline
Cacti User
User avatar

Joined: Tue Feb 10, 2004 10:08 am
Posts: 199
Location: Esslingen, Germany
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?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 10, 2007 4:05 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22376
Location: Muenster, Germany
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

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 10, 2007 4:05 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22376
Location: Muenster, Germany
pirx wrote:
...
I guess this is net-snmp problem?
I suppose so. Please post to the net-snmp-users mailing list
Reinhard

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 169 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 12  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group