scripting webmail check for Exchange 2007
I'm using a Nagios server to perform active checks of an Exchange 2003 box. The check logs into a specific mailbox and looks for an email with a specific subject (the key). If it finds the key it returns an all clear. This check is working great for Exchange 2003 but fails for Exchange 2007 and 2010. I think it's just a syntax error on the website it goes to run the check but am finding few examples. Below is the command that works in Exchange 2003. Does anyone know what needs to be changed to get it to work in 2007/2010? gtc=`curl -s -k -u $user:$pass https://$1/exchange/$user/Inbox/?Cmd=contents&Page=1`
September 18th, 2012 2:31pm

How to Use Outlook Web Access Web Parts Using Outlook Web App Web Parts
Free Windows Admin Tool Kit Click here and download it now
September 18th, 2012 2:36pm

Shoot. Looks like the script doesn't work with forms-based authentication. Thx.
September 18th, 2012 3:43pm

Oddly, I wrote something that might help a few days ago. Needs cookies and javascript, though - I've no idea if curl handles those. http://www.leederbyshire.com/Blog/post/2012/09/17/How-to-log-into-OWA-2010-by-passing-credentials-in-the-URL-querystring.aspx There may be a way to do all this server-side; but since FBA is cookie-based auth, if curl doesn't do cookies, you'll have to come up with something else.Mobile OWA For Smartphone www.leederbyshire.com email a@t leederbyshire d.0.t c.0.m
Free Windows Admin Tool Kit Click here and download it now
September 19th, 2012 9:14am

Hello Alceryes, If you want to search email in Exchange 2007 and Exchange 2010 with a specific subject (the key), you can use Export-mailbox to search in Exchange 2007 and use search-mailbox command in Exchange 2010. Exchange Server 2007 Cross Mailbox Search using Export-mailbox http://blogs.technet.com/b/exchange/archive/2006/12/18/3397563.aspx Search-Mailbox http://technet.microsoft.com/en-us/library/dd298173.aspx Thanks, Evan Liu TechNet Subscriber Support in forum If you have any feedback on our support, please contact tnmff@microsoft.com Evan Liu TechNet Community Support
September 20th, 2012 6:14am

Hi, How about the issue, any updates? Thanks, Evan Liu TechNet Subscriber Support in forum If you have any feedback on our support, please contact tnmff@microsoft.com Evan Liu TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
September 25th, 2012 6:24am

It's unresolved but kind of on the back burner right now. I'm looking for something I can execute through Nagios. Thanks for your replies.
September 25th, 2012 3:05pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics