One of the main areas I redesigned in vCheck 6 was the new plugin concept, In my mind this was a nice HTML output which could be used for more than just vSphere checks, the plugins could potentially be any product which has a PowerShell snap-in or module, and even some which don’t
Shortly after the release I was contacted by Phil Randal who had done just this, he has taken the vCheck framework and written some Exchange 2010 plugins, this now turns the vCheck report into a Exchange monitoring report too. Awesome stuff !
Now you can have a daily email with your Exchange 2010 details and issues.
Phil has added 6 initial Exchange 2010 plugins which add some great details, these include:
- Basic Server Information
- Database Statistics
- Database Status
- Public Folder Statistics
- Mailboxes larger than x amount of MB
- Mailboxes with deleted items above x amount of MB
So if you have Exchange 2010 then be sure to download this version of vCheck and give it a go, after all it doesn’t cost you a thing and could save you work in the future. Make sure you thank Phil for his hard work on Twitter, his account is @philrandal
Example Page
An example of the Exchange 2010 report can be viewed by clicking here.
Download
To download this version of vCheck you can download the following file which includes the base script and all exchange plugins:
For more information on the base vCheck script and its framework including a demo of how to use it visit this page.
Plugins
All Exchange Plugins are accessible via the Exchange 2010 plugins page located here.
We get a boat load of RPC errors when trying to run it. Will investigate, but if someone else has run into it, please advise.
Hi there. I specify the mailbox server, not the vcenter. Ok. The sript finishes showing the plugin status: (yes for all). That’s all i see. No exchange related status (db, mailboxes, etc). What im doing wrong?
I installed latest PowerCLI and Exchange 2010 Management Tool pack two days ago and I am now having problems with the DAG Plugin.
I have the problem with the Status and sort parameter for Get-DatabaseAvailabilityGroup.
If I just take away the -Status parameter including sort inside the DAG ps1 file it works. And if I am running the Get-DatabaseAvailabilityGroup -Status | Sort Server in Exchange Managementshell it is working but not in normal powershell. Can someone help me. I am a newbie in all theese scripting things.
I’m getting this when running the script….
Sending data to a remote command failed with the following error message: Deserialized objects exceed the memory quota.
For more information, see the about_Remote_Troubleshooting Help topic.
+ CategoryInfo : OperationStopped: (System.Manageme…pressionSyncJob:PSInvokeExpressionSyncJob) [], PSRe
motingTransportException
+ FullyQualifiedErrorId : JobFailure
The “server to connect” to bit is in vCheck’s GlobalVariables.ps1.
When using the Exchange Plugins, just type some descriptive text
It requires the Exchange Management Shell on the box it is being run on. All my testing’s been done on a Windows 2008 R2 server which has the EMC installed on it.
Hi
I have a question related to VMware View, is there any project on implementing the view in this amazing work ?
Best regads
Kenneth Ehmsen
I have a couple of very basic questions:
1) At the start, it asks for a server to connect to. With the vSphere vCheck this is obvious. With the Exchange one, I’m not clear on what server to point it at.
2) I assume this needs the Exchange Management Shell or PowerShell components installed on the workstation or should be run on the server?
Thanks!
Tony,
I don’t have any non-DAG databases to test or develop with, alas.
Not sure why the DB status is failing, but it should be simple enough to debug.
ok…while trying to figure out what could be happening I completely resetup the scheduled task, enabled logging in the script to event log and its now working.
The only thing I did change was to change the emailto to an array vs a single account as our D-lists are locked down
I’ve been having a hell of a time getting this to run in a scheduled task on Windows 2008 R2.
I logged in as scheduled task user, ran through the script the first time, validated that it emailed the report and then I setup the scheduled task with highest privleges, run if someone is logged in or not and when the task runs automatically it sits there in a running state.
Is there any way to have this log what is happening as I never get any output with this.
Great script! Just two things:
1) It doesn’t report the database status “Exchange 2010 DB Status”- report area has no rows. I have 15 DAG databases, 3 Public Folders and 1 non-DAG database. The DAG and public folder statistics report normally.
2) Can the scheduled report be saved to a directory plus email?
Thanks, Tony
Hi Greg,
No idea at all what’s going on there.
Does it work if you run vCheck from a Powershell prompt and not via PowerGUI?
I applied the updates for 2.1Beta4 and I corrected the sort statement however, I am still seeing the following error when the script in Plugin 13 is executed:
Get-DatabaseAvailabilityGroup : The type initializer for ‘Microsoft.Exchange.Cluster.Replay.
DiagCore’ threw an exception.
At H:\WindowsPowerShell\Scripts\VCheckExchange\Plugins\13 Exchange 2010 Database Availablility Groups.ps1:18 char:40
+ $DAGs = Get-DatabaseAvailabilityGroup <<<< -Status |
+ CategoryInfo : NotSpecified: (:) [Get-DatabaseAvailabilityGroup], TypeInitializationException
+ FullyQualifiedErrorId : System.TypeInitializationException,Microsoft.Exchange.Managem
ent.SystemConfigurationTasks.GetDatabaseAvailabilityGroup
This appears to be a data type initialization error, which I have not been able to pinpoint. Any thoughts?
Greg,
That one should have been fixed in the 2.1Beta4 download
The Sort statement should say “Sort Name”, not “Sort Server, Name”
Pingback: vCheck for Exchange 2010 « MidThought's
When I run the vCheck.ps1 script using Quest PowerGUI Script Editor, I am encountering the following error message from module 13 (Exchange Database Availability Groups) when stepping through the script:
Get-DatabaseAvailabilityGroup : The type initializer for ‘Microsoft.Exchange.Cluster.Replay.DiagCore’ threw an exception.
At H:\WindowsPowerShell\Scripts\VCheckExchange\Plugins\13 Exchange 2010 Database Availablility Groups.ps1:17 char:40
+ $DAGs = Get-DatabaseAvailabilityGroup <<<< -Status | Sort Server, Name + CategoryInfo : NotSpecified: (:) [Get-DatabaseAvailabilityGroup], TypeInitializationException + FullyQualifiedErrorId : System.TypeInitializationException,Microsoft.Exchange.Managem
ent.SystemConfigurationTasks.GetDatabaseAvailabilityGroup
I have the plug-ins stored on a mapped network share. Any ideas?