Nagios Exchange Nagios Exchange
  • Home
  • Directory
  • Library
  • Support
  • About
  • Submit Feedback

Advanced Search

Build precise queries to find exactly what you need

Search Logic

Select compatible versions

Press ESC to close

Sign In Sign Up
  • Home
  • Directory
  • Library
  • Support
  • About
  • Submit Feedback
Plugins4416Themes and Skins13Add-ons768Graphics and Logos36View All Categories
LinuxSecuritySNMPFile SystemCloud
New Listings Recently Updated Listings Most Favored Listings Most Popular Listings Most Rated Listings Most Reviewed Listings
Random Project
2012 Nagios World Conference Presentations 2012 Conference Presentations
0.0 (0)
49.6K
RSS Feed
Newest Listings Updated Listings
Top Contributors
John Shorey (4)deskwork_itunes142 (4)Chad Columbus (3)Marcin Bednarski (3)Nick Overstreet (3)
See More
Newest Contributors
Seiichi YAMAMOTO (1)codemasterydevelopers (1)sunilka (1)davidb (1)faddom (1)
See More

Copyright © 2009-2026 Nagios Enterprises, LLC. All rights reserved.

Privacy PolicyTerms of UseTrademarks
Home > dcodix
d

dcodix

@dcodix

User Stats

Member Since: September 6, 2012

Favorites0

Views821

Projects1

check_pop3
IMAP4 and POP3
check_pop3
Python writen to test pop3. Similar to check_imap_login.txt but a pop3 version.
0.0 (0)
58K
0
dcodix
GPL
check_imap_login Plugin

Small modification

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!

Reviewed 14 years ago

No Favorites Found

Copyright © 2009-2026 Nagios Enterprises, LLC. All rights reserved.

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile