Monitoring Microsoft Clusters

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: Monitoring Microsoft Clusters

Post by rkennedy »

Did you restart your NSClient after making the change?

Can you post your NSClient config for us to take a look at?
Former Nagios Employee
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Monitoring Microsoft Clusters

Post 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
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Monitoring Microsoft Clusters

Post 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?
Former Nagios Employee
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Monitoring Microsoft Clusters

Post by ssax »

Please try the attached nsclient.ini and restart the service.
nsclient.ini
Thank you
You do not have the required permissions to view the files attached to this post.
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Monitoring Microsoft Clusters

Post 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)
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Monitoring Microsoft Clusters

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Monitoring Microsoft Clusters

Post 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?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Monitoring Microsoft Clusters

Post 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.
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Monitoring Microsoft Clusters

Post by dlukinski »

Thank you clarifications

I think we could close this thread

/Dimitri
bsivavani
Posts: 339
Joined: Tue Oct 06, 2015 9:17 am

Re: Monitoring Microsoft Clusters

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