check_imap connection refused

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
tgfde
Posts: 233
Joined: Thu May 12, 2011 7:55 am

check_imap connection refused

Post 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.
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: check_imap connection refused

Post by agriffin »

Does the problem persist if you disable NTP again?
tgfde
Posts: 233
Joined: Thu May 12, 2011 7:55 am

Re: check_imap connection refused

Post by tgfde »

Yes, it does.
I don't think it's related but it's the latest config change on this client.

Thanks.
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: check_imap connection refused

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

Re: check_imap connection refused

Post by tgfde »

I have another Linux client and just sync the time and the IMAP service is ok.

Thanks.
tgfde
Posts: 233
Joined: Thu May 12, 2011 7:55 am

Re: check_imap connection refused

Post by tgfde »

Below is the full check_imap command:

$USER1$/check_imap -H $HOSTADDRESS$ $ARG1$

Thanks.
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: check_imap connection refused

Post 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?
tgfde
Posts: 233
Joined: Thu May 12, 2011 7:55 am

Re: check_imap connection refused

Post by tgfde »

Iptables service is not running and I'm not behind a firewall.

Thanks.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: check_imap connection refused

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
tgfde
Posts: 233
Joined: Thu May 12, 2011 7:55 am

Re: check_imap connection refused

Post by tgfde »

I get the same result, "connection refused".

Thanks.
Locked