Build precise queries to find exactly what you need
Press ESC to close
Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More
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 –