Page 1 of 2
check_imap connection refused
Posted: Wed Jul 13, 2011 10:01 am
by tgfde
Hi,
After configuring NTP on this linux (SUSE 11 - nagios client) box, I get a message from Nagios complaining about a connection being refused when checking IMAP on the client.
Has anyone seen this? It seems like IMAP is working but I think Nagios could no longer check the status of it after configuring this client to sync its time to a NTP server.
Thanks.
Re: check_imap connection refused
Posted: Wed Jul 13, 2011 10:15 am
by agriffin
Does the problem persist if you disable NTP again?
Re: check_imap connection refused
Posted: Wed Jul 13, 2011 10:21 am
by tgfde
Yes, it does.
I don't think it's related but it's the latest config change on this client.
Thanks.
Re: check_imap connection refused
Posted: Wed Jul 13, 2011 10:32 am
by agriffin
Well even if it's not related we should at least rule it out first, especially since everything was working before (right?). You could try syncing your XI server with the same NTP server to make sure that time skew is not the problem.
Re: check_imap connection refused
Posted: Wed Jul 13, 2011 11:19 am
by tgfde
I have another Linux client and just sync the time and the IMAP service is ok.
Thanks.
Re: check_imap connection refused
Posted: Wed Jul 13, 2011 11:25 am
by tgfde
Below is the full check_imap command:
$USER1$/check_imap -H $HOSTADDRESS$ $ARG1$
Thanks.
Re: check_imap connection refused
Posted: Thu Jul 14, 2011 10:15 am
by agriffin
Well, if Nagios says the connection was refused it could be a firewall issue. Is the iptables service running or are you behind any other firewalls?
Re: check_imap connection refused
Posted: Fri Jul 29, 2011 7:58 am
by tgfde
Iptables service is not running and I'm not behind a firewall.
Thanks.
Re: check_imap connection refused
Posted: Fri Jul 29, 2011 9:38 am
by lmiltchev
What happens if you run "check_imap" command in terminal? Can you post the output?
Go to your "libexec" directory, for example:
# cd /usr/local/nagios/libexec
Then run:
# ./check_imap -H XX.XXX.XX.XXX -p 143
where XX.XXX.XX.XXX is your email server IP address
Re: check_imap connection refused
Posted: Mon Aug 01, 2011 4:38 pm
by tgfde
I get the same result, "connection refused".
Thanks.