Build precise queries to find exactly what you need
Press ESC to close
Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More
Your review has been submitted and is pending approval.
Test SMTP QUEUE ON EXCHANGE 2010 This script will execute the "Get-queue" command and look for how much e-mail are in the queue of the CAS Server.
Current Version
1.0
Last Release Date
2014-08-07
Owner
roberto
Download URL
https://exchange.nagios.org/wp-content/uploads/project-files/2014/08/NagiosMonitoring_Exchange-queue.ps1
License
GPL
Compatible With
NagiosMonitoring_Exchange-queue.ps1
Test SMTP QUEUE ON EXCHANGE 2010
This script will execute the "Get-queue" command and look for how much e-mail are in the queue of the CAS Server.
To execute from within NSClient++
[/settings/external scripts] allow arguments = true
[/settings/external scripts/wrapped scripts] alias_check_queue = NagiosMonitoring_Exchange-queue.ps1 $ARG1$ $ARG2$ $ARG3$
On the check_nrpe command include the -t 60, since it takes some time to load the Exchange cmdlet's.
Check command on Nagios machine
/usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -t 60 -c alias_check_queue -a $ARG1$ $ARG2$ $ARG3$
Parameters that you have to set for the check
$server is the fqdn of the CAS to check ($ARG1$) $critical is the threshold you think is critical ($ARG2$) $warning is the threshold you think is warning ($ARG3$)
Tested on Nagios Core 4.0.1
Script works great, I just had to change the NSClient++ Config to "alias_check_queue =cmd /c echo C:scriptsNagiosNagiosMonitoring_Exchange-queue.ps1 $ARG1$ $ARG2$ $ARG3$; exit($lastexitcode) | powershell.exe -noprofile -nologo -command -" Otherwise Windows will try to handle it as exe.
You must be logged in to submit a review.
To:
From: