Software

NagiosMonitoring_Exchange-queue.ps1

Description:

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

Compatible With

  • Nagios 4.x

Owner

License

GPL


Project Files
Project Notes
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
Reviews (1) Add a Review
Great - Just a little thing
by hardmod, December 31, 2015

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.



Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
4 (2)
Favorites
2
Views
21,913