New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


Unknown Error - Exchange Database (Powershell)

Votes:

0

Your Vote:

Up

Down

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 by  gamma83 (50) 1 1



Best Answer

Accepted Answer

Votes:

0

Your Vote:

Up

Down

.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 by  gamma83 (50) 1 1



15 Replies

Votes:

0

Your Vote:

Up

Down

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

Your Vote:

Up

Down

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

Created on Jul 2, 2014 1:12:15 PM by  gamma83 (50) 1 1



Votes:

0

Your Vote:

Up

Down

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

Your Vote:

Up

Down

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 by  gamma83 (50) 1 1



Votes:

0

Your Vote:

Up

Down

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

Your Vote:

Up

Down

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 by  gamma83 (50) 1 1



Votes:

0

Your Vote:

Up

Down

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

Your Vote:

Up

Down

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 by  gamma83 (50) 1 1



Votes:

0

Your Vote:

Up

Down

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

Your Vote:

Up

Down

"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 by  gamma83 (50) 1 1



Votes:

0

Your Vote:

Up

Down

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 by  gamma83 (50) 1 1



Votes:

0

Your Vote:

Up

Down

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

Your Vote:

Up

Down

Yes, both commands returned similar output just like yours.

Created on Sep 2, 2014 10:21:20 PM by  gamma83 (50) 1 1



Votes:

0

Your Vote:

Up

Down

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

Your Vote:

Up

Down

.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 by  gamma83 (50) 1 1



Please log in or register to enter your reply.


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.