Hi there!
I wonder if there is a way to capture the text output from
Main >> Server Status >> Apache Status
to a text file upon a program trigger. Is there a way I could run the status command from the command line or a bash script?
Thanks!
Hi there!
I wonder if there is a way to capture the text output from
Main >> Server Status >> Apache Status
to a text file upon a program trigger. Is there a way I could run the status command from the command line or a bash script?
Thanks!
The Apache Status is essentially the same thing you get if you go to:
http://localhost/whm-server-status
You can adjust what addresses/hostnames are able to access that URL in the httpd.conf. But going to that URL on the local machine itself should be easy enough. IF you try to go to that URL from your home machine it obviously isn't going to work, and even if you use the main IP of the server in that URL it won't work by default because browsing that URL from a machine other than localhost is usually disabled by default.
You could use WGET to snatch that URL and put it in a file, i.e. wget http://localhost/whm-server-status , but it would contain HTML formatting that you might not want.
Mike
Hi there,
This is just what I was looking for!
Thanks,