Yes, you should be able to do that. Just modify the variables for $warninglevel as needed.
Code: Select all
$warninglevel = 15 # The percent to send warning at
Code: Select all
$warninglevel = 15 # The percent to send warning at
Code: Select all
[/settings/external scripts/wrapped scripts]
check_csv = check_csv.ps1
check_ms_win_disk_load = cmd /c echo scripts/check_ms_win_disk_load.ps1 $ARG1$; exit($LastExitCode) | powershell.exe -command –
Code: Select all
PS C:\Program Files\NSClient++\scripts> .\check_ms_win_disk_load.ps1
OK: Drive C: Avg of 2 samples: {Rate (Read: 0.00000MB/s)(Write: 0.09570MB/s)} {Avg Nr of (Reads: 0.00000r/s)(Writes: 9
.99948w/s)} {Latency (Read: 0.00000ms)(Write: 0.17750ms)} {Queue Length (Read: 0.00000ql)(Write: 0.00355ql)} | 'Read_L
atency'=0.00000ms 'Write_Latency'=0.17750ms 'Read_Queue'=0.00000ql 'Write_Queue'=0.00355ql 'Number_of_Reads'=0.00000r/
s 'Number_of_Writes'=9.99948w/s 'Read_Rate'=0.00000MB/s 'Write_Rate'=0.09570MB/s
PS C:\Program Files\NSClient++\scripts>
Code: Select all
./check_nrpe -H 10.163.224.67 -p 5666 -t 120 -c check_ms_win_disk_load -a '-dl C -ms 5 -rqw 20 -rqc 50'
I'm confused - Isn't that what the script you found does already?jyoti22 wrote:for latency monitoring I found "check_ms_win_disk_load.ps1" script