Service Status for Exim failed

yoachan

Well-Known Member
Jan 10, 2010
65
0
56
Dear All,

we've just reinstall our box, and using cPanel 11.25.0

when we look at Service Status, it displayed that
Code:
exim (exim-4.69-23.1_cpanel_maildir)	failed
with a scary red exclamation. But the good news is I think exim is running.

Code:
   12345        ?        Ss     0:00 /usr/sbin/exim -bd -q60m
I've try to send email, and it instantly delivered. I can see the mail status and mail queue too. And I see nothing wrong at the log file.

Can anyone tell me what happens? And if it's only WHM that wrongly read the status, what should I do to make it shows a nice green check?

regards,

YoChan
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
27
143
Houston, TX
cPanel Access Level
Root Administrator
chkservd

The service that displays the information in Main >> Server Status >> Service Status is chkservd, which is part of tailwatchd. chkservd's configuration is stored in /etc/chkserv.d, and it writes files with each service's status to /var/run/chkservd. The files in chkservd are used to display the status in Main >> Server Status >> Service Status.

Each service for which monitoring is enabled has a file in /etc/chkserv.d, and a file in /var/run/chkservd. The file for the service in /etc/chkserv.d tells chkservd how to check it, and what to do if it is detected as down, and the file for the service in /var/run/chkservd simply has a plus sign (+) or a minus (-) sign, regarding whether the service is detected as "up" or "down."

From what you describe, it sounds like Exim is probably working and chkservd is wrongly detecting it as down. What you can do is try removing the file /etc/chkserv.d/exim. Then, use Main >> Service Configuration >> Service Manager, make sure monitoring is enabled, and click "Save" on the page. This will regenerate the /etc/chkserv.d/exim file.

You can monitor the chkservd log to get a better idea of why Exim (or any other service) is being detected as failed. I like to restart tailwatchd and then watch the chkservd log:

Code:
# /scripts/restartsrv_tailwatchd & tail -f /var/log/chkservd.log
This will show you detailed information from chkservd's service checks.
 

yoachan

Well-Known Member
Jan 10, 2010
65
0
56
Thanks!

Dear cPanelJared,

Thanks a lot. It's really is a complete answer.
It's more than what I've expected. It's so much better.
And yes, it works like a charm.

Thanks again for being a blessing. :)

warm regards,

YoChan