Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
NagiosMonitoring_Exchange-queue.ps1
1.0
2014-08-07
- Nagios 4.x
GPL
21903
File | Description |
---|---|
NagiosMonitoring_Exchange-queue.ps1 | NagiosMonitoring_Exchange-queue.ps1 |
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
This script will execute the "Get-queue" command and look for how much e-mail are in the queue of the CAS Server.
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
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)
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.
"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.