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

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
Plugins4391Themes and Skins11Add-ons741Documentation283Graphics 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
Components Nagios XI Google Map Integration Component
4.0 (4)
125.3K
RSS Feed
Newest Listings Updated Listings
Top Contributors
Julien DESMAREST (6)Yoann LAMY (6)Davide Lemma (4)deskwork_itunes142 (4)Claudio Kuenzler (2)
See More
Newest Contributors
sowoii (1)Nitatemic (1)cjdepaul (1)ixs (1)messefreeze (2)
See More

Copyright © 2009-2025 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)
57.6K
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 13 years ago

No Favorites Found

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

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile