Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

DNS only issues

Discussion in 'Bind/DNS/Nameserver' started by Fisheh, Oct 28, 2010.

  1. Fisheh

    Fisheh Registered

    Oct 15, 2010
    Likes Received:
    Trophy Points:

    I have dns only on 2 servers and cpanel on another and they are clustered.

    The problem im having is that one of the dns only servers is spitting out like 100+ emails a day saying that services have stopped working.

    httpd failed @ Thu Oct 28 09:23:10 2010. A restart was attempted automagically.
    Service Check Method: [tcp connect]

    Failure Reason: Unable to connect to port 80
    pop failed @ Thu Oct 28 09:38:13 2010. A restart was attempted automagically.
    Service Check Method: [tcp connect]

    Failure Reason: Unable to connect to port 110
    imap failed @ Tue Oct 26 14:54:42 2010. A restart was attempted automagically.
    Service Check Method: [check command]

    Cmd Service Check Raw Output: dovecot is not running
    exim failed @ Thu Oct 28 04:32:12 2010. A restart was attempted automagically.
    Service Check Method: [tcp connect]

    Failure Reason: TCP Transaction Log:
    << ESMTP Exim 4.69 #1 Thu, 28 Oct 2010 04:32:14 +0100
    >> EHLO localhost
    << Hello ns1 []
    >> AUTH PLAIN AF9fY3BhbmVsX19zZXJ2aWNlX19hdXRoX19leGltX19ZVEdwSjBRaHptc2djWGptYnpMTkRpbjZ3SkoxN191VFVhQ09RWnR2V2M5TlM5Y3FqbnZ5V1htZzFNdloyV0RzADhNcVJjcFJZSUNPM0NvTzd2cHhvYjdqZ2kyY0YyWndSWHRvTVBibGYwRkhyUW9JSFV2UWRONGlJMHRlYjl5bEc=
    << 435 Unable to authenticate at present
    exim: ** [435 Unable to authenticate at present != 2]

    And on the other im having

    tailwatchd failed @ Wed Oct 27 12:35:01 2010. A restart was attempted automagically.

    Please can some one advise me on the next steps i need to be taking

    Many thanks

  2. cPanelJared

    cPanelJared Technical Analyst

    Feb 25, 2010
    Likes Received:
    Trophy Points:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Two separate but related issues

    There are likely two separate issues here. The first to address is that of tailwatchd failing. Check to make sure that both /usr/bin/perl and /usr/local/bin/perl are not binary files. One should be a binary file, and the other should be a symlink to the binary file. For example, this is correct:

    # ls -alh /usr/bin/perl
    -rwxr-xr-x 2 root root 15K Nov  8  2007 /usr/bin/perl*
    # ls -alh /usr/local/bin/perl
    lrwxrwxrwx 1 root root 13 May 30  2008 /usr/local/bin/perl -> /usr/bin/perl*

    If both are binary files, then move one (I usually move the oldest file) to /root, create a symlink to the remaining binary file in its place, and run this command:

    # /scripts/checkperlmodules --full
    Next, run this command:

    # /usr/local/cpanel/bin/tail-check
    There should be no output. If there is any error output, I recommend submitting a ticket, because there are several different possible reasons for tailwatchd to fail, and it can be difficult to determine the cause without direct access to the server.

    For the second issue, that of services that should not be running on DNS-only being reported as down, you can disable monitoring for them by moving their files from /etc/chkserv.d:

    # ls -alh /etc/chkserv.d/
    total 96K
    drwxr-xr-x  2 root root 4.0K Apr 23  2010 ./
    drwxr-xr-x 89 root root  12K Oct 28 07:50 ../
    -rw-r--r--  1 root root  150 Sep  2 13:27 chkservd.conf
    -rw-r--r--  1 root root   58 Sep 24 22:20 clamd
    -rw-r--r--  1 root root   73 Dec 16  2009 cpanellogd
    -rw-r--r--  1 root root  202 Dec 17  2008 cpsrvd
    -rw-r--r--  1 root root  220 Sep  2 13:27 exim
    -rw-r--r--  1 root root  164 Jun  5  2008 exim-26
    -rw-r--r--  1 root root  162 Sep  2 13:27 ftpd
    -rw-r--r--  1 root root  280 Sep  2 13:27 httpd
    -rw-r--r--  1 root root  171 Sep  2 13:27 imap
    -rw-r--r--  1 root root   63 Sep  2 13:27 ipaliases
    -rw-r--r--  1 root root   48 Mar  6  2010 lfd
    -rw-r--r--  1 root root   59 Sep  2 13:27 mysql
    -rw-r--r--  1 root root   77 Sep  2 13:27 named
    -rw-r--r--  1 root root   52 Oct 22  2009 pop
    -rw-r--r--  1 root root   73 Dec 16  2009 queueprocd
    -rw-r--r--  1 root root   58 Sep  2 13:27 spamd
    -rw-r--r--  1 root root   55 Sep  2 13:27 sshd
    -rw-r--r--  1 root root   71 Sep  2 13:27 syslogd
    -rw-r--r--  1 root root   73 Oct 22  2009 tailwatchd
    Above is the example from a full cPanel server, not DNS-only. As you can see, there is a file for each service to be monitored. Based on your post, I would move the files for httpd, pop, imap and exim from /etc/chkserv.d to /root. Then, restart tailwatchd and watch the chkservd log to see if any services are still reported as down:

    # /scripts/restartsrv_tailwatchd & tail -f /var/log/chkservd.log
    tailwatchd is the parent of chkservd. chkservd is what actually checks the status of services and sends notifications if they are down. Restarting tailwatchd also restarts chkservd.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice