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

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

Moderators: Moderators, Developers

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

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

#31 Post by ajeskey » Thu Aug 18, 2005 1:27 pm

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

#32 Post by Rodre » Thu Aug 18, 2005 1:36 pm

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

#33 Post by ajeskey » Thu Aug 18, 2005 1:37 pm

Worked like a champ

Thanks!
- Aaron Jeskey

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

#34 Post by Rodre » Thu Aug 18, 2005 1:53 pm

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: 149
Joined: Sat Jul 30, 2005 2:15 pm

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

#35 Post by paulbeard206 » Fri Aug 19, 2005 4:24 pm

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

#36 Post by Rodre » Fri Aug 26, 2005 4:48 pm

Paul,

Did you ever get this going?

~Rodre

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

#37 Post by ichoudhury » Thu Sep 01, 2005 1:58 am

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

#38 Post by Rodre » Thu Sep 01, 2005 11:09 am

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
Image1.JPG
Console -&gt; Data Queries -&gt; (Edit)
Image1.JPG (71.36 KiB) Viewed 35481 times

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

#39 Post by Rodre » Thu Sep 01, 2005 11:15 am

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
Image4.JPG
ucd/net - Device I/O - Reads/Writes
Image4.JPG (95.39 KiB) Viewed 35480 times
Image3.JPG
ucd/net - Device I/O - Load Averages
Image3.JPG (94.98 KiB) Viewed 35480 times
Image2.JPG
ucd/net - Device I/O - Bytes Read/Written
Image2.JPG (101.2 KiB) Viewed 35480 times

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

#40 Post by ichoudhury » Fri Sep 02, 2005 9:29 am

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

#41 Post by Rodre » Fri Sep 02, 2005 11:22 am

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

#42 Post by ichoudhury » Tue Sep 06, 2005 8:05 am

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

#43 Post by Rodre » Tue Sep 06, 2005 12:00 pm

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

#44 Post by Rodre » Tue Sep 06, 2005 12:44 pm

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

#45 Post by ichoudhury » Tue Sep 06, 2005 1:05 pm

: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