Build precise queries to find exactly what you need
Press ESC to close
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
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:
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!