ucd/net snmp Device (Disk) I/O templates - Updated - v3.1
Moderators: Developers, Moderators
-
- Posts: 1
- Joined: Fri Sep 09, 2005 8:26 am
Device I/O for Windows
Any progress on that yet?
Thanks
Redouane
Thanks
Redouane
Get Device I/O
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.
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.
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.
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.
can monitor my disk
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
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
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.
# 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.
-
- Cacti User
- Posts: 150
- Joined: Sat Jul 30, 2005 2:15 pm
has anyone gotten this stuff to work?
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.
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.
-
- Cacti User
- Posts: 150
- Joined: Sat Jul 30, 2005 2:15 pm
query values not working: missing an idex
You're short a value on your queries: you need an index as your last digit.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
Code: Select all
snmpwalk -c <***> -v 2c localhost .1.3.6.1.4.1.2021.13.15.1.1.1.X <--|
Code: Select all
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
I would rather think that's your security issue, check your ACL to enable your snmp agent to answer the query.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 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 ?
There is no such file in the zip.....Rodre wrote:Is there an error when you import the Data-Query_Templ.xml file?
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
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.
or on the command line
See https://bugzilla.redhat.com/bugzilla/sh ... ?id=141647 for more info
Code: Select all
+ 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'
Code: Select all
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
importing net-snmp_devio.xml
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
there is no response for the net-snmp_devio.xml import, did I miss something?
sb
Re: importing net-snmp_devio.xml
I need to learn to read instructions better, must be my eyesight as I get older :-/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
Who is online
Users browsing this forum: No registered users and 5 guests