How to use power shell with nsclient


#1

Hello All!

I’m trying to check my exchange 2010 server.

I have got a script to check queue.

I have just nsclient installed in the Exchange Server.

How can I check this???

I put this command line in my NSC.ini:
check_exchange_queue=cmd /c echo scripts\check_exchange_queue.ps1 | powershell.exe -command -

I restart the Nsclient Service.

So, in the nagios server, how should I call this check?

Thanks.

Diego