I've put our prtg user in the 'Organisation Management' group. I've put in the fully qualified domain name (FQDN). Server has the hub transport role. Powershell 32/64bit Execution Policy: unrestricted

Error I receive when trying to add sensor Error Message An unknown error occured. The Sensor did not return an errormessage. (code: PE127) Sensor Type Exchange Database (Powershell)


Article Comments

Hello,

thank you very much for your kB-Post. Which exact version of PRTG are you running? And which version of Exchange is targeted? Also, are the target Exchange Server and the PRTG host (or Remote Probe host) within the same domain?

best regards.


Jul, 2014 - Permalink

Exchange 2010 PRTG Version 14.2.10.2256 Yes, they are in the same domain.


Jul, 2014 - Permalink

Please run the sensor from command line

"C:\Program Files (x86)\PRTG Network Monitor\Sensor System\ExchangeSensorPS.exe" -server="<fqdn of the server>" -item=metadatabase -user="<username like ‘domain\user’>" -password="<password>"

It should return something like this:

<?xml version='1.0' encoding='UTF-8' ?>
<prtg>
  <result>
    <name>Test DB</name>
    <id>76b84d1b-75ad-4101-b8e6-bd03417fab4b</id>
  </result>
  <result>
    <name>Test DB 2</name>
    <id>9b70eb11-6e7a-4bd6-9853-f370d8356a37</id>
  </result>
  <text>
    OK
  </text>
</prtg>

if that works try

"C:\Program Files (x86)\PRTG Network Monitor\Sensor System\ExchangeSensorPS.exe" -server="<fqdn of the server>" -item=mailboxdatabase -object=<database-id from the previous scan, 

e. g. 9b70eb11-6e7a-4bd6-9853-f370d8356a37 for db Test DB 2> -user="<username like ‘domain\user’>" -password="<password>"

should return something like

<?xml version='1.0' encoding='UTF-8' ?>
<prtg>
  <result>
    <unit>BytesFile</unit>
    <value>671088640</value>
    <channel>Database Size</channel>
  </result>
  <result>
    <value>1</value>
    <unit>Custom</unit>
    <customUnit>Bool</customUnit>
    <channel>Is Valid</channel>
  </result>
  <result>
    <value>1</value>
    <unit>Custom</unit>
    <customUnit>Bool</customUnit>
    <channel>Mounted</channel>
  </result>
  <result>
    <channel>Execution Time</channel>
    <unit>TimeSeconds</unit>
    <SpeedTime>Second</SpeedTime>
    <float>1</float>
    <ShowChart>0</ShowChart>
    <ShowTable>0</ShowTable>
    <Value>1.1</Value>
  </result>
  <text>
    OK
  </text>
</prtg>

what do you get?


Jul, 2014 - Permalink

I take it I'm suppose to run this from the prtg server.

From the command line I ran this: "C:\Program Files (x86)\PRTG Network Monitor\Sensor System\ExchangeSensorPS.exe" -server="<fqdn of the server>" -item=metadatabase -user="<username like ‘domain\user’>" -password="<password>"

but I got the error: *To run this application, you first must install one of the following versions of the .NET Framework: v4.0.30319*


Jul, 2014 - Permalink

Please try and install this version of .Net and let us know what the results are.


Aug, 2014 - Permalink

Got .NET install and this is what it returned:

<?xml version='1.0' encoding='UTF-8' ?> <prtg> <text> OK </text> </prtg>


Aug, 2014 - Permalink

Now that the commands are working properly, have you tried re-creating the sensor?


Aug, 2014 - Permalink

I forget to mention it did NOT return something like this:

    <name>Test DB</name>
    <id>76b84d1b-75ad-4101-b8e6-bd03417fab4b</id>

Aug, 2014 - Permalink

Would it be possible to post here the full input and output of the command that you ran?


Aug, 2014 - Permalink

"C:\Program Files (x86)\PRTG Network Monitor\Sensor System\ExchangeSensorPS.exe" -server="<fqdn of the server>" -item=metadatabase -user="<username like ‘domain\user’>" password="<password>"

-item=metadatabase needs to be -item=metadatabases with an "S"


Aug, 2014 - Permalink

after that last command was fixed I was able to pull all the information you had previously requested.


Aug, 2014 - Permalink

Now that you were able to get the information, were you able to run both commands? If so, what were the results?


Aug, 2014 - Permalink

Yes, both commands returned similar output just like yours.


Sep, 2014 - Permalink

If you create the sensor now with the same settings used in the command line that you used, are you able to get the correct results?


Sep, 2014 - Permalink

.net 4.0 was not installed on the probe the sensor was going on everything is working now, thanks


Sep, 2014 - Permalink