Page 2 of 2

Re: check_imap connection refused

Posted: Mon Aug 01, 2011 5:34 pm
by nscott
Are you using SSL at all for the IMAP connection? Can you verify that the date time are the same on each server, rather than an hour or two off (verify by running the date command on both machines)? Do you have the proper time zone specified? This can cause the time being off with ntp as it references the timezone.

To ensure you have the proper time zone set you will need to find your timezone in the /usr/share/zoneinfo subdirectories, and then create symlink to /etc/localtime with the proper timezone. I live in the Chicago time zone so I would something like this.

Code: Select all

cp /etc/localtime /backups/localtime-bak  #Always a good idea to make a backup
ln -sf /usr/share/zoneinfo/America/Chicago /etc/localtime

Then make sure you have the correct timezone in your /etc/sysconfig/clock file.

Re: check_imap connection refused

Posted: Fri Aug 05, 2011 9:16 am
by tgfde
Date and timezone are correct and no SSL.

Thanks.

Re: check_imap connection refused

Posted: Fri Aug 05, 2011 9:34 am
by nscott
Ok, then the next thing to do is to telnet in from your Nagios box. You'll need to know which port you're using for IMAP. Its typically port 143, depending on your IMAP configuration it may different, and you should check to see which port it actually is.

Code: Select all

telnet <ma nagios> <port>
Example:
telnet www.google.com 143
Can you connect? If you can't, then that is an issue and you need to find the proper port/address information.