LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Nagios Office 365 Check (http://www.linuxquestions.org/questions/linux-general-1/nagios-office-365-check-916525/)

hoggy_vegas 12-01-2011 06:36 AM

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!

unSpawn 12-02-2011 07:32 AM

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 (Post 4538994)
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 (Post 4538994)
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 (Post 4538994)
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 (Post 4538994)
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 (Post 4538994)
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.


All times are GMT -5. The time now is 07:10 PM.