Disk IO (Host MIB) - help pls

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

User avatar
tonypanta
Posts: 6
Joined: Wed Apr 22, 2009 9:04 pm

Disk IO (Host MIB) - help pls

Post by tonypanta »

Hi,

I've been trying for some time to get the "Disk IO (Host MIB)" templates (http://docs.cacti.net/usertemplate:grap ... mib:diskio) to work but had no success. I'm new to the board but have some cacti experience, i.e., went through the online docs, installed/configured cacti, have the default graphs working, etc. etc. ... I also did the SNMP Walk Trough (http://docs.cacti.net/manual:087:3a_adv ... alkthrough) which was quite useful for the on-hands stuff but not enough to help me out in figuring out what's going wrong.

So to get to the point here's what's going on:
- I'm using Cacti Version 0.8.7d
- I installed the templates as per gandalf's instructions from where I got the templates in the first place, all goes well
- I try creating a graph for mysrv by selecting "Host MIB - Disk IO - Bytes per Second" and click on "Create" at the bottom of the page
- next I get the "Create Graph from 'Host MIB - Disk IO - Bytes per Second'" window and there I have following fields:

Name: |host_description| - Disk IO Bytes
Output Type ID: <blank>
Index Value: <blank>
Index Type: <blank>

Can some one please explain what values to put in Output Type ID, Index Value, and Index Type? I've seen this questions asked a bunch of times on the forum but no clear answer. Can someone please try to solve this mystery?

Thanks

TonyP
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

you must create the graph through the 'create graphs for this host' link, from within a device in cacti. it will properly fill in those 3 fields.
User avatar
tonypanta
Posts: 6
Joined: Wed Apr 22, 2009 9:04 pm

Disk IO (Host MIB) - help pls

Post by tonypanta »

Yup, that's how I do it, use "Create Graphs for this Host" from the specific device page. But I still get blanks for Output Type ID, Index Value, and Index Type.

Just realized that there is no "Data Query" for this template. So I created one and associated it with the graph template. Should there have been one with the templates I imported?

After creating a "Data Query" and associating it with the "'Host MIB - Disk IO - Bytes per Second'" graph template, the "'Host MIB - Disk IO - Bytes per Second'" graph template no longer appears under the drop down for "Graph Templates" for "Create Graphs for this Host" but I can see the newly crated "Data Query" in the "Add Data Query:" drop down list under the "Associated Data Queries" for a device. If I add it I can then see the newly created data query under "Data Query" for "Create Graphs for this Host". I then select the the particular disk I want to graph for the host but the rrd file is not created by the poller. i.e. I get ERROR: opening '/www/cacti/rra/mysrv_disk_bytes_read_847.rrd': No such file or directory from the graph debug and in the apache log file... of course I waited consecutive polling cycles to make sure the poller takes effect.

This thing is eating me alive... can't drop it.... cause the graphs look awesome in the example.

Any hints/ideas on what's going on?

Thanks for the quick reply,

tonyp
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

IMO, you should get your base cacti installation up and working first. Understand how things work. THEN start to play around with 3rd party templates/scripts and the plugin architecture.

that disk io should've come with templates/scripts -- all thats required.

The device you're trying to get this working on, do other cacti templates work with it?
User avatar
tonypanta
Posts: 6
Joined: Wed Apr 22, 2009 9:04 pm

Disk IO (Host MIB) - help pls

Post by tonypanta »

I've had the base cacti installation up and working for over a year now, with 50 or so devices and using the standard templates that come with it, i.e. graphing mem, cpu, if, etc. Only now I'm getting into the nitty gritty of it now since I have to start monitoring disk I/O activity on some servers.

The problem I'm getting is with importing this particular template. If some one can tell me more about Output Type ID, Index Value, and Index Type, i.e. what they are used for, who/what populates them, how they relate to the MIB portion being queried, how does their data relate to the final graph, etc. I would really appreciate it. The online docs mention them but just by name, no other explanation is given.

If I know this then I can take on things from there.

Thanks.

PS: I got the graphs working, I had to manually create the Data Query and associate it with the Graph Template. Is this the typical process when importing graph templates or should the Data Query be contained within the Graph Template?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

If the export is done on Data Query level, it should be fine. If it is on Graph Template level, it will fail
Reinhard
User avatar
tonypanta
Posts: 6
Joined: Wed Apr 22, 2009 9:04 pm

Disk IO (Host MIB) - help pls

Post by tonypanta »

I have no idea how the export was done. I simply imported it as per http://docs.cacti.net/usertemplate:grap ... mib:diskio so I presume it was gandalf that exported it.

I would really like to know more about Output Type ID, Index Value, and Index Type, i.e. what they are used for, who/what populates them, how they relate to the MIB portion being queried, how does their data relate to the final graph, etc. I would really appreciate it. The online docs mention them but just by name, no other explanation is given. Any pointers would really be appreciated....

Thanks for the quick reply.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Disk IO (Host MIB) - help pls

Post by gandalf »

tonypanta wrote:I have no idea how the export was done. I simply imported it as per http://docs.cacti.net/usertemplate:grap ... mib:diskio so I presume it was gandalf that exported it.

I would really like to know more about Output Type ID, Index Value, and Index Type, i.e. what they are used for, who/what populates them, how they relate to the MIB portion being queried, how does their data relate to the final graph, etc. I would really appreciate it. The online docs mention them but just by name, no other explanation is given. Any pointers would really be appreciated....

Thanks for the quick reply.
My fault. I did export graph templates which is wrong. Now I replaced the stuff by the correct Data Query. Please retry.
Reinhard
fehwalker
Posts: 1
Joined: Wed Jun 03, 2009 9:07 am

Re: Disk IO (Host MIB) - help pls

Post by fehwalker »

Currently the download page does not have a file available, and shows "template is broken due to export error". Will this be fixed soon? I'd like to implement this template. Thanks.
Snake007uk
Cacti User
Posts: 54
Joined: Fri Jun 24, 2005 10:16 am

Post by Snake007uk »

Hi,

I am also using the DiskIO template from cacti templates page, hoever when I go to import the template for diskio.xml it gives me the following error:

Error: XML: Hash version does not exist.

Any ideas?
Snake007uk
Cacti User
Posts: 54
Joined: Fri Jun 24, 2005 10:16 am

Post by Snake007uk »

Fixed the problem, by updating cacti to 8.7e
CanDee
Posts: 11
Joined: Wed Jul 23, 2008 12:47 am

Re: Disk IO (Host MIB) - help pls

Post by CanDee »

hmmm i'm on Version 0.8.7g

disk io bytes works fine...but transactions is not
i got it from http://docs.cacti.net/usertemplate:data:host_mib:diskio

and i did as the description said....but for some reason transactions graphs can't be created like the bytes graphs

any idea please?
Attachments
04.02.png
04.02.png (13.45 KiB) Viewed 5651 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Disk IO (Host MIB) - help pls

Post by gandalf »

Please see 2nd link of my sig to verify, that the target in question does respond to the OID that is requested for transactions.
R.
CanDee
Posts: 11
Joined: Wed Jul 23, 2008 12:47 am

Re: Disk IO (Host MIB) - help pls

Post by CanDee »

gandalf wrote:Please see 2nd link of my sig to verify, that the target in question does respond to the OID that is requested for transactions.
R.
i just didn't see the radio button to switch from bytes to transactions.... my bad
but thanks for reply
CanDee
Posts: 11
Joined: Wed Jul 23, 2008 12:47 am

Re: Disk IO (Host MIB) - help pls

Post by CanDee »

aaah i just added transaction graph succesfully.....
now both (bytes/transactions) are NaN

i just checked for the OIDs cacti is using..

iso.3.6.1.4.1.2021.13.15.1.1.6.21 = No Such Instance currently exists at this OID

damn it
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests