|
|
| Author |
Message |
Petunya
Joined: 09 Jan 2008 Posts: 14
|
Posted: Fri Jan 18, 2008 10:13 am Post subject: Monitoring Windows physical disk performance |
|
|
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
| Description: |
|
| Filesize: |
31.57 KB |
| Viewed: |
3319 Time(s) |

|
| Description: |
| Script + xml files. Version 3 |
|
 Download |
| Filename: |
WMI - Physical drives.rar |
| Filesize: |
28.46 KB |
| Downloaded: |
120 Time(s) |
Last edited by Petunya on Wed Jan 23, 2008 3:59 am; edited 2 times in total |
|
| Back to top |
|
 |
mcutting Cacti Pro User
Joined: 16 Oct 2006 Posts: 974
|
Posted: Mon Jan 21, 2008 12:26 pm Post subject: |
|
|
I can't get this to work - is the data template missing ?
Thanks
|
|
| Back to top |
|
 |
ejensen Cacti User
Joined: 12 Jul 2004 Posts: 55
|
Posted: Mon Jan 21, 2008 3:17 pm Post subject: |
|
|
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?
|
|
| Back to top |
|
 |
mcutting Cacti Pro User
Joined: 16 Oct 2006 Posts: 974
|
Posted: Mon Jan 21, 2008 4:00 pm Post subject: |
|
|
| Looks like the data template is missing - there is no evidence of it on my system.
|
|
| Back to top |
|
 |
Petunya
Joined: 09 Jan 2008 Posts: 14
|
Posted: Tue Jan 22, 2008 1:55 am Post subject: |
|
|
| Archive updated!
|
|
| Back to top |
|
 |
mcutting Cacti Pro User
Joined: 16 Oct 2006 Posts: 974
|
Posted: Tue Jan 22, 2008 4:56 am Post subject: |
|
|
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
|
|
| Back to top |
|
 |
ejensen Cacti User
Joined: 12 Jul 2004 Posts: 55
|
Posted: Tue Jan 22, 2008 9:15 am Post subject: |
|
|
Same problems as before.
And what is Launch.exe in the archive?
|
|
| Back to top |
|
 |
mcutting Cacti Pro User
Joined: 16 Oct 2006 Posts: 974
|
Posted: Tue Jan 22, 2008 9:42 am Post subject: |
|
|
| 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...?
|
|
| Back to top |
|
 |
Petunya
Joined: 09 Jan 2008 Posts: 14
|
|
| Back to top |
|
 |
ejensen Cacti User
Joined: 12 Jul 2004 Posts: 55
|
Posted: Tue Jan 22, 2008 12:21 pm Post subject: |
|
|
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!
|
|
| Back to top |
|
 |
mcutting Cacti Pro User
Joined: 16 Oct 2006 Posts: 974
|
Posted: Tue Jan 22, 2008 12:23 pm Post subject: |
|
|
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%.....
|
|
| Back to top |
|
 |
ejensen Cacti User
Joined: 12 Jul 2004 Posts: 55
|
Posted: Tue Jan 22, 2008 12:51 pm Post subject: |
|
|
| 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.
|
|
| Back to top |
|
 |
mcutting Cacti Pro User
Joined: 16 Oct 2006 Posts: 974
|
Posted: Tue Jan 22, 2008 1:30 pm Post subject: |
|
|
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.
|
|
| Back to top |
|
 |
ejensen Cacti User
Joined: 12 Jul 2004 Posts: 55
|
Posted: Tue Jan 22, 2008 2:21 pm Post subject: |
|
|
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: | | ERROR: unknown option '--alt-autoscale-min' |
any suggestions?
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12206 Location: Muenster, Germany
|
Posted: Tue Jan 22, 2008 3:57 pm Post subject: |
|
|
This option is supported at least by latest rrdtool 1.2. Which rrdtool version are you using?
Reinhard
|
|
| Back to top |
|
 |
|