check_imap connection refused

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: check_imap connection refused

Post 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.
Nicholas Scott
Former Nagios employee
tgfde
Posts: 233
Joined: Thu May 12, 2011 7:55 am

Re: check_imap connection refused

Post by tgfde »

Date and timezone are correct and no SSL.

Thanks.
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: check_imap connection refused

Post 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.
Nicholas Scott
Former Nagios employee
Locked