The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Service Status for Exim failed

Discussion in 'General Discussion' started by yoachan, Jul 26, 2010.

  1. yoachan

    yoachan Well-Known Member

    Joined:
    Jan 10, 2010
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    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
     
  2. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    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.
     
  3. yoachan

    yoachan Well-Known Member

    Joined:
    Jan 10, 2010
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    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
     
  4. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    You are very welcome!

    I am glad I was able to help. Thank you.
     
Loading...

Share This Page