Page 2 of 3
Re: monitor clustered shared volumes in 2012 R2 using Nagios
Posted: Wed Dec 16, 2015 3:32 pm
by rkennedy
I looked around and couldn't find a plugin for checking the latency of a CSV. I'm sure it's possible though, you can always write your own power shell script, and integrate it with Nagios!
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
Re: monitor clustered shared volumes in 2012 R2 using Nagios
Posted: Wed Dec 16, 2015 5:34 pm
by jyoti22
for latency monitoring I found "check_ms_win_disk_load.ps1" script
I kept it in scripts folder and made below changes in nsclient.ini
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 –
now when I run the command on management server I get below error
[root@auscrpmonprd00 libexec]# ./check_nrpe -H 10.163.224.67 -p 5666 -t 120 -c check_ms_win_disk_load -a '-H localhost'
Failed to execute check_ms_win_disk_load: 87: The parameter is incorrect.
but when I check the script locally then it runs fine
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>
What can be the issue?
Re: monitor clustered shared volumes in 2012 R2 using Nagios
Posted: Wed Dec 16, 2015 5:59 pm
by rkennedy
Maybe
@WillemDH has a comment, but I believe the syntax is wrong.
Can you try with the following?
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'
On the site for the plugin,
https://outsideit.net/check-ms-win-disk-load/ - it also mentions needing to create a custom command for check_ms_win_disk_load to use in Nagios rather than the check_nrpe command. Did you create one?
Re: monitor clustered shared volumes in 2012 R2 using Nagios
Posted: Thu Dec 17, 2015 12:10 pm
by jyoti22
I will try to created new command for check_ms_win_disk_load.
Meanwhile can anyone help me on script for latency monitoring for CSV's. I am not a Unix or scripting person so it would be great if some one has script for it. Thanks.
Re: monitor clustered shared volumes in 2012 R2 using Nagios
Posted: Thu Dec 17, 2015 12:32 pm
by rkennedy
I thought that the check_ms_win_disk_load was for monitoring your CSV? What are you looking to monitor now?
Re: monitor clustered shared volumes in 2012 R2 using Nagios
Posted: Thu Dec 17, 2015 5:00 pm
by jyoti22
I would like to monitor latency of CSV
Re: monitor clustered shared volumes in 2012 R2 using Nagios
Posted: Thu Dec 17, 2015 5:28 pm
by rkennedy
jyoti22 wrote:for latency monitoring I found "check_ms_win_disk_load.ps1" script
I'm confused - Isn't that what the script you found does already?
Re: monitor clustered shared volumes in 2012 R2 using Nagios
Posted: Thu Dec 17, 2015 5:38 pm
by jyoti22
this script does monitor latency of standalone disk. I would like to monitor latency of clustered shared volumes.
Re: monitor clustered shared volumes in 2012 R2 using Nagios
Posted: Fri Dec 18, 2015 11:25 am
by rkennedy
For clarification, which script are you referring to?
The script listed here @
https://support.nagios.com/forum/viewto ... 088#p51332 should monitor all CSV's.
As for writing your own, do you know how to check the latency through powershell on a CSV?
Re: monitor clustered shared volumes in 2012 R2 using Nagios
Posted: Wed Dec 23, 2015 1:55 pm
by jyoti22
i don't see any particular command to check latency for those shared volumes. "C:\ClusterStorage\Volume1" is the path of these volume.
Can it be possible to monitor IO latency of it same like C: drive using check_ms_win_disk_load.ps1?