Exchange 2010 Mailbox Database Info Check for Check_MK updated

I’ve updated the check and built a new package. The package can be downloaded from Check_MK exchange site here. The new version has the number 1.4.

There are two changes regarding the agent’s side: the plugin call logic and the caching of results.

Please pay attention that there are two files at the client now, not only one. The command file “ex2010_mbdb_info.cmd” has to be copied in the sub-directory ‘plugins’ and the PowerShell file named “ex2010_mbdb_info.ps1” into the sub-directory ‘tools’ of the Check_MK client installation directory.

The new version caches results to reduce the execution time and to prevent higher CPU load in an environment with many databases. The old version asks for the data each time the plugin is called. In a default environment it happens every minute. This can cause higher CPU load of the Exchange server and affect the agent execution duration negatively. The new version creates a cache file to store the last results. If the cache file has become older than a pre-defined time period (by default 30 minutes), the plugin asks the Exchange server for new data, sends the new output to the agent and writes it into the cache file. The next time the plugin would read the result from the file. This operation is much faster than asking the Exchange server for live data. You can change the cache time parameter in the file “ex2010_mbdb_info.ps1” directly by modifying the value of the variable $TimeDiff.

As usual don’t hesitate to ask me, if you should have faced any troubles while installing the new check version or if you have a phenomenon.

As usual the plugin is provided AS IS, that means with NO WARRANTY that the software doesn’t contain any errors. Use it at your own risk.

7 thoughts on “Exchange 2010 Mailbox Database Info Check for Check_MK updated

  1. brainstocker

    Plugin Output: UNKNOWN – invalid output from agent, invalid check parameters or error in implementation of check Ex2010_MBDB_Info. Please enable “Log exceptions in check plugins” for further information.
    Any Ideas?

    Reply
  2. Hermann Maurer

    No ideas so far. But you could provide more details about the Exchange server version, CMK server and agent versions and plugin version you are using.
    And the output of check_mk_agent.exe test, executed on the Exchange server directly, could be very helpful.

    Reply
  3. Joerg

    Nice PlugIn! But it cannot handle DAGs. What a shame. I get the error “Ex2010_MBDB_Info | Mailbox |MailBoxDB Mailbox| UNKNOWN – invalid output from agent or error in check implementation”

    Reply
    1. Hermann Maurer Post author

      I cannot confirm this, because the plugin runs against a DAG without any problems in my company’s environment. Do you probably encounter some other issues? Can you run the agent on the appropriate server directly to see the output and to understand, what can be the reason for the error?
      Please have a look to this article: http://hermannmaurer.blogspot.de/2012/09/checkmk-check-to-show-some-data-about.html and especially to the comment beginning with the line “Script with Modification for DAG”.

      Reply
  4. Pingback: Monitoring Exchange 2013 mailbox databases with Check_MK | Hermanns Space & Time

  5. Adrian

    Is there a walkthrough for people new to Check-MK / Nagios style monitoring? I’m not 100% on how to get this installed and working..

    Reply
    1. Hermann Maurer Post author

      In fact you don’t need to learn anymore, how Nagios works.
      I suggest you to have a look at the official web site of Check_MK project.
      And I recommend to read this documentation.

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *