district09 / check_ms_win_disk_load Goto Github PK
View Code? Open in Web Editor NEW:four_leaf_clover: Check MS Windows Disk Load :four_leaf_clover:
Home Page: https://outsideit.net/monitoring-windows-disk-load/
:four_leaf_clover: Check MS Windows Disk Load :four_leaf_clover:
Home Page: https://outsideit.net/monitoring-windows-disk-load/
After popping this in the scripts folder, it says this error.
How do you fix it?
Hi,
Not sure this is the right place to add this.
I have mountpoints so when I try and test this, it works with -dl C but not with my mount points
./check_nrpe -H xxx.xxx.xxx.xxx -p 5666 -t 60 -c check_ms_win_disk_load -a '-dl "R:\DATA1" -ms 5'
Exception processing request: Request command contained illegal metachars!
Any ideas?
The current performance data units of measurement are not compliant with the monitoring-plugin API performance data section specified under https://www.monitoring-plugins.org/doc/guidelines.html#AEN201 .
This can create problems with monitoring systems that strictly implement this specification (such as icinga2) since they then ignore the 'malformed' performance data results.
Possibly a parameter to enforce strict monitoring-plugin API compliance would be a solution?
Hello
icinga[2] does not recognize all UOMs in perfdata. See http://docs.icinga.org/latest/en/perfdata.html
changing to
$DiskStruct.ReturnString += "'Read_Latency'=$($DiskStruct.AvgDiskSecReadValue)ms " $DiskStruct.ReturnString += "'Write_Latency'=$($DiskStruct.AvgDiskSecWriteValue)ms " $DiskStruct.ReturnString += "'Read_Queue'=$($DiskStruct.AvgDiskReadQueueValue) " $DiskStruct.ReturnString += "'Write_Queue'=$($DiskStruct.AvgDiskWriteQueueValue) " $DiskStruct.ReturnString += "'Number_of_Reads'=$($DiskStruct.DiskReadsSecValue) " $DiskStruct.ReturnString += "'Number_of_Writes'=$($DiskStruct.DiskWritesSecValue) " $DiskStruct.ReturnString += "'Read_Rate'=$($DiskStruct.DiskReadBytesSecValue)MB " $DiskStruct.ReturnString += "'Write_Rate'=$($DiskStruct.DiskWriteBytesSecValue)MB "
solved my problem.
I don´t know if the script is intended to work with icinga. I just want to mention.
Thanks for your work!
Andreas
Good afternoon,
We are now running some later versions of PowerShell and would like to run this script - would it please be possible to update the script to be able to run on a later PowerShell version? (e.g PowerShell 7.xx)
As Nagios now outputs this as a status on newer Windows hosts:
Many thanks
Hello,
It would be nice to be able to use the virtual disk "_Total" in order to get stats of I/O on the whole system.
Regards.
Hi,
I think that is not a good idea:
$DiskStruct.AvgDiskReadQueueValue = '{0:N5}' -f ($AvgObjDiskReadQueueValues.average)
etc.
befor:
Read/s = 2205.06046082681
after:
Read/s = 2,205.06046
because:
(Get-Culture).NumberFormat.CurrencyGroupSeparator
,
it might be better:
$DiskStruct.AvgDiskReadQueueValue = [math]::Round($AvgObjDiskReadQueueValues.average, 5)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.