exchange 2013 powershell script

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: exchange 2013 powershell script

Post by sreinhardt »

OK, by default the add-pssnapin Microsoft.Exchange.Management.PowerShell should link to the highest version installed, since that seems to be having troubles, let's try importing the 2013 version specifically.

add-pssnapin Microsoft.Exchange.Management.PowerShell.E2013

Also I just wanted to confirm, this is a 64 bit OS and using 64 bit powershell application? The exchange 2013 snapin can be installed on but not loaded on x86 systems, hence why I asked.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
MichielvM
Posts: 160
Joined: Thu Oct 24, 2013 3:48 am

Re: exchange 2013 powershell script

Post by MichielvM »

Update:

I run powershell ise "as administrator"
When prompted for 'identity' I entered the servername
It exits

Code: Select all

OK:  - 0 checks are OK
Does that mean everything is fubar?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: exchange 2013 powershell script

Post by tmcdonald »

sreinhardt wrote:Also I just wanted to confirm, this is a 64 bit OS and using 64 bit powershell application? The exchange 2013 snapin can be installed on but not loaded on x86 systems, hence why I asked.
Looks like it *might* not be able to read any output, so it defaults to 0. It's been a while since this thread was last active, so apologies if my thoughts are not fresh in my head.
Former Nagios employee
MichielvM
Posts: 160
Joined: Thu Oct 24, 2013 3:48 am

Re: exchange 2013 powershell script

Post by MichielvM »

yeah, I know. I had a bunch of other things and a holiday in the meantime..
Are there any plans for an official plugin for exchange2013?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: exchange 2013 powershell script

Post by tmcdonald »

MichielvM wrote:Are there any plans for an official plugin for exchange2013?
I would think not. We actively maintain the standard Nagios plugins but in terms of creating new ones that would need to be discussed.
Former Nagios employee
MichielvM
Posts: 160
Joined: Thu Oct 24, 2013 3:48 am

Re: exchange 2013 powershell script

Post by MichielvM »

I managed to get in toucht with the author of the script.
He provided me with an updated version.

Back to thinkering and testing.
I got it running on the server. That's positive.

points to figure out:
Have NagiosXi run powershell as admin
and edit the command to pass the args
How to auto-run the add-snapin comandlet (servers tend to reboot every now and then)
bug my admins on what they really need to see....
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: exchange 2013 powershell script

Post by sreinhardt »

bug my admins on what they really need to see...
That guy right there :) Glad you got a working script! Let me know if you have other troubles.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked