monitor clustered shared volumes in 2012 R2 using Nagios

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: monitor clustered shared volumes in 2012 R2 using Nagios

Post 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
Former Nagios Employee
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Re: monitor clustered shared volumes in 2012 R2 using Nagios

Post 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?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: monitor clustered shared volumes in 2012 R2 using Nagios

Post 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?
Former Nagios Employee
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Re: monitor clustered shared volumes in 2012 R2 using Nagios

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: monitor clustered shared volumes in 2012 R2 using Nagios

Post by rkennedy »

I thought that the check_ms_win_disk_load was for monitoring your CSV? What are you looking to monitor now?
Former Nagios Employee
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Re: monitor clustered shared volumes in 2012 R2 using Nagios

Post by jyoti22 »

I would like to monitor latency of CSV
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: monitor clustered shared volumes in 2012 R2 using Nagios

Post 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?
Former Nagios Employee
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Re: monitor clustered shared volumes in 2012 R2 using Nagios

Post by jyoti22 »

this script does monitor latency of standalone disk. I would like to monitor latency of clustered shared volumes.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: monitor clustered shared volumes in 2012 R2 using Nagios

Post 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?
Former Nagios Employee
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Re: monitor clustered shared volumes in 2012 R2 using Nagios

Post 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?
Locked