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.
Article Comments
Hey b0rgi85,
this is possible with remote powershell. But there are a lot of things to do, before remote powershell works.
- You have to use the powershell architecture from your PRTG installation. PRTG in 32bit = Powershell in 32Bit, PRTG in 64bit = powershell in 64bit.
- Follow this instructions for enable remote powershell on a server ( http://technet.microsoft.com/en-us/magazine/ff700227.aspx )
- Think about the security, signing and setting ( https://https://helpdesk.paessler.com/en/support/solutions/articles/76000064755 )
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
Dec, 2014 - Permalink
Hey b0rgi85,
this is possible with remote powershell. But there are a lot of things to do, before remote powershell works.
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):
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
Dec, 2014 - Permalink