Page 4 of 5

Re: Monitoring Microsoft Clusters

Posted: Fri Dec 18, 2015 1:22 pm
by rkennedy
Did you restart your NSClient after making the change?

Can you post your NSClient config for us to take a look at?

Re: Monitoring Microsoft Clusters

Posted: Fri Dec 18, 2015 1:26 pm
by dlukinski
rkennedy wrote:Did you restart your NSClient after making the change?

Can you post your NSClient config for us to take a look at?
Attached the file

Re: Monitoring Microsoft Clusters

Posted: Fri Dec 18, 2015 3:04 pm
by rkennedy
To verify -

Looks good with your config, did you restart the NSClient service in windows after making that change?

Did you place the check_microsoft_cluster.vbs in the scripts folder?

Re: Monitoring Microsoft Clusters

Posted: Fri Dec 18, 2015 3:08 pm
by ssax
Please try the attached nsclient.ini and restart the service.
nsclient.ini
Thank you

Re: Monitoring Microsoft Clusters

Posted: Mon Dec 21, 2015 1:30 pm
by dlukinski
ssax wrote:Please try the attached nsclient.ini and restart the service.
nsclient.ini
Thank you
It now returns "Microsoft (R) Windows Script Host Version 5.8" in all cases (NODEs or RESources)

Re: Monitoring Microsoft Clusters

Posted: Mon Dec 21, 2015 2:28 pm
by tgriep
Edit your nsclient.ini file and change this line from

Code: Select all

check_mscluster=cscript.exe scripts\check_microsoft_cluster.vbs $ARG1$
to

Code: Select all

check_mscluster=cscript.exe //T:30 //NoLogo scripts\check_microsoft_cluster.vbs $ARG1$
Save the file and restart nsclient.ini and check to see if that resolves the issue.

Re: Monitoring Microsoft Clusters

Posted: Tue Dec 22, 2015 12:35 pm
by dlukinski
tgriep wrote:Edit your nsclient.ini file and change this line from

Code: Select all

check_mscluster=cscript.exe scripts\check_microsoft_cluster.vbs $ARG1$
to

Code: Select all

check_mscluster=cscript.exe //T:30 //NoLogo scripts\check_microsoft_cluster.vbs $ARG1$
Save the file and restart nsclient.ini and check to see if that resolves the issue.

Script now responds better (Thank you!):
Cluster Resources - Disks Ok 16h 59m 22s 1/5 2015-12-22 12:28:50 OK - Clusterresource
Cluster Resources - Nodes Ok 1d 1h 37m 53s 1/5 2015-12-22 12:26:09 OK - Clusternodes

Except that for resources here is what I have configured:
ARG1 - CLRES
ARG2 - Disk C:,DISK D:,DISK E:,DISK G:,DISK M:,DISK T:,DISK Q:
----------------------------------------------------------------------------
Now could we go back to the original topic on Monitoring Microsoft clusters with NAGIOS XI

1. I could use you stock cluster_check for:

1.1 Cluster Health (nodes)
1.2 Cluster Services health (windows services running) - doe snot work correctly at a moment producing OK where one of two node has service stopped

2. I could use this VBS script to monitor multiple disks on active/passive clusters
- Hope there is better way, please comment

3. I could configure CPU/RAM/PAGE and some services per-node (where they are named per-node)

would this be THE WAY to Monitor Microsoft 2008/2012 clusters with Nagios XI or is there better way?

Re: Monitoring Microsoft Clusters

Posted: Tue Dec 22, 2015 4:03 pm
by ssax
Just add $ARG2$ on the end of there:

Code: Select all

check_mscluster=cscript.exe //T:30 //NoLogo scripts\check_microsoft_cluster.vbs '$ARG1$' '$ARG2$'
---

1/1.1/1.2

Make sure they the hostnames and servicenames are identical, they are case sensitive. You would then adjust the warning and critical parameters to meet your needs.

You can read more about the check_cluster plugin here as well:

https://assets.nagios.com/downloads/nag ... sters.html

2.

I haven't seen any other cluster aware disk checks for MS. You could write a powershell script that should be able to get the data you would like but it will take some coding.

3.

That is pretty much the only way that you can monitor Microsoft clusters outside of writing your own all-encompassing plugin.

Those are for per-node ones that are going to be unique per node. You could always point the shared checks at the virtual IP shared by the nodes.

Re: Monitoring Microsoft Clusters

Posted: Tue Dec 29, 2015 5:36 pm
by dlukinski
Thank you clarifications

I think we could close this thread

/Dimitri

Re: Monitoring Microsoft Clusters

Posted: Wed Dec 30, 2015 2:41 am
by bsivavani
Hi Support,

I have one requirement plan to post in this thread as in my current environment we have Microsoft Hyper-V server version 2012 R2.

We would like to monitor Latency on C: drive is actually SAN connected C drive (not a physical drive), so please help us on how to monitor SAN connected C: drive.