tag:blogger.com,1999:blog-5472158136828312403.post6212768381223114303..comments2023-03-25T15:09:33.838+01:00Comments on Blog of Hermann Maurer: Version 1.3.1 of Ex2010_MBDB_Info releasedAnonymoushttp://www.blogger.com/profile/13022281390562781347noreply@blogger.comBlogger14125tag:blogger.com,1999:blog-5472158136828312403.post-20558339798524122402013-10-22T22:00:06.817+02:002013-10-22T22:00:06.817+02:00I get the following output from cmk -d:
Unerwarte...I get the following output from cmk -d:<br /><br />Unerwartetes Token "}" im Ausdruck oder in der Anweisung.<br />Bei C:\Program Files (x86)\check_mk\plugins\Ex2010_MBDB_Info.ps1:16 Zeichen:2<br />+ } <<<<<br /> + CategoryInfo : ParserError: (}:String) [], ParseException<br /> + FullyQualifiedErrorId : UnexpectedToken<br /><br /><br />If I remove the last } in the PowerShell-Script the output from [PS] C:\>& 'C:\Program Files (x86)\check_mk\plugins\Ex2010_MBDB_Info.ps1' looks ok. The output from cmk -d begins with:<br /><br /><<>><br />#< CLIXML<br />DB01 142671872 5<br /><br />....Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-37894028410373039862013-08-05T23:42:22.753+02:002013-08-05T23:42:22.753+02:00Hi all,
i also tried the plugin
When I run it by ...Hi all,<br /><br />i also tried the plugin<br />When I run it by hand no problem, but when i run it as plugin allot of powershell services are started and the server is going to 100 % cpu ?<br /><br />what am i doing wrong<br />hope you can help me out :)<br /><br />regards<br /><br /><br />Peter JonkersAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-47462673280091267732013-04-17T18:47:07.243+02:002013-04-17T18:47:07.243+02:00I haven't any ideas... It takes 10-11 seconds ...I haven't any ideas... It takes 10-11 seconds for check_mk to check each of my four servers, which have up to 20 mailbox databases. Try to execute <br />cmk -d and look at the output to understand what might be wrong.Anonymoushttps://www.blogger.com/profile/13022281390562781347noreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-14936434007702065842013-04-16T09:45:36.011+02:002013-04-16T09:45:36.011+02:00OK it seems to be a typo? The very last "}&qu...OK it seems to be a typo? The very last "}" is definitely superfluous. The script runs after removing this character.<br /><br />I now simply have the following problem:<br />These PS script runs fine locally and finishes very quickly.<br /><br />But if I execute it through the agent, it takes 1-2 minutes to finish, and this generally causes a Nagios critical state for the "Check_MK" service.<br /><br />What could cause this? If there's no solution, can I work around it by somehow increasing the agent response time out limit?Marcelhttps://www.blogger.com/profile/10780890040838503736noreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-19172797769541676652013-04-16T09:30:55.444+02:002013-04-16T09:30:55.444+02:00Auch hallo :-)
please make sure that the script&#...Auch hallo :-)<br /><br />please make sure that the script's body is OK, meant: not damaged. You can look at http://poshcode.org/4110 for a hint. Or copy the script from there. Have you already seen that I published a new version some weeks ago?<br /><br />Best regards<br />Hermann MaurerAnonymoushttps://www.blogger.com/profile/13022281390562781347noreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-55020194770245251412013-04-16T08:57:16.820+02:002013-04-16T08:57:16.820+02:00Hallo,
i get an error message:
Unerwartetes Toke...Hallo, <br /><br />i get an error message:<br />Unerwartetes Token "}" im Ausdruck oder in der Anweisung.<br />Bei C:\Install\Nagios-Agent_1.2.2p1\plugins\Ex2010_MBDB_Info.ps1:16 Zeichen:2<br />+ } <<<<<br /> + CategoryInfo : ParserError: (}:String) [], ParseException<br /> + FullyQualifiedErrorId : UnexpectedToken<br /><br /><br />This is version 1.3.1 of your script.Marcelhttps://www.blogger.com/profile/10780890040838503736noreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-48624908939748553982013-02-21T10:53:38.249+01:002013-02-21T10:53:38.249+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-14232277604283901772013-01-31T10:38:48.161+01:002013-01-31T10:38:48.161+01:00Just wanted to answer you with my "patch"...Just wanted to answer you with my "patch". I have only one database, so my quick fix was to replace $_.name with a static name ("HL"), so the output is now HL 24167645184 16 and everything is fine.<br />The other option is to change the (default) name of the database, it seems easy to do.<br /><br />Thanks for your support!<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-71547357474705290082013-01-31T10:30:43.728+01:002013-01-31T10:30:43.728+01:00Thanks for feedback, Manfred!
Yes, the spaces in t...Thanks for feedback, Manfred!<br />Yes, the spaces in the Mailbox-DB name seem to cause the problem. The check cannot parse such input. Either you change the name to something without spaces or you must wait until I've changed the check. Or you can provide your patch :-)<br />Anonymoushttps://www.blogger.com/profile/13022281390562781347noreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-77413002068653882002013-01-31T10:12:37.767+01:002013-01-31T10:12:37.767+01:00Maybe that's the problem: the database name is...Maybe that's the problem: the database name is "Mailbox Database 2012100516" (two spaces).<br /><br />The output in powershell is<br />Mailbox Database 2012100516 24167645184 16Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-56860053698598386812013-01-31T09:40:50.276+01:002013-01-31T09:40:50.276+01:00Hmm.. a strange thing, I've never got the erro...Hmm.. a strange thing, I've never got the error before. What is the output of the agent, if you execute it in the powershell on the Exchange server. My output is here:<br /><br />[PS] C:\>& 'C:\Program Files (x86)\check_mk\plugins\Ex2010_MBDB_Info.ps1'<br /><<>><br />Database1 123220328448 20<br />Database2 2692808704 5<br />Database3 9001041920 11<br />Database4 25241911296 217<br />Database5 8454144<br />Database6 1350631424 6<br />Database7 3632332800 9<br />Database8 72888680448 32<br />Database9 38126288896 21<br />Database10 10880090112 6<br />Database11 46045134848 22<br />Database12 134226182144 43<br />Database13 163218259968 59<br />Database14 234084696064 53<br /><br />Does the mailbox database name of your Exchange contain a space or a non ascii char like umlaut?Anonymoushttps://www.blogger.com/profile/13022281390562781347noreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-74418556934222817382013-01-31T09:21:18.717+01:002013-01-31T09:21:18.717+01:00Hi,
thanks for your quick response. I've chang...Hi,<br />thanks for your quick response. I've changed the name (and removed the last } in the file) and the script now works. <br />But in check_mk I get the following error:<br />UNKNOWN - invalid output from agent, ...<br /><br />In the debug-log I have this:<br />ValueError: invalid literal for int() with base 10: 'Database'<br />Agent info: [['Mailbox', 'Database', '2012100516', '24167645184', '16']]<br /><br />So I assume the output is correct (name and size of the database and number of accounts), but check_mk don't know where to put it.<br /><br />Best regards,<br />ManfredAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-28467665134070202692013-01-30T17:47:10.269+01:002013-01-30T17:47:10.269+01:00Hi Manfred,
thanks for your feedback! It's be...Hi Manfred, <br />thanks for your feedback! It's been a silly typo in the agent script. I've corrected the error and put the corrected package in to Check_mk exchange. You can substitute iis_reset.ps1 with Ex2010_MBDB_Info.ps1 in the agent script, if you don't want to download the updated package.Anonymoushttps://www.blogger.com/profile/13022281390562781347noreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-20687471832312154032013-01-30T16:56:57.879+01:002013-01-30T16:56:57.879+01:00Hi, I tried the new version, now it can't find...Hi, I tried the new version, now it can't find "iis_status.ps1". Where do I get this?<br /><br />Best regards,<br />ManfredAnonymousnoreply@blogger.com