ucd/net snmp Device (Disk) I/O templates - Updated - v3.1

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

Moderators: Developers, Moderators

Post Reply

Would you or your company pay someone to create more graph templates?

Poll ended at Wed Nov 02, 2005 7:01 pm

Yes
14
17%
No
28
33%
Maybe
23
27%
You suck for even asking
19
23%
 
Total votes: 84

ajeskey
Cacti User
Posts: 93
Joined: Mon Mar 28, 2005 4:31 pm
Location: Boston, MA

Post by ajeskey »

I am using a similar setup. I export fine with IE.

When you said you were exporting to the browser and it was IE i figured you were getting cought by the IE "-" trap. But it looks like you have cleaned all of that up.

Just for giggles could you export them as a whole and not by each file. and try exporting them in to the cacti window... who knows what IE is doing to the formatting to f'it up
- Aaron Jeskey
Rodre
Posts: 39
Joined: Fri Jul 22, 2005 7:17 pm

Post by Rodre »

Yes I am aware of the IE "-" formatting. Here is the file all in one, give it a try and let me know what happens. Thanks.


--Download removed - please download from initial post for version control--
Last edited by Rodre on Thu Aug 18, 2005 5:17 pm, edited 1 time in total.
ajeskey
Cacti User
Posts: 93
Joined: Mon Mar 28, 2005 4:31 pm
Location: Boston, MA

Post by ajeskey »

Worked like a champ

Thanks!
- Aaron Jeskey
Rodre
Posts: 39
Joined: Fri Jul 22, 2005 7:17 pm

Post by Rodre »

Funny, I did that before and no luck. I am in the process of splitting out the device reads/writes from the bytes read/written graph and creating a load average graph.

Paul, can you please try and download the above template and see what happens? But before you do that can you delete the graphs from the hosts, and delete all the other templates as well? If this works I will post the others today. Thanks.

~Rodre
paulbeard206
Cacti User
Posts: 150
Joined: Sat Jul 30, 2005 2:15 pm

well, I don't want to say "there's your problem" .

Post by paulbeard206 »

but you're using Internet Exploder, so I could be right.

Try Firefox and see if it makes a difference.
Rodre
Posts: 39
Joined: Fri Jul 22, 2005 7:17 pm

Post by Rodre »

Paul,

Did you ever get this going?

~Rodre
User avatar
ichoudhury
Posts: 46
Joined: Tue May 31, 2005 8:18 am

Post by ichoudhury »

I followed your instruction exactly, but not getting anything...


I think some reason Device Input Method is not coming correctly. I updated by hand and put the path to net-snmp_devio.xml but may not have the Input Fields correctly.

Would you please take a screenshot of that and post it here?
There are those who think fast, and there are others who sleep on a decision. I belong to the third group.
Rodre
Posts: 39
Joined: Fri Jul 22, 2005 7:17 pm

Post by Rodre »

Hi Paul,

The full path in the "XML Path" text box should be "<path_cacti>/resource/snmp_queries/net-snmp_devio.xml" (without the quotes).
Attachments
Console -&amp;gt; Data Queries -&amp;gt; (Edit)
Console -&gt; Data Queries -&gt; (Edit)
Image1.JPG (71.36 KiB) Viewed 38659 times
Rodre
Posts: 39
Joined: Fri Jul 22, 2005 7:17 pm

Post by Rodre »

Graph templates:

ucd/net - Device I/O - Bytes Read/Written
ucd/net - Device I/O - Load Averages
ucd/net - Device I/O - Reads/Writes
Attachments
ucd/net - Device I/O - Reads/Writes
ucd/net - Device I/O - Reads/Writes
Image4.JPG (95.39 KiB) Viewed 38658 times
ucd/net - Device I/O - Load Averages
ucd/net - Device I/O - Load Averages
Image3.JPG (94.98 KiB) Viewed 38658 times
ucd/net - Device I/O - Bytes Read/Written
ucd/net - Device I/O - Bytes Read/Written
Image2.JPG (101.2 KiB) Viewed 38658 times
User avatar
ichoudhury
Posts: 46
Joined: Tue May 31, 2005 8:18 am

Post by ichoudhury »

Thank you 8)

After copying (by hand) what you have posted, this is what I am seeing

Data Query Debug Information

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


Also seeing this error msg during Graph creation
Data Query [ucd/net - Get Device I/O]

This data query returned 0 rows, perhaps there was a problem executing this data query. You can run this data query in debug mode to get more information.
and debug mode shows exactly what you are seeing above. Could my OID is not correct?
There are those who think fast, and there are others who sleep on a decision. I belong to the third group.
Rodre
Posts: 39
Joined: Fri Jul 22, 2005 7:17 pm

Post by Rodre »

What happens if you run from a command shell on the Cacti Host:

Code: Select all

snmpwalk -v 2c host-ip -c community-name.1.3.6.1.4.1.2021.13.15
Replace host-ip with the ip address of the target host or localhost if you are running the command on the target host and replace community-name with the read community of the target host i.e:public

do you see UCD-DISKIO-MIB::diskIO related stuff?

~Rodre
User avatar
ichoudhury
Posts: 46
Joined: Tue May 31, 2005 8:18 am

Post by ichoudhury »

The format you suggested wasn't working for me. It was keep saying I didn't specify the community name. But the following format did take the command but returned not what I hopped to see...

snmpwalk -v 2c -c <community> <IP_Address> 1 .1.3.6.1.4.1.2021.13.15
UCD-SNMP-MIB::ucdExperimental.15 = No more variables left in this MIB View (It i
s past the end of the MIB tree)

I am using the 5.2.1.2 under w32 environment (installed via Windows installer provided by net-snmp.
There are those who think fast, and there are others who sleep on a decision. I belong to the third group.
Rodre
Posts: 39
Joined: Fri Jul 22, 2005 7:17 pm

Post by Rodre »

I only tested these graphs under Linux, and some others have used them with BSD, but I am not sure if it will work under net-snmp/win32. I am currently on IRC and have posed the question to the developers and am waiting a response, which I will post here. In the meantime I was looking at your snmpwalk posted above, and it appears that your OID is incorrect:
"1 .1.3.6.1.4.1.2021.13.15" as apposed to ".1.3.6.1.4.1.2021.13.15" (extra "1" and a space in the beginning). Can you try walking the correct OID, or is this just a typo?

~Rodre
Rodre
Posts: 39
Joined: Fri Jul 22, 2005 7:17 pm

Post by Rodre »

This is the outcome of my conversation with the net-snmp developers:
> Does net-snmp v5.2.1.2 under win32 support the DiskIO OIDs? (.1.3.6.1.4.1.2021.13.15)
<rstory> i don't think so.. windows support is limited...
> any idea how I can find out for sure? I don't have a windows box setup with net-snmp...
<rstory> I see no windows code in diskio.c
> thanks for your help
So it looks like it isn't supported under net-snmp/win32, sorry.

~Rodre[/quote]
User avatar
ichoudhury
Posts: 46
Joined: Tue May 31, 2005 8:18 am

Post by ichoudhury »

:o :( :-? :oops: :cry: :x :evil:

Above should explain how I feel... :-) ..Kidding aside, Thank you very much for investigating and hopefully WMI will come in handy in this regard if snmp doesn't.
There are those who think fast, and there are others who sleep on a decision. I belong to the third group.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest