What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

Unknown Error - Exchange Database (Powershell)

Votes:

0

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)

exchange-2010 exchange-powershell powershell

Created on Jun 27, 2014 5:40:47 PM



Best Answer

Accepted Answer

Votes:

0

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

Created on Sep 3, 2014 1:41:32 PM



15 Replies

Votes:

0

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.

Created on Jul 2, 2014 12:21:22 PM by  Torsten Lindner [Paessler Support]



Votes:

0

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

Created on Jul 2, 2014 1:12:15 PM



Votes:

0

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?

Created on Jul 3, 2014 2:13:53 PM by  Torsten Lindner [Paessler Support]



Votes:

0

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*

Created on Jul 30, 2014 10:27:15 PM



Votes:

0

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

Created on Aug 1, 2014 12:08:10 PM by  Greg Campion [Paessler Support]



Votes:

0

Got .NET install and this is what it returned:

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

Created on Aug 1, 2014 6:45:24 PM



Votes:

0

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

Created on Aug 4, 2014 9:41:16 AM by  Greg Campion [Paessler Support]



Votes:

0

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

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

Created on Aug 5, 2014 7:52:04 PM



Votes:

0

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

Created on Aug 6, 2014 2:01:26 PM by  Greg Campion [Paessler Support]



Votes:

0

"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"

Created on Aug 28, 2014 9:56:07 PM



Votes:

0

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

Created on Aug 28, 2014 9:59:37 PM



Votes:

0

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

Created on Aug 29, 2014 12:15:18 PM by  Greg Campion [Paessler Support]



Votes:

0

Yes, both commands returned similar output just like yours.

Created on Sep 2, 2014 10:21:20 PM



Votes:

0

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?

Created on Sep 3, 2014 8:49:42 AM by  Greg Campion [Paessler Support]



Accepted Answer

Votes:

0

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

Created on Sep 3, 2014 1:41:32 PM




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.