Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Monitoring Windows physical disk performance
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
Petunya



Joined: 09 Jan 2008
Posts: 14

PostPosted: Fri Jan 18, 2008 10:13 am    Post subject: Monitoring Windows physical disk performance Reply with quote

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



Percent Busy Time.JPG
 Description:
screenshot
 Filesize:  31.57 KB
 Viewed:  3314 Time(s)

Percent Busy Time.JPG



WMI - Physical drives.rar
 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

PostPosted: Mon Jan 21, 2008 12:26 pm    Post subject: Reply with quote

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

PostPosted: Mon Jan 21, 2008 3:17 pm    Post subject: Reply with quote

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

PostPosted: Mon Jan 21, 2008 4:00 pm    Post subject: Reply with quote

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

PostPosted: Tue Jan 22, 2008 1:55 am    Post subject: Reply with quote

Archive updated!
Back to top
mcutting
Cacti Pro User


Joined: 16 Oct 2006
Posts: 974

PostPosted: Tue Jan 22, 2008 4:56 am    Post subject: Reply with quote

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

PostPosted: Tue Jan 22, 2008 9:15 am    Post subject: Reply with quote

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

PostPosted: Tue Jan 22, 2008 9:42 am    Post subject: Reply with quote

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

PostPosted: Tue Jan 22, 2008 10:01 am    Post subject: Reply with quote

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.



cacti_data_query_wmi_-_get_physical_drive_performance.xml
 Description:

Download
 Filename:  cacti_data_query_wmi_-_get_physical_drive_performance.xml
 Filesize:  10.92 KB
 Downloaded:  109 Time(s)

Back to top
ejensen
Cacti User


Joined: 12 Jul 2004
Posts: 55

PostPosted: Tue Jan 22, 2008 12:21 pm    Post subject: Reply with quote

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

PostPosted: Tue Jan 22, 2008 12:23 pm    Post subject: Reply with quote

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

PostPosted: Tue Jan 22, 2008 12:51 pm    Post subject: Reply with quote

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

PostPosted: Tue Jan 22, 2008 1:30 pm    Post subject: Reply with quote

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

PostPosted: Tue Jan 22, 2008 2:21 pm    Post subject: Reply with quote

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

PostPosted: Tue Jan 22, 2008 3:57 pm    Post subject: Reply with quote

This option is supported at least by latest rrdtool 1.2. Which rrdtool version are you using?
Reinhard
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group