Page 1 of 1

cluster shared volumes monitor

Posted: Mon May 16, 2016 7:59 am
by pantos21
Hi All,

I have follow this article here to monitor cluster shared volumes https://exchange.nagios.org/directory/P ... 1462974295
And everyhting worked as expected axcept one thing. So on nagios viewes i can see how mach space each volume has available. and when the precenteage goes more than 90% that i have set the threshold the status change to Warning, but when the percentage goes more than 95 that i have set the critical i can see that it says critical on status information but the status remain yellow and to warning. i searched everywhere but i couldnot find any solution so the status change to red and critical. Does anyone have any idea? Thanks in advanced

regards
pantos

Re: cluster shared volumes monitor

Posted: Mon May 16, 2016 12:00 pm
by hsmith
Can you please post screenshots of the behavior you're witnessing?

Re: cluster shared volumes monitor

Posted: Tue May 17, 2016 12:13 am
by pantos21
Hi thank you for the reply. i have attached the screenshot

regards
pantos

Re: cluster shared volumes monitor

Posted: Tue May 17, 2016 9:47 am
by rkennedy
Can you post the service definition for us to look at?

Re: cluster shared volumes monitor

Posted: Wed May 18, 2016 4:00 am
by pantos21
Hi,
attached is screenshot for service i use, the power shell command you can find on the web site i post on my first post.

regards pantos

Re: cluster shared volumes monitor

Posted: Wed May 18, 2016 4:07 am
by pantos21
Hi,
On the server side in NSC.ini i have added the below line. You may need also. The "check_csv_freespace.ps1" powershell script you can download it from the site in my first post.
check_csv_freespace=cmd /c echo scripts\check_csv_freespace.ps1 -n $ARG1$ -w $ARG2$ -c $ARG3$ | powershell.exe -command -

regards
pantos

Re: cluster shared volumes monitor

Posted: Wed May 18, 2016 4:18 pm
by ssax
Try changing your nsclient.ini definition to:

Code: Select all

check_pstate = cmd /c echo scripts\check_csv_freespace.ps1 -n $ARG1$ -w $ARG2$ -c $ARG3$; exit($lastexitcode) | powershell.exe -command -
Restart the NSClient++ service and try it again.


Thank you

Re: cluster shared volumes monitor

Posted: Thu May 19, 2016 12:53 am
by pantos21
Hi ssax,

You are the man, thank you very much man it worked.
regards
pantos