LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-01-2011, 05:36 AM   #1
hoggy_vegas
LQ Newbie
 
Registered: Dec 2011
Posts: 1

Rep: Reputation: Disabled
Nagios Office 365 Check


Hi guys,

I'm looking for a script to perform a nagios check on Office 365 but can't seem to find anything online. Ideally it needs to be a perl or shell script to do the following:

Either a single check to rule them all or a set of checks (right now I am leaning toward a set of four separate checks to make troubleshooting easier)

Verify email can be sent into O365 (smtp send check maybe) subject should be unique each time – maybe date/time stamp
Verify login to OWA
Verify inbox listing (subject lines)
Verify existence of email with subject set in step 1

Extra credit
Listing of how long each step takes and historical graphing or storage of such information to see trends such as mail slowing or delivery times getting longer.

Any ideas!
 
Old 12-02-2011, 06:32 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,417
Blog Entries: 55

Rep: Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627
Not that I know everything but I haven't seen such a script. I think you'll have to write your own.


Quote:
Originally Posted by hoggy_vegas View Post
Verify email can be sent into O365 (smtp send check maybe) subject should be unique each time – maybe date/time stamp
http://nagiosplugins.org/man/check_smtp or maybe something at http://www.nagios.com/solutions/smtp-monitoring.


Quote:
Originally Posted by hoggy_vegas View Post
Verify login to OWA
Last time I saw OWA it was is just a web-based login. Curl should be able to do that (searching LQ might show examples) and for deities sake I hope you run checks over SSL...


Quote:
Originally Posted by hoggy_vegas View Post
Verify inbox listing (subject lines)
...so once you have curl logged in (save session cookies?) find the "command" that lists the inbox...


Quote:
Originally Posted by hoggy_vegas View Post
Verify existence of email with subject set in step 1
... and send the result to stdout grepping for the subject.


Separating plugins and establishing their dependencies makes sense because for example if your 'net connection fails then all plugins that depend on it should not poll either (or risk cascading alerts you can't do anything with anyway) and the same would go for logging into OWA. A problem on their end probably isn't something you deal with (dunno if such web-based services offer anything SLA-like w/o proper beyond-our-control clauses) except sending their support an alert (if they would actually appreciate that, heh).


Quote:
Originally Posted by hoggy_vegas View Post
Listing of how long each step takes and historical graphing or storage of such information to see trends such as mail slowing or delivery times getting longer.
Nagios logs performance information else I'd suggest checking out what the Nagios community offers using rrdtool, nagiosgraph etc, etc through Nagios Exchange.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Zimbra Open Source Email Scores Surprise Win vs. Microsoft Office 365 LXer Syndicated Linux News 0 06-29-2011 08:20 PM
nagios check resource djackbloodshed Ubuntu 2 03-30-2011 10:26 AM
LXer: Use Nagios to Check Your Zypper LXer Syndicated Linux News 0 08-21-2008 06:40 AM
nagios check service noir911 Linux - Networking 5 07-24-2006 05:12 PM
Nagios and Check.cgi kopite2012 Linux - Newbie 1 04-08-2004 04:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration