Build precise queries to find exactly what you need
Press ESC to close
Works OK for me,…
What I saw is that in case the imap server goes down, the check breaks and returns a lot of garbage and exits with “1” (warning). The same happens in case the port is not up.
I made a small modification:
— 1/check_imap 2012-09-06 13:53:44.760047791 +0200 +++ 2/check_imap 2012-09-06 13:54:08.590047801 +0200 @@ -43,9 +43,17 @@ return 1
if use_ssl: – M = imaplib.IMAP4_SSL(host=host) + try: + M = imaplib.IMAP4_SSL(host=host) + except Exception, e: + print “CRITICAL: IMAP connection not Successful: %s” % e + sys.exit(2) else: – M = imaplib.IMAP4(host) + try: + M = imaplib.IMAP4(host) + except Exception, e: + print “CRITICAL: IMAP connection not Successful: %s” % e + sys.exit(2)
try: M.login(user, password)
Thanks for the check!
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!