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.

how to add https at chkservd

Discussion in 'General Discussion' started by its_joe, Mar 7, 2007.

  1. its_joe

    its_joe Well-Known Member

    Joined:
    Feb 15, 2007
    Messages:
    134
    Likes Received:
    0
    Trophy Points:
    0
    HI,


    chkservd check all services every one minutes. but i it does not check https service.
    let me know how to add https service at chkservd as whm service manager do not provie option for it.
    i tried following things but it didnt work.
    cd /etc/chkserv.d
    cat httpd
    service[httpd]=80,GET / HTTP/1.0,HTTP/1..,/scripts/checkmaxclients;killall -TERM httpd;sleep 2;killall -9 httpd;/etc/rc.d/in
    i
    t.d/httpd stop;/etc/rc.d/init.d/httpd startssl;/usr/local/apache/bin/apachectl startssl;/etc/rc.d/init.d/httpdÂ*start;/usr/loa
    l/apache/bin/apachectl start

    vi https (copy above content in https file)

    service[httpd]=443,GET / HTTP/1.0,HTTP/1..,/scripts/checkmaxclients;killall -TERM httpd;sleep 2;killall -9 httpd;/etc/rc.d/in
    i
    t.d/httpd stop;/etc/rc.d/init.d/httpd startssl;/usr/local/apache/bin/apachectl startssl;/etc/rc.d/init.d/httpd start;/usr/loa
    l/apache/bin/apachectl start

    i changed port no only but it didnt work too.

    Thank you,
     
  2. chrisedwards

    chrisedwards Member

    Joined:
    Jan 21, 2004
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    I think you have to add an entry in the chkservd.conf file for https as well.
     
  3. fikse

    fikse Well-Known Member

    Joined:
    May 10, 2003
    Messages:
    112
    Likes Received:
    0
    Trophy Points:
    16
    in WHM, go to the service manager, then select the "Monitor" check box next to httpd.....
     
  4. its_joe

    its_joe Well-Known Member

    Joined:
    Feb 15, 2007
    Messages:
    134
    Likes Received:
    0
    Trophy Points:
    0
    chkservd.conf

    what is path of chkservd.conf?
     
  5. fikse

    fikse Well-Known Member

    Joined:
    May 10, 2003
    Messages:
    112
    Likes Received:
    0
    Trophy Points:
    16
  6. chrisedwards

    chrisedwards Member

    Joined:
    Jan 21, 2004
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    You can find files by either:

    1. locate chkservd.conf

    2. find / -name chkservd.conf

    3. whereis chkserv

    before you run locate, you might want to run (and wait until it finishes)

    updatedb&

    this will update the search database for locate.
     
  7. its_joe

    its_joe Well-Known Member

    Joined:
    Feb 15, 2007
    Messages:
    134
    Likes Received:
    0
    Trophy Points:
    0
    https

    Thank all,

    I got success to add https in chkservd

    1) cp httpd https
    cat https
    service[https]=443,GET / HTTP/1.0,HTTP/1..,/scripts/checkmaxclients;killall -TERM httpd;sleep 2;killall -9 httpd;/etc/rc.d/init.d/httpd stop;/etc/rc.d/init.d/httpd startssl;/usr/local/apache/bin/apachectl startssl;/etc/rc.d/init.d/httpd start;/scripts/restartsrv_httpd

    1 change httpd to https
    2 change 80 to 443
    3 change /usr/local/apache/bin/apachectl start to /scripts/restartsrv_httpd end of file

    3)vi chkservd.conf
    add
    https:1

    if i restart /etc/rc.d/init.d/chkservd restart
    it check https service and restart too.
    the only thing is if https down; chkservd is not checking it. i have to restart chkservd manually for it.

    Please let me know why is it not checking itself.
     
Loading...

Share This Page