Monitoring Exchange 2016
-
Kxfrancois
- Posts: 48
- Joined: Mon Nov 19, 2018 9:38 am
Monitoring Exchange 2016
I keep getting CRITICAL - Socket timeout for all my exchange tests. do I need something installed on the exchange server for these checks to work?
-
Kxfrancois
- Posts: 48
- Joined: Mon Nov 19, 2018 9:38 am
Re: Monitoring Exchange 2016
The NSClient is installed but when I go to Display the NSClient++ online with ui(SSL)
https://localhost:8443/ - I get the page can't be displayed.
https://localhost:8443/ - I get the page can't be displayed.
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Monitoring Exchange 2016
Hello, @Kxfrancois. Please show me the command you're running from the Nagios server.
And from the windows server please upload the nsclient.ini and nsclient.log files.
And from the windows server please upload the nsclient.ini and nsclient.log files.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
Kxfrancois
- Posts: 48
- Joined: Mon Nov 19, 2018 9:38 am
Re: Monitoring Exchange 2016
From Nagios Server:
$USER1$/check_nt -H $HOSTADDRESS$ -s "$ARG1$" -p 12489 -v $ARG2$ $ARG3$ $ARG4$
"$ARG1$" = password
$ARG2$ = COUNTER
$ARG3$ = -l "\\SMTP Server(_Total)\\Messages Pending Routing" -w 15 -c 50
$USER1$/check_nt -H $HOSTADDRESS$ -s "$ARG1$" -p 12489 -v $ARG2$ $ARG3$ $ARG4$
"$ARG1$" = password
$ARG2$ = COUNTER
$ARG3$ = -l "\\SMTP Server(_Total)\\Messages Pending Routing" -w 15 -c 50
You do not have the required permissions to view the files attached to this post.
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Monitoring Exchange 2016
@Kxfrancois, What version of the NSClient is this? Please replace you nsclient.ini file with the ini file I attached, and then restart the nsclient from the windows services menu.
Also, counters used in the Exchange 2016 server may not be compatible with the NSClient.
https://support.nagios.com/kb/category.php?id=186
Also, counters used in the Exchange 2016 server may not be compatible with the NSClient.
Consider using these checks instead:Failed to query performance counters
https://support.nagios.com/kb/category.php?id=186
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
Kxfrancois
- Posts: 48
- Joined: Mon Nov 19, 2018 9:38 am
Re: Monitoring Exchange 2016
i get this error message when running the check: -l "\\SMTP Server(_Total)\\Messages Pending Routing" -w 15 -c 50
NSClient - ERROR: No performance data from command: check_pdh
Version 0.5.0062
NSClient - ERROR: No performance data from command: check_pdh
Version 0.5.0062
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Monitoring Exchange 2016
@Kxfrancois, This indicates that your Exchange server doesn't support performance counters used by the NSClient. Checks that are not using system counters are working fine, right?
You might be able to find alternative plugins on the Nagios Exchange that you can use with the NSClient instead of using the performance counters. https://exchange.nagios.org/
https://exchange.nagios.org/index.php?o ... nge%202016
You might be able to find alternative plugins on the Nagios Exchange that you can use with the NSClient instead of using the performance counters. https://exchange.nagios.org/
https://exchange.nagios.org/index.php?o ... nge%202016
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
Kxfrancois
- Posts: 48
- Joined: Mon Nov 19, 2018 9:38 am
Re: Monitoring Exchange 2016
Yes, all checks that are not using counters is working. How do I add the plugin to the nsclient for checking. I downloaded NagiosMonitoring_Exchange2016QueueHealth_V2.2.ps1
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Monitoring Exchange 2016
@Kxfrancois, You'd put the script in the NSClient scripts folder:
Also, I highly recommend running the script within a Windows PowerShell console first to make sure it's working without errors and showing the right output.
Then open the nsclient.ini filem find the external scripts section and add the following:C:\Program Files\NSClient++\scripts\
[/settings/external scripts/scripts]
Then restart the nsclient service on the windows computer and from the Nagios server run the following command:check_mailqueue=cmd /c echo scripts\NagiosMonitoring_Exchange2016QueueHealth_V2.2.ps1; exit $LastExitCode | powershell.exe -command -
*where 192.168.3.145 is the IP address of the Exchange server/usr/local/nagios/libexec/check_nrpe -H 192.168.3.145 -c check_mailqueue
Also, I highly recommend running the script within a Windows PowerShell console first to make sure it's working without errors and showing the right output.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
Kxfrancois
- Posts: 48
- Joined: Mon Nov 19, 2018 9:38 am
Re: Monitoring Exchange 2016
That worked for checking the mailqueue. There was a check I had to do this: -l "\\SMTP Server(_Total)\\Remote Queue Length" -w 15 -c 30
How do I find the right command to check this using nrpe? When can I find a list of commands that could be used for nrpe?
Thanks,
Kerwin
How do I find the right command to check this using nrpe? When can I find a list of commands that could be used for nrpe?
Thanks,
Kerwin