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 »

I'll leave this thread open for now then, please respond to it once we've finished working through NRPE and we will proceed at that point.
Former Nagios Employee
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Monitoring Microsoft Clusters

Post by dlukinski »

rkennedy wrote:I'll leave this thread open for now then, please respond to it once we've finished working through NRPE and we will proceed at that point.
Hello again

Your Script-based cluster check started to work now (I used newer client)
What is the best practice for configuring services to be monitored? (Resources like DISK, CPU, RAM and windows services)?

Thank you
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Monitoring Microsoft Clusters

Post by hsmith »

dlukinski wrote:What is the best practice for configuring services to be monitored? (Resources like DISK, CPU, RAM and windows services)?
It is all pretty situational. Have you tried using the Windows Server Configuration Wizard? It can set up a lot of this for you with minimal complexity.
Former Nagios Employee.
me.
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Monitoring Microsoft Clusters

Post by dlukinski »

hsmith wrote:
dlukinski wrote:What is the best practice for configuring services to be monitored? (Resources like DISK, CPU, RAM and windows services)?
It is all pretty situational. Have you tried using the Windows Server Configuration Wizard? It can set up a lot of this for you with minimal complexity.
I rushed to conclusions a bit :-)

Script checks are clearly green and OK, however Status information produced is always the same: "I (0.3.9.328 2011-08-16) seem to be doing fine..."
- no matter if CLRES or CLNODE is used
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Monitoring Microsoft Clusters

Post by rkennedy »

What is the check_command being used for that? Can you provide a screenshot?
Former Nagios Employee
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Monitoring Microsoft Clusters

Post by dlukinski »

rkennedy wrote:What is the check_command being used for that? Can you provide a screenshot?
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Monitoring Microsoft Clusters

Post by lmiltchev »

This is a 3rd party plugin, and I am not familiar with it, but according to the usage, you need to pass only one argument:
VBScript to check MSCS ressources via NRPE (NSClient++ with NRPE Listener)
##########################################################################

Usage:
+++++

For use with NSClient++ please add the following line to your NSC.INI [NRPE Handlers]:

check_mscs=cscript.exe //T:30 //NoLogo scripts\check_mscs.vbs $ARG1$

and copy "check_mscs.vbs" into "scripts\" folder at each node. Refer to NSClient++ Documentation for using remote checks via NRPE.

###command definition###

define command {
command_name check_mscs
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -t 30 -c check_mscs -a $ARG1$
}

###service definition###

define service{
use generic-service
host_name MSCSSVC01
service_description MSCS Ressources
process_perf_data 0
check_command check_mscs!"RES Disk R:,Disk S:"
}

Please remember to point this check to the corresponding clustered ressource (type "network name" & "ip address") - not to a single node. (Of course you can use other methods, i.e. check_cluster)

What it does:
+++++++++++++

The plugin will accept the following parameters:

check_mscs.vbs RES [ressource list]
check_mscs.vbs NODE [node list]

...
You are passing two args. Can you try modifying your command according to the documentation (use one arg), run your check from the command line and show the output?
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 »

lmiltchev wrote:This is a 3rd party plugin, and I am not familiar with it, but according to the usage, you need to pass only one argument:
VBScript to check MSCS ressources via NRPE (NSClient++ with NRPE Listener)
##########################################################################

Usage:
+++++

For use with NSClient++ please add the following line to your NSC.INI [NRPE Handlers]:

check_mscs=cscript.exe //T:30 //NoLogo scripts\check_mscs.vbs $ARG1$

and copy "check_mscs.vbs" into "scripts\" folder at each node. Refer to NSClient++ Documentation for using remote checks via NRPE.

###command definition###

define command {
command_name check_mscs
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -t 30 -c check_mscs -a $ARG1$
}

###service definition###

define service{
use generic-service
host_name MSCSSVC01
service_description MSCS Ressources
process_perf_data 0
check_command check_mscs!"RES Disk R:,Disk S:"
}

Please remember to point this check to the corresponding clustered ressource (type "network name" & "ip address") - not to a single node. (Of course you can use other methods, i.e. check_cluster)

What it does:
+++++++++++++

The plugin will accept the following parameters:

check_mscs.vbs RES [ressource list]
check_mscs.vbs NODE [node list]

...
You are passing two args. Can you try modifying your command according to the documentation (use one arg), run your check from the command line and show the output?
Thank you, Looks like I misunderstood the entire concept.
So I create multiple commands per resource checked?
Could you please give one example of command + resource (CPU?) + service configured?

- anything I try returns this: Could not construct return packet in NRPE handler check client side (nsclient.log) logs...
or that: (No output on stdout) stderr: execvp(check_mscs!, ...) failed. errno is 2: No such file or directory
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Monitoring Microsoft Clusters

Post by hsmith »

Can you post your nsc.ini/nsclient.ini here for us to review?
Former Nagios Employee.
me.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Monitoring Microsoft Clusters

Post by ssax »

What I would do is go to Configure > Configuration Wizards > Windows Server monitoring wizard and setup the default checks for each node for the generic stuff like CPU/MEM/Users/etc because you'll want to monitor that on all the nodes anyways, then you can add the cluster specific checks with this (or other plugins).
Locked