Error Argument exchange-serverhealth

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Error Argument exchange-serverhealth

Post by tgriep »

I found this link that may help out in the error that you are getting.
http://petermorrissey.blogspot.com/2013 ... shell.html
If you add the like to the script, it should load the Exchange server commands in the powershell script and hopefully the script will function.
If not, you may have to contact the Author of the plugin for more details.
Be sure to check out our Knowledgebase for helpful articles and solutions!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Error Argument exchange-serverhealth

Post by rkennedy »

In addition to what @tgriep mentioned, it may be because of the user that is running the checks. You might need to modify the plugin to run as a different user. See this link - https://social.technet.microsoft.com/Fo ... gesvradmin
[Resolved] Turns out I was using my regular account to log into the other two servers (that account is part of Domain Admins and has admin and management permissions for the 2010 Exchange installation) , NOT the account I created for the 2013 install. I compared the security group membership of both accounts and mine was not a member of the Server Management group. I added my account to that group, waited for replication and was able to run the Get-ServerHealth command successfully.
Former Nagios Employee
Locked