Page 1 of 2
Exchange 2013 DB mounted and healthy
Posted: Mon Oct 22, 2018 12:41 pm
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.
Re: Exchange 2013 DB mounted and healthy
Posted: Mon Oct 22, 2018 2:27 pm
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?
Re: Exchange 2013 DB mounted and healthy
Posted: Mon Oct 22, 2018 3:04 pm
by rferebee
Yes, we have agents installed on all the servers where we need the DBs monitored.
Thank you for your help.
Re: Exchange 2013 DB mounted and healthy
Posted: Mon Oct 22, 2018 3:14 pm
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
Re: Exchange 2013 DB mounted and healthy
Posted: Tue Oct 30, 2018 4:16 pm
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?
Re: Exchange 2013 DB mounted and healthy
Posted: Wed Oct 31, 2018 1:35 pm
by tgriep
Can you provide some details in the issues you are having with the powershell scripts?
Re: Exchange 2013 DB mounted and healthy
Posted: Wed Oct 31, 2018 3:37 pm
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?
Re: Exchange 2013 DB mounted and healthy
Posted: Wed Oct 31, 2018 3:55 pm
by tgriep
What OS and release version is the the Exchange DB hosted on?
Which Agent is installed on the server?
Re: Exchange 2013 DB mounted and healthy
Posted: Wed Oct 31, 2018 5:01 pm
by rferebee
Windows Server 2012 R2 Datacenter
Version 6.3.9600 Build 9600
NS agent version 0.3.9.328
Re: Exchange 2013 DB mounted and healthy
Posted: Thu Nov 01, 2018 9:32 am
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.