how to add https at chkservd

its_joe

Well-Known Member
Feb 15, 2007
134
0
166
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,
 

chrisedwards

Member
Jan 21, 2004
6
0
151
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.
 

its_joe

Well-Known Member
Feb 15, 2007
134
0
166
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.