Home Directory Plugins Software NagiosMonitoring_Exchange-queue.ps1

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

NagiosMonitoring_Exchange-queue.ps1

Rating
2 votes
Favoured:
2
Current Version
1.0
Last Release Date
2014-08-07
Compatible With
  • Nagios 4.x
Owner
License
GPL
Hits
21672
Files:
FileDescription
NagiosMonitoring_Exchange-queue.ps1NagiosMonitoring_Exchange-queue.ps1
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
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.
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)
byhardmod, December 21, 2015
1 of 1 people found this review helpful
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.