Solved

Monitor Microsoft SQL cluster disk and services with Nagios?

Posted on 2011-02-17
3
2,420 Views
Last Modified: 2013-11-13
I setup a Windows/SQL 2008 cluster and have Nagios all setup. The problem is that the disks and services on the passive node show critical or unknown because they are not there or stopped. I am looking for a way to monitor the disks and services from a cluster level so I don't have anything showing down.

I found the following URL but I don't see anything about services. I also tried setting it up and was unsuccessful.

http://exchange.nagios.org/directory/Plugins/Uncategorized/Operating-Systems/Windows-NRPE/check_mscs-2Evbs/details
0
Comment
Question by:ThorinO
  • 2
3 Comments
 
LVL 77

Accepted Solution

by:
arnold earned 500 total points
ID: 34919517
You should configure the nagios to probe the sqlcluster IP only and depending on whether you have three instances of the nagios agent.
One runs on the each node
And one that is part of the cluster resource binds to the cluster IP
This way you can monitor each node individually and then you check the clustered instance for the cluster related resources.
I'd think you want to know when the passive node is down.
0
 
LVL 10

Author Comment

by:ThorinO
ID: 34920344
OK that makes sense, I created another host with the cluster resources and removed them from the nodes but am still monitoring other things on the nodes.

Another question you might know, it would be cool to have Nagios check to see what the active node is. So like some check on the cluster to check for the hostname, and if the hostname does not equal node 1 (primary) then it goes critical. I figure since I want it on node 1 most of the time that it would be nice to know if it fails over for some reason.
0
 
LVL 77

Expert Comment

by:arnold
ID: 34920834
You would run a check on the hostname=yourpreferred node.
Within the nagios script you have on the Windows server a check for name that will ouput the %COMPUTERNAME%

Alternatively, You could configure the cluster such that node 1 is primary which will result in failback when the primary node comes back.  
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Union 2 queries to a cte (temp table perhaps) 9 36
Challenging SQL Update 5 41
linux SFTP 8 42
Linux mount of Windows Shared Now Fails 8 24
A short article about problems I had with the new location API and permissions in Marshmallow
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question