tag:blogger.com,1999:blog-5472158136828312403.post8412511129165084772..comments2023-03-25T15:09:33.838+01:00Comments on Blog of Hermann Maurer: Check_MK check to show some data about Ex2010 mailbox databasesAnonymoushttp://www.blogger.com/profile/13022281390562781347noreply@blogger.comBlogger20125tag:blogger.com,1999:blog-5472158136828312403.post-84318007782116236652016-07-13T17:27:13.718+02:002016-07-13T17:27:13.718+02:00Hello,
I'm a newbie working with OMD check_mk...Hello,<br /><br />I'm a newbie working with OMD check_mk. The cmk -P install of the MPK does not seems to work on OMD. SO i put the files manually in the paths needed. <br /><br />Now my question is, how can i make it work on OMD check_mk?Jeannoreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-7929054291653225882015-11-27T11:08:41.448+01:002015-11-27T11:08:41.448+01:00Hi Hermann,
is there an new version of your scrip...Hi Hermann,<br /><br />is there an new version of your script available that works with works with cmk 1.2.6? Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-38707515319745627822013-10-27T21:47:00.933+01:002013-10-27T21:47:00.933+01:00Everybody, please note that I created this check f...Everybody, please note that I created this check for the version 1.1.12 of Check_MK. I neither have tried the check under the version 1.2 of Check_MK or above nor I have any experiences with the current version of Check_MK.Anonymoushttps://www.blogger.com/profile/13022281390562781347noreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-29666797157798530122013-10-25T23:56:19.120+02:002013-10-25T23:56:19.120+02:00I'm running version 1.32 and after removing an...I'm running version 1.32 and after removing an extra } character from the powershell command that sits in the plugins directory, it looks like it should work. However i get this error in the debug log:<br /><br />Invalid output from plugin or error in check:<br /> Check_MK Version: 1.2.0p2<br /> Date: 2013-25-10 16:58:58<br /> Host: pnexch01.pn.local<br /> Service: MailBoxDB DB04<br /> Check type: Ex2010_MBDB_Info<br /> Item: 'DB04'<br /> Parameters: None<br /> Traceback (most recent call last):<br /> File "/omd/sites/pn/var/check_mk/precompiled/pnexch01.pn.local", line 675, in do_all_checks_on_host<br /><br /> File "/omd/sites/pn/var/check_mk/precompiled/pnexch01.pn.local", line 1030, in check_Ex2010_MBDB_Info<br /> AttributeError: 'str' object has no attribute 'format'<br /><br /> Agent info: [['DB02', '214354165760', '55'],<br /> ['DB01', '58795819008', '16'],<br /> ['DB03', '140534415360', '117'],<br /> ['DB04', '192745635840', '51']]<br /><br /><br />I checked though, the problem is version of python < 2.6. My OMD box is still on centos 5.8. I'm rebuilding as we speak. Anonymoushttps://www.blogger.com/profile/05144926337045631258noreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-58187653332257891262013-10-24T08:49:54.403+02:002013-10-24T08:49:54.403+02:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/03200975212741269234noreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-56591291640529383962013-02-21T10:54:30.611+01:002013-02-21T10:54:30.611+01:00I've released a new corrected version, which s...I've released a new corrected version, which should be robuster and not stumble upon spaces in mailbox database names. Please look at the newest article for more details.Anonymoushttps://www.blogger.com/profile/13022281390562781347noreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-44703031458747827962013-02-08T17:44:29.588+01:002013-02-08T17:44:29.588+01:00Thank you for your Plugin. I have the same problem...Thank you for your Plugin. I have the same problem with the "UNKNOWN - invalid output from agent, invalid check parameters or error in implementation of check Ex2010_MBDB_Info. Please set debug_log to a filename in main.mk for enabling exception logging" at the Webfrontend.<br />cmk -d Exchange2010: shows the correct info.<br /><<>><br />Mailbox Database 1965957315 786839040 9<br /><br />The plugin on the Exchange-Server run fine.<br />Can anyone help me?<br /><br />MatthiasAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-22565497355019497732013-01-31T15:44:14.950+01:002013-01-31T15:44:14.950+01:00I've tried the same solution for the high serv...I've tried the same solution for the high server load as Michael Bänteli (I need this check only once a day), the rule is working (no checks since, next check in 16 hours), but on the server the script runs every minute (25% CPU), the agent check needs ca. 10 sec (without this script 0,2). Maybe this is the way check_mk works (execute any script in the plugins-folder every time the agent-check runs)? Or have I missed something?<br /><br />ManfredAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-91953470854922057822013-01-30T10:24:08.665+01:002013-01-30T10:24:08.665+01:00OK, I've released a new version of the plugin....OK, I've released a new version of the plugin. Please look at a new article in blog.Anonymoushttps://www.blogger.com/profile/13022281390562781347noreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-19683302225575454732013-01-29T13:43:05.339+01:002013-01-29T13:43:05.339+01:00Hi, I have the same problem as Andrew Bootsma, the...Hi, I have the same problem as Andrew Bootsma, the proposed solution did not work (its only one line of code, I also tried the line you provided in your answer - same error). Here is a copy of my commandline and the result:<br /><br />C:\>"C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe" -Command "& { Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010 ; Write-Host '<<>>' ; $DBS = Get-MailboxDatabase -Status -Server sbstx200 ; $DBS | %% { '{0,-10} {1,-20} {2, -6}' -f $_.name, ($_.Databasesize -repl<br />ace ',', ''-replace '^.*\((.*) bytes\)', '$1'), (Get-MailboxStatistics -Database $_.name).count }; }"<br /><<>><br />Die Benennung "%%" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines ausführbaren Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern enthalten), und wiederholen Sie den Vorgang.<br />Bei Zeile:1 Zeichen:168<br />+ & { Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010 ; Write-Host '<<>>' ; $DBS = Get-MailboxDatabase -Status -Server sbstx200 ;<br /> $DBS | %% <<<< { '{0,-10} {1,-20} {2, -6}' -f $_.name, ($_.Databasesize -replace ',', ''-replace '^.*\((.*) bytes\)', '$1'), (Get-MailboxStatistics -Database<br /> $_.name).count }; }<br /> + CategoryInfo : ObjectNotFound: (%%:String) [], CommandNotFoundException<br /> + FullyQualifiedErrorId : CommandNotFoundException<br /><br />Do you have any suggestion? Thank you!<br />ManfredAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-87608472651376634352013-01-22T11:41:35.073+01:002013-01-22T11:41:35.073+01:00Michael, thank you very much for sharing your chan...Michael, thank you very much for sharing your changes regarding the checking of a DAG! I can imagine it could be possible to unite the both checks in one only. Anonymoushttps://www.blogger.com/profile/13022281390562781347noreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-51820356487665568582013-01-21T13:54:42.975+01:002013-01-21T13:54:42.975+01:00Script with Modification for DAG
"C:\Windows...Script with Modification for DAG<br /><br />"C:\Windows\Sysnative\WindowsPowerShell\v1.0\powershell.exe" -Command "& { Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010 ; Write-Host '<<>>' ; $DAG = (Get-MailboxServer (hostname)).DatabaseAvailabilityGroup.ToString() ;$DBS = Get-MailboxDatabase -Status $DAG* ;$DBS | %% { '{0,-10} {1,-20} {2, -6}' -f $_.name, ($_.Databasesize -replace ',', ''-replace '^.*\((.*) bytes\)', '$1'), (Get-MailboxStatistics -Database $_.name).count }; }"<br /><br />With this script the hole DAG can be monitored, without the Need to run this script on any DAG Member Server. <br /><br />A specail thanks to me work collegue in UK.<br /><br />MichaelAnonymoushttps://www.blogger.com/profile/08015904755879196226noreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-71280950225377450722013-01-21T13:52:10.750+01:002013-01-21T13:52:10.750+01:00Hi
I created a rule in WATO for "Normal chec...Hi<br /><br />I created a rule in WATO for "Normal check interval for service checks" for the Service "MailBoxDB" with 15 Minutes inteval. Now the load is only a Little bit higher than without this script.<br /><br />Actually we are on the way to figure out the modifcations for a DAG.<br /><br />MichaelAnonymoushttps://www.blogger.com/profile/08015904755879196226noreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-76192485890021914642013-01-21T13:10:05.392+01:002013-01-21T13:10:05.392+01:00at the Moment i did change the Interval for Servic...at the Moment i did change the Interval for Service Check in the Check_MK WATO Config. I set it now to 900 s instead of 60 s. But i am not sure, if this is realy live now. I will inform you. The second this we are testing now is how should we monitor with this script a DAG Environment. I will also update all of youMichael Bäntelinoreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-14982031902265213302013-01-18T17:08:03.173+01:002013-01-18T17:08:03.173+01:00thank you, glad to hear this :-)
yes, I know the i...thank you, glad to hear this :-)<br />yes, I know the issue, but I have no idea, how the requests in the powershell script can be done more smoothly. If you've found a solution, please share it.Anonymoushttps://www.blogger.com/profile/13022281390562781347noreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-37257102923084328112013-01-18T15:43:37.624+01:002013-01-18T15:43:37.624+01:00Hi
great plugin....
How can the Exchange Server ...Hi<br /><br />great plugin....<br /><br />How can the Exchange Server Load minimized (which is caused by this plugin)? If the script runs every 60sec on the Exchange Server, the Server average CPU Usage is rised by ca. 10%. Kind regards<br />MichaelAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-91739129119346803192013-01-17T13:45:23.075+01:002013-01-17T13:45:23.075+01:00Hi Anonymous,
please try to execute the plugin on ...Hi Anonymous,<br />please try to execute the plugin on the mail server and post the output here. Consider my comment above yours.<br />BRAnonymoushttps://www.blogger.com/profile/13022281390562781347noreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-38203514275403741282013-01-17T12:22:49.042+01:002013-01-17T12:22:49.042+01:00Thanks for your plugin, is very good. I have a lit...Thanks for your plugin, is very good. I have a little problem. When I get the mailbox check_mk, appears a service called MailBoxDB Mailbox with status: UNKNOWN - invalid output from agent, invalid check parameters or error in implementation of check Ex2010_MBDB_Info. Please set debug_log to a filename in main.mk for enabling exception logging.<br /><br />In the debug file appears:<br />/var/log/nagios/check_mk_debug.log<br /><br /> Host: XXXXX<br /> Service: MailBoxDB Mailbox<br /> Check type: Ex2010_MBDB_Info<br /> Item: 'Mailbox'<br /> Parameters: None<br /> Traceback (most recent call last):<br /> File "/var/lib/check_mk/precompiled/XXXXX", line 675, in do_all_checks_on_host<br /> ^A^N^B^P^A ^A ^A^F^A<br /> File "/var/lib/check_mk/precompiled/XXXXXX", line 1025, in check_Ex2010_MBDB_Info<br /> ValueError: invalid literal for int() with base 10: 'Database'<br /><br /> Agent info: [['Mailbox', 'Database', '2146388325', '142671872', '4'],<br /> ['ex_level1', '142671872'],<br /> ['ex_level1', '8454144'],<br /> ['ex_level2', '8454144'],<br /><br /><br /><br /><br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-35058173659195743072012-12-05T10:42:25.705+01:002012-12-05T10:42:25.705+01:00Hm... please make sure, the cmd-file consists only...Hm... please make sure, the cmd-file consists only of one line of code. Hier is the line:<br /><br />"C:\Windows\Sysnative\WindowsPowerShell\v1.0\powershell.exe" -Command "& { Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010 ; Write-Host '<<>>' ; $DBS = Get-MailboxDatabase -Status -Server (hostname) ; $DBS | %% { '{0,-10} {1,-20} {2, -6}' -f $_.name, ($_.Databasesize -replace ',', ''-replace '^.*\((.*) bytes\)', '$1'), (Get-MailboxStatistics -Database $_.name|where { $_.DisconnectReason -ne 'SoftDeleted' }).count }; }"<br /><br />To run the command file local to verify it, copy the file outside of the plugin directory and change the code from "C:\Windows\Sysnative" to "C:\Windows\system32".Anonymoushttps://www.blogger.com/profile/13022281390562781347noreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-79603596566907470322012-11-26T23:32:15.373+01:002012-11-26T23:32:15.373+01:00Hi,
I attempted to run this with check_mk, ran int...Hi,<br />I attempted to run this with check_mk, ran into a problem however and manually running the command threw up this error " <<>><br />The term '%%' is not recognized as the name of a cmdlet, function, script file,<br /> or operable program. Check the spelling of the name, or if a path was included<br />, verify that the path is correct and try again.<br />At line:1 char:179"Anonymoushttps://www.blogger.com/profile/07583594234630248631noreply@blogger.com