Home Directory

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

mdiorio

Reviews(1)
Exchange 2013 Hub Transport Queues Check (inc. performance data)
The script works great when using it on the host, but when I tried executing it using check_nrpe, I received the following error:

Add-PSSnapin : No snap-ins have been registered for Windows PowerShell version 2.

When running PowerShell scripts on Server 2008 R2 x64, the default example will run a 32bit powershell console, not the 64bit. sysnative is a virtual directory recognized by 32bit applications to launch 64bit commands. The following in the proper nsc.ini command to get this to work:

check_exchange_queue=cmd /c echo c:NagiosExchangeQueueHealth.ps1 | C:WindowssysnativeWindowsPowerShellv1.0PowerShell.exe -Command -