![]() |
![]() |
Subject: | Using WinPerf data source to monitor disk IO in Zenoss 4.2.4 |
Author: | [Not Specified] |
Posted: | 2014-05-07 13:58 |
I am trying to use the WinPerf data source in Zenoss 4.2.4 to monitor disk IO metrics.
I created a template and added a new data source. When I test against a device, it does not work.
When I use "\PhysicalDisk(0 C:)\Disk Reads/sec" as the perf counter, I get:
INFO:zen.CollectorCmdBase:Collected value for \PhysicalDisk(0 C:)\Disk Reads/sec: 0.0
INFO:zen.collector.tasks:No value collected for \PhysicalDisk(0 C:)\Disk Reads/sec from device comm1
I also tried these values for Perf Counter:
\PhysicalDisk(0 *)\Disk Reads/sec
\PhysicalDisk(0 *)\*
\PhysicalDisk(0 C:)\*
None of them work. Am I missing something There is very little documentation about how to use the WinPerf data source.
Thanks,
Tas
Subject: | zenwinperf"\PhysicalDisk(0 C:)\Disk Reads/sec" |
Author: | [Not Specified] |
Posted: | 2014-05-07 14:20 |
To debug and troubleshoot you can run zenwinperf from the CLI as the zenoss user!
I couldn't get the WMI metric you provided to work against my dev server, but the following did:
zenwinperf run -d '172.16.100.1' --testCounter '\PhysicalDisk(_Total)\Disk Reads/sec'
Zenoss doesn't care what the queries/metrics are, perhaps there is a special format for the one you wanted. It's also possible to try from a windows to windows server first to see if they're not working there as well.
Hydruid
Subject: | I forgot to mention that once |
Author: | [Not Specified] |
Posted: | 2014-05-07 14:34 |
I forgot to mention that once you're done testing, you'll want to 'zenwinperf restart' since the daemon will not be running!
Hydruid
Subject: | Hello Hydruid, thanks for the |
Author: | [Not Specified] |
Posted: | 2014-05-07 16:03 |
Hello Hydruid, thanks for the quick reply!
Using '\PhysicalDisk(_Total)\Disk Reads/sec' as you suggested works. However, I need to get the perf data for individual disks (0, 1, 2...) instead of total. I can't seem to get that to work.
Using powershell/perfmon, specifying an instance like '\PhysicalDisk(0 *)\Disk Reads/sec' works. But it does not work in Zenoss :(
Subject: | I'll investigate, it should |
Author: | [Not Specified] |
Posted: | 2014-05-08 09:13 |
I'll investigate, it should work!
Hydruid
Subject: | Bug |
Author: | [Not Specified] |
Posted: | 2014-05-08 12:07 |
I haven't been able to get it to work in Zenoss either, even when using the new Windows ZenPack that uses WinRM. In PS it works all day....
Time for you to create a bug! http://jira.zenoss.com
Hydruid
Subject: | Thanks, I'll do that. |
Author: | [Not Specified] |
Posted: | 2014-05-08 12:59 |
Thanks, I'll do that.
Subject: | Try with new Microsoft Windows ZenPack 2.1.0 |
Author: | [Not Specified] |
Posted: | 2014-07-02 15:44 |
Wiki for new Windows ZenPack that uses winrm/winrs: http://wiki.zenoss.org/ZenPack:Microsoft_Windows
Check https://jira.zenoss.com/browse/ZEN-11568 for detailed pictures
Steps to create custom Windows Perfmon datasource:
1. Select Windows Server already being monitored from /Server/Microsoft/Windows class
2. Create datasource with any name of type "Windows Perfmon" in a template binded to this /Server/Microsoft/Windows class
3. Open the newly created datasource and put "\physicaldisk(0 c\disk reads/sec" in Windows Perfmon Counter property. Make sure datasource is enabled and has valid cycle time
4. Create a datapoint with any name in the newly created datasource (this creates the rrd file in zenoss)
5. This datapoint can be used for creating a graph if needed
< |
Previous script delete locations |
Next Ignoring specific events |
> |