Help - Search - Members - Calendar
Full Version: HOWTO add ChiliSoft Service Status To The Server Status List!
The Planet Forums > Control Panels > cPanel/WHM > Cpanel/WHM HOWTOs
aussie
This addition will monitor ChiliSoft on your server to make sure its up and running. If ChiliSoft goes down for any reason you will receive an email telling you about it and the service will attempt to restart ChiliSoft.

SSH to your box, you are using SSH and not telnet aren't you?

Make sure Chilisoft is running on your box. If its not, do not install this otherwise you will get the dreaded RED indicator.

Execute the following. Just copy and paste these commands to your command line and hit ENTER.

cd /usr/local/apache/htdocs
touch ASPup.asp
pico ASPup.asp
Copy the code below, into this asp file;



ASP Up stats last refreshed on <%= Now() %>.



Cntl-X and save. This is just a little ASP script that will be used to check for the existance of ASP and that it is indeed running on your server. It does nothing otherwise. If you copy it to one of your websites running Chili you will see a display something like this when its run;

ASP Up stats last refreshed on 8/30/2003 6:02:29 PM. icon_smile.gif

Execute the following. Just copy and paste these commands to your command line and hit ENTER.

cd /etc/chkserv.d
touch chilisoft
pico or vi chilisoft

Copy the following two lines into your file;

#SERVICE = PORT, SEND, RESPONSE, RESTART COMMAND

service[ChiliSoft_ASP]=80,GET /ASPup.asp HTTP/1.0,HTTP/1.1 200 OK.,/usr/local/chili/asp-server-3000/caspctrl
-stopall;/usr/local/chili/asp-server-3000/caspctrl -startall

NOTE: If your version of Chilisoft is installed in /opt/casp then you will need to modify the path above to reflect the proper path. My installed version of Chili is in /usr/local/etc.

Make sure you only have two lines and not 3. These lines should not be broken up.

Save, cntrl-x

Restart Check server

/etc/init.d/chkservd restart

Check the status of Chilisoft. It should be green and display a status of "UP"

Enjoy!
Bubble
do you have a HOW-TO install Chilisoft?
aussie
Search is your friend!
solokron
Hello Aussie,

This appears to longer function in the latest cPanel builds. I have the service working wonderfully with 4.02 but the chkservd keeps axing it as if it is not active.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.