This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

APM Exchange Mailbox Store Monitor

Monitor Individual Mailbox Stores to see if they are up or down (Dismounted)

This is a vbScript monitor that looks for the presence of a SystemMailbox{xxxxxx} mailbox and if found, it returns a 0 indicating the mailbox was found IE the mailbox store corresponding to that SystemMailbox is up and running.

If the mailbox is not found then a 1 is returned indicating the store is down.

 

You must specify 5 command line arguments:

MailserverName

User Account (With read access)

Password

SystemMailbox Name (SystemMailbox{xxxxxxxxxxxxxx}

Storage Group Name

 

EXAMPLE:

MAILSERVER01 admin-abc password1 SystemMailbox{35e7r644d8656f5285...} FirstStorageGroup

MailBoxStoreMonitor.vbs
  • Hi bob

    thanks for posting this, I'm new to Solarwinds and am on a steep learning curve.

    I do have APM installed, but unsure how I make this script work for me.. please can you explain what I need to do to get this working .

    thanks in advance.
  • What version of Exchange? And does the LegacyDN need changed in the Script: "SELECT * FROM Exchange_Mailbox WHERE LegacyDN='/O=NCI_Building_Systems/OU=" & strStorageGroup & "/CN=Recipients/cn=" & strMailbox & "'")?

    Thanks
  • Sorry for the late reply.

    Nothing in the script needs to be changed to suit your environment as that is all determined by the command line arguments. Set up a script monitor in APM and select this template as the code.

    David
  • FormerMember
    0 FormerMember
    Wow, thanks for the super quick reply!

    Hmm.. I've since discovered that WMI (\ROOT\MicrosoftExchangeV2) is no longer supported for Exchange 2007 & later. You have to use PowerShell.

    Oh well, it's still a cool script! emoticons_happy.png

    Graham

  • FormerMember
    0 FormerMember
    Hi there,

    Does this work for 2007 / 2010?

    Many thanks for this, this is one thing that the standard template is crying out for.

    Graham

  • @grahampriley - I have not tried it with anything other than 2003. If there is a SystemMailbox in a mailbox store this script can monitor it's status and thus determine if the store is available.

    If there is not a systemmailbox you could create a special account with a mailbox and specify that as the for the command line argument.

    Basically you create an application monitor for each store on the server. In the command line you would specify the following:

    MailserverName

    User Account (With read access)

    Password

    SystemMailbox Name (SystemMailbox{xxxxxxxxxxxxxx} or any unique mailbox name.

    Storage Group Name

    David
  • Hi,

    I am trying to get the script running for MS SQL 2003 and the critp returns status code down. But when I login to the Exchange server I can see the mailbox store is up. Any ideas on what is wrong.

    I used in the command line:
    SystemMailBox{290F54E9666...} FirstGroupStorage

    Thanks
  • @bellch. If you can confirm the system mailbox does indeed exist you might want to reboot the server. This was the fix for that in all the cases I observed that issue.

    David

  • FormerMember
    0 FormerMember
    thanks for this service.
  • workablob,
    Thanks much for the script. Was hoping you may be able to determine what I am doing wrong. I have the script built in with the following arguments:

    EXCHANGESTORE TNSMI-EX1\GKENNEDY password SystemMailbox{472E29DD-535B-4059-B8A2-6CF44945FB26} "Storage Group Three"

    But I get the following error:
    Mailbox Not Present. IE Mail Store Down
    Output: ==============================================
    Message: Mailbox Not Present. IE Mail Store Down
    Statistic: 1

    I am curious. Can I user domain\username notation for argument (1)?
    I have have set the SystemMailbox GUID to match the box in one of my mailstores within Storage Group Three. Is this correct for argument (3)?
    Is argument (4) the name of the storage group or the mailstore that houses the System Mailbox? Also, can/should it be in quotes if there spaces in the name?

    Sorry. All questions may be factors in my problem emoticons_happy.png