Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


ucd/net snmp Device (Disk) I/O templates - Updated - v3
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates

Would you or your company pay someone to create more graph templates?
Yes
16%
 16%  [ 14 ]
No
33%
 33%  [ 28 ]
Maybe
27%
 27%  [ 23 ]
You suck for even asking
22%
 22%  [ 19 ]
Total Votes : 84

Author Message
Rodre



Joined: 22 Jul 2005
Posts: 29

PostPosted: Tue Sep 06, 2005 1:37 pm    Post subject: Reply with quote

I updated my orginal post to reflect this incompatibilty. Hopefully that will stop others from wasting their time. I am currently working on some Windows stuff and will post it here when it is completed. I expect it will probably be at least a few weeks before I get around to it again.

~Rodre
Back to top
redouane.doumer



Joined: 09 Sep 2005
Posts: 1

PostPosted: Fri Sep 09, 2005 8:56 am    Post subject: Device I/O for Windows Reply with quote

Any progress on that yet?

Thanks

Redouane
Back to top
tenkawa



Joined: 24 Jun 2005
Posts: 2

PostPosted: Thu Oct 27, 2005 8:14 am    Post subject: Get Device I/O Reply with quote

Hi rodre,

first of all i would like to thanks for your work.

But i am unable to get any graphs. I have done everything :

->copy the xml into the correct path of cacti
->import all the xml files
-> created the graphs
-> but it stiils polls nothing

the snmpwalk command shows me all the UCD-DISK IO.

the error i have when i turn on debug mode is :
ERROR: opening '/home/sources/Cacti_mrtg/extract/cacti-0.8.6g/rra/mandrake_localhost_5min_loadavg_63.rrd': No such file or directory

thx in advance for your help.
Back to top
tman
Cacti User


Joined: 14 Oct 2004
Posts: 89

PostPosted: Fri Nov 11, 2005 11:20 am    Post subject: Reply with quote

I wanted to implement this on our Linux servers here as well, but I found (in my investigations) that the diskIO function is actually only natively supported in FreeBSD (and variants).

Distributions from the like of Redhat do not support diskIO, and indeed in the private MIB for net-snmp it is listed under 'experimental'. I've never seen one Linux box export these OID's, so gave up after numerous failed attempts to build kernels/net-snmp with these features enabled.
Back to top
roslb



Joined: 21 Nov 2005
Posts: 2

PostPosted: Mon Nov 21, 2005 10:26 pm    Post subject: help me! Reply with quote

Error: XML parse error.

net-snmp_devIO-BytesRW_graphTMPL.xml
net-snmp_devIO-LoadAVG_graphTMPL.xml
net-snmp_devIO-ReadsWrites_graphTMPL.xml

system Linux 9 rrdtools1.2.9 cacti0.86g-patched

very thanks
Back to top
xyleme



Joined: 15 Dec 2005
Posts: 1

PostPosted: Tue Jan 10, 2006 5:53 am    Post subject: can monitor my disk Reply with quote

Hi I've got the following error when I've tried to add a Get Disk I/O to a device

Notice: Undefined index: oid_index in /srv/www/htdocs/cacti/lib/data_query.php on line 156

Notice: Undefined index: oid_index in /srv/www/htdocs/cacti/lib/data_query.php on line 159

Warning: Variable passed to each() is not an array or object in /srv/www/htdocs/cacti/lib/data_query.php on line 513

Warning: Cannot modify header information - headers already sent by (output started at /srv/www/htdocs/cacti/lib/data_query.php:156) in /srv/www/htdocs/cacti/host.php on line 110

thanks a lot
Back to top
sgolby



Joined: 10 Jan 2006
Posts: 3

PostPosted: Wed Jan 11, 2006 12:10 pm    Post subject: Reply with quote

More as a confirmation than anything this is what I'm getting from my Linux Red Hat box on which I just installed a brand new net-snmp-5.3 from source.

# snmpwalk -Os -c <community> -v 2c utl1 .1.3.6.1.4.1.2021.13.15
.1.3.6.1.4.1.2021.13.15 = No Such Object available on this agent at this OID

# snmptable -v 2c -c <community> utl1 diskIOTable
diskIOTable: Unknown Object Identifier (Sub-id not found: iso -> diskIOTable)

Getting the same type of thing when making the Gentoo boxes running net-snmp 5.2.1 look at themselves
# snmpwalk -c <community> -v 2c localhost .1.3.6.1.4.1.2021.13.15.1.1.1
UCD-SNMP-MIB::ucdExperimental.15.1.1.1 = No Such Object available on this agent at this OID


Which explains why the templates didn't work even though they imported fine.

I'm going to look into the options for loading the MIB, will post if I come up with a solution.
Back to top
paulbeard206
Cacti User


Joined: 30 Jul 2005
Posts: 106

PostPosted: Sat Jan 21, 2006 10:11 pm    Post subject: has anyone gotten this stuff to work? Reply with quote

I am interested in getting this going but I can't tell if there's anything here I can use as a basis or if I should just start from scratch.

I tried a walkthrough on this forum in converting script results to graphs but it didn't seem to help me much on getting SNMP queries to graphs.

snmpget -c<myob> -v2c p1nfs1 1.3.6.1.4.1.2021.13.15.1.1.6.17 1.3.6.1.4.1.2021.13.15.1.1.5.17
UCD-DISKIO-MIB::diskIOWrites.17 = Counter32: 335062
UCD-DISKIO-MIB::diskIOReads.17 = Counter32: 26718

Is there a more basic primer on this? Perhaps one that doesn't rely on an existing xml file would be more useful.
Back to top
paulbeard206
Cacti User


Joined: 30 Jul 2005
Posts: 106

PostPosted: Sun Jan 22, 2006 12:18 am    Post subject: query values not working: missing an idex Reply with quote

sgolby wrote:

Getting the same type of thing when making the Gentoo boxes running net-snmp 5.2.1 look at themselves
# snmpwalk -c <community> -v 2c localhost .1.3.6.1.4.1.2021.13.15.1.1.1
UCD-SNMP-MIB::ucdExperimental.15.1.1.1 = No Such Object available on this agent at this OID


You're short a value on your queries: you need an index as your last digit.
Code:

snmpwalk -c <***> -v 2c localhost .1.3.6.1.4.1.2021.13.15.1.1.1.X <--|


Code:

snmpget -c *** -v2c localhost 1.3.6.1.4.1.2021.13.15.1.1.6.1 1.3.6.1.4.1.2021.13.15.1.1.5.1
UCD-DISKIO-MIB::diskIOWrites.1 = Counter32: 7170368
UCD-DISKIO-MIB::diskIOReads.1 = Counter32: 357314
Back to top
dust2k
Cacti User


Joined: 04 Dec 2005
Posts: 85

PostPosted: Tue Feb 07, 2006 10:25 am    Post subject: Reply with quote

sgolby wrote:
More as a confirmation than anything this is what I'm getting from my Linux Red Hat box on which I just installed a brand new net-snmp-5.3 from source.

# snmpwalk -Os -c <community> -v 2c utl1 .1.3.6.1.4.1.2021.13.15
.1.3.6.1.4.1.2021.13.15 = No Such Object available on this agent at this OID


I would rather think that's your security issue, check your ACL to enable your snmp agent to answer the query.

I just intalled and runs beautifully, but one problem is if I pick any device for one graph template, then the device is disabled from list, so u can not use other graph template to show that device any more, any good solution on that ?
Back to top
spoier



Joined: 05 May 2006
Posts: 2

PostPosted: Fri May 05, 2006 5:25 pm    Post subject: Reply with quote

Rodre wrote:
Is there an error when you import the Data-Query_Templ.xml file?


There is no such file in the zip.....

Archive: Cacti_Net-SNMP_DevIO_v2.zip
Length Date Time Name
-------- ---- ---- ----
2568 08-18-05 14:56 net-snmp_devio.xml
17365 08-18-05 14:58 net-snmp_devIO-BytesRW_graphTMPL.xml
18498 08-18-05 15:00 net-snmp_devIO-ReadsWrites_graphTMPL.xml
17088 08-18-05 15:01 net-snmp_devIO-LoadAVG_graphTMPL.xml
Back to top
spoier



Joined: 05 May 2006
Posts: 2

PostPosted: Sat May 06, 2006 1:14 am    Post subject: Reply with quote

Also, when I add a graph for a device such as read/write bytes on ar0, then ar0 is no greyed out and I can't also add a graph for reads/writes or load averages....?

cacti-0.8.6h

Thanks
Back to top
foobie



Joined: 27 Jun 2006
Posts: 3

PostPosted: Tue Jun 27, 2006 12:31 pm    Post subject: Reply with quote

Just a heads up to others reading this thread - the UCD-DISKIO-MIB isn't supported on many linux distros, including RHEL3, RHEL4 and (consequently) CentOS3 and CentOS4.

Code:

+ Running data query [11].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/share/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 '/usr/share/cacti/resource/snmp_queries/net-snmp_devio.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/net-snmp_devio.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/net-snmp_devio.xml'



or on the command line
Code:

snmpwalk -v 3 -u v3_user -l authNoPriv -a MD5 -A v3_pass -On host .1.3.6.1.4.1.2021.13
.1.3.6.1.4.1.2021.13.14.1.0 = INTEGER: 1


See https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=141647 for more info
Back to top
scubabri



Joined: 13 Jul 2006
Posts: 32

PostPosted: Fri Jul 14, 2006 10:01 am    Post subject: importing net-snmp_devio.xml Reply with quote

I was able to import all of the other xml files, with the response that "cacti has imported the following items"

there is no response for the net-snmp_devio.xml import, did I miss something?

sb
Back to top
scubabri



Joined: 13 Jul 2006
Posts: 32

PostPosted: Fri Jul 14, 2006 10:06 am    Post subject: Re: importing net-snmp_devio.xml Reply with quote

scubabri wrote:
I was able to import all of the other xml files, with the response that "cacti has imported the following items"

there is no response for the net-snmp_devio.xml import, did I miss something?

sb


I need to learn to read instructions better, must be my eyesight as I get older :-/
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Page 4 of 7

 



Powered by phpBB © 2001, 2005 phpBB Group