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

PRTG Network Monitor

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

Free Download

Top Tags


View all Tags

Monitor Exchange 2010 Database Whitespace

Votes:

0

Your Vote:

Up

Down

Hello,

I'm trying to check the Whitespace for a Exchange 2010 Database. With the following powershell-command I can check the whitespace:

Get-MailboxDatabase -Status | Select-Object Server,Name,AvailableNewMailboxSpace

Is it possible to monitor the output?

I know there is a possibility to create a custom sensor, but I'm not a Pro in programming. ---

Hallo

ich versuche aktuell auf dem Exchange 2010 den Whitespace einer Datenbank zu prüfen.

Mit dem folgenden Powershell Befehl kann ich den Whitespace im Exchange abrufen:

Get-MailboxDatabase -Status | Select-Object Server,Name,AvailableNewMailboxSpace

Gibt es eine Möglichkeit die Ausgabe irgendwie zu monitoren?

Zur Information, ich weiß dass man auch Custom Sensors anlegen kann, jedoch bin ich kein Profi im programmieren bzw. habe es noch nicht ganz verstanden wie man solch einen Sensor richtig anlegt.

exchange-2010 powershell prtg

Created on Nov 28, 2014 10:33:47 AM by  b0rgi85 (1) 1



1 Reply

Votes:

1

Your Vote:

Up

Down

Hey b0rgi85,

this is possible with remote powershell. But there are a lot of things to do, before remote powershell works.

  1. You have to use the powershell architecture from your PRTG installation. PRTG in 32bit = Powershell in 32Bit, PRTG in 64bit = powershell in 64bit.
  2. Follow this instructions for enable remote powershell on a server ( http://technet.microsoft.com/en-us/magazine/ff700227.aspx )
  3. Think about the security, signing and setting ( https://kb.paessler.com/en/topic/18963-how-can-i-use-powershell-scripts-with-prtg-s-execute-program-notification )

Good examples for remote powershell and exchange are here ( http://www.msxfaq.de/tools/prtg/prtgexcasuser.htm ). There you can use scripts to compare or do some developer work with.

TIP:

If you want to use the "parameter" section in PRTG EXE/XML, than you have to to something linke this (example is a script on msxfaq):

write-host "Start PRTG Sensor" 
[string]$exchangeuri         = "http://nawex001.netatwork.de/Powershell"
[string]$message ="Start:"
$error.clear() 

<- change this to -> 

write-host "Start PRTG Sensor" 
param([string]$exchangeuri) #URL of Exchange Server
[string]$message ="Start:" #Message on top of the sensor in the green box
$error.clear()

In this example you can use the "box" to add the Name of the Exchange-Server manually in the PRTG Sensor. Otherwise it would be fixed in the script itself.

For more information please look an this page ( https://www.paessler.com/manuals/prtg/exe_script_advanced_sensor ).

If you need more help, talk back and you'll get it ;)

Best

Sascha

Created on Dec 1, 2014 9:04:57 AM by  Sascha Lewandowski (2,291) 3 4

Last change on Dec 1, 2014 9:28:54 AM by  Torsten Lindner [Paessler Support]



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.