Monitoring Windows physical disk performance

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

Moderators: Developers, Moderators

Petunya
Posts: 17
Joined: Wed Jan 09, 2008 4:06 am
Contact:

Monitoring Windows physical disk performance

Post by Petunya »

This template monitor's physical disk perfomance of Windows 2000 or Windows 2003 from Windows installed cacti box.

Contents:
1) Script
2) DataQuery definition file
3) Template file includes dataquery, graph template and datatemplate
Attachments
WMI - Physical drives.rar
Script + xml files. Version 3
(28.46 KiB) Downloaded 304 times
screenshot
screenshot
Percent Busy Time.JPG (31.57 KiB) Viewed 7122 times
Last edited by Petunya on Wed Jan 23, 2008 3:59 am, edited 2 times in total.
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

I can't get this to work - is the data template missing ?

Thanks
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
ejensen
Cacti User
Posts: 55
Joined: Mon Jul 12, 2004 11:39 am

Post by ejensen »

Same here. When trying to add a graph I am prompted with three input boxes:

Custom Data [Template: WMI -Physical disk Data Template]
Index Type
Index Value
Output Type ID

What needs to go into these values?
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Looks like the data template is missing - there is no evidence of it on my system.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
Petunya
Posts: 17
Joined: Wed Jan 09, 2008 4:06 am
Contact:

Post by Petunya »

Archive updated!
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Sorry, but this still doesn't work - the same set of three values are missing, and even placing the XML file into script_queries does not cure this. Also, the actual query itself is not listed under "Associated Data Queries", nor is is listed in either of the Collection Methods...

I've checked the XML file, and it looks ok - any ideas ?

Thanks
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
ejensen
Cacti User
Posts: 55
Joined: Mon Jul 12, 2004 11:39 am

Post by ejensen »

Same problems as before.

And what is Launch.exe in the archive?
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

ejensen wrote:Same problems as before.

And what is Launch.exe in the archive?
Looks like this is used to delay the start of the script by 15 seconds - shouldn't be required as far as I see...?
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
Petunya
Posts: 17
Joined: Wed Jan 09, 2008 4:06 am
Contact:

Post by Petunya »

Sorry for bad archive :)


Data query + graph template + data template are in attachement :)

I use launch.exe to limit execution time for the script. Sometime wmi scripts needs too much time to work and other poller operations does not have time in 5 minute poller interval.
Attachments
cacti_data_query_wmi_-_get_physical_drive_performance.xml
(10.92 KiB) Downloaded 232 times
ejensen
Cacti User
Posts: 55
Joined: Mon Jul 12, 2004 11:39 am

Post by ejensen »

i imported this additional script and changed the xml file to remove the launch.exe reference. Added the new data query to a device "WMI - Get Physical Drive Performance " and it shows no items and no rows. I ran a verbose query and see the script running, but not showing any return data. I manually run the script and get the expected items returned (e.g. drive labels and such).

Any other suggestions?

BTW... Thanks for sharing! :D
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

I came across the same issue. I'm running Apache (WAMP) under Windows. I had to change the Apache services to the same user account that runs the poller for this to work.

I was able to obtain data, but according to this template, all the disks in my servers are maxxing out at 100% ?????? Another template (that does sort of the same thing) shows the disk % at around 4%.....
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
ejensen
Cacti User
Posts: 55
Joined: Mon Jul 12, 2004 11:39 am

Post by ejensen »

I was able to get this script to work against the localhost, but not remote servers. I have other WMI scripts running against other servers so I dont think it is a permissions issue.
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

For the localhost, this makes sense. However, a local account used for either IIS Worker or Apache services won't be able to pull data on a remote system.

I had the same issue, and this was the fix.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
ejensen
Cacti User
Posts: 55
Joined: Mon Jul 12, 2004 11:39 am

Post by ejensen »

not sure what your fix was? can you share it?

as for the localhost running this script, it runs but no graph is created. When i turn on debug for the graph I see the following error:

Code: Select all

ERROR: unknown option '--alt-autoscale-min'
any suggestions?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

This option is supported at least by latest rrdtool 1.2. Which rrdtool version are you using?
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests