Exchange 2013 DB mounted and healthy

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

Exchange 2013 DB mounted and healthy

Post by rferebee »

Hello,

Can anyone tell me the correct command I should be using to check that Exchange 2013 DBs are mounted and healthy?

I'm having a heck of a time finding anything via Google.

Thank you.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Exchange 2013 DB mounted and healthy

Post by ssax »

This plugin may work for you:

https://exchange.nagios.org/directory/P ... ue/details

OR this:

https://exchange.nagios.org/directory/P ... 2E/details

OR even this:

https://exchange.nagios.org/directory/P ... th/details

These are meant to be run through NSClient++ or NCPA since they are powershell scripts, do you currently have an agent installed on the system to monitor it?
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

Re: Exchange 2013 DB mounted and healthy

Post by rferebee »

Yes, we have agents installed on all the servers where we need the DBs monitored.

Thank you for your help.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Exchange 2013 DB mounted and healthy

Post by ssax »

Ok, if you need help setting the agent up let us know which agent you're using and attach your agent configuration file.

Thank you
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

Re: Exchange 2013 DB mounted and healthy

Post by rferebee »

Ok, here's where I'm at. We're running CentOS 6 and have had zero success with PowerShell.

Does anyone know of any commands that are in BASH, PERL or PYTHON that could accomplish this same request?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Exchange 2013 DB mounted and healthy

Post by tgriep »

Can you provide some details in the issues you are having with the powershell scripts?
Be sure to check out our Knowledgebase for helpful articles and solutions!
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

Re: Exchange 2013 DB mounted and healthy

Post by rferebee »

According to Microsoft, PowerShell is not supported in CentOS 6 only 7. We've attempted installing PowerShell Core before and could not get it running.

Does anyone know how to get PowerShell working in CentOS 6?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Exchange 2013 DB mounted and healthy

Post by tgriep »

What OS and release version is the the Exchange DB hosted on?
Which Agent is installed on the server?
Be sure to check out our Knowledgebase for helpful articles and solutions!
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

Re: Exchange 2013 DB mounted and healthy

Post by rferebee »

Windows Server 2012 R2 Datacenter
Version 6.3.9600 Build 9600

NS agent version 0.3.9.328
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Exchange 2013 DB mounted and healthy

Post by tgriep »

The Powershell script runs on the Windows system using an external command and not on the Nagios server.

For example if you use the check_exchange.ps1 script, you would copy it to the C:\Program Files\NSClient++\scripts folder.

Then edit the NSC.ini file on the Windows system and add the following line under section:

Code: Select all

[Wrapped Scripts]
check_exchange=check_exchange.ps1 $ARG1$
And add this under this section

Code: Select all

[Script Wrappings]
ps1 = cmd /c echo scripts\%SCRIPT%%ARGS%; exit($lastexitcode) | powershell.exe -ExecutionPolicy Bypass -command -
Save and restart Nsclient++

This will create a command called check_exchange that you would call from the Nagios server using the check_nrpe plugin,

Then for example, to Monitor all database in exchange 2013, you would use this command on the Nagios server.

Code: Select all

./check_nrpe -H Exchange_IP_Address -t 30 -c check_exchange -a '-CheckType DBStatus -ExchangeVer 2013'
If you have any other questions, let us know.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked