Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Jan 2005
    Posts
    20

    Default capture text to file: Server Status > Apache Status

    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!

  2. #2
    Member
    Join Date
    Sep 2004
    Location
    inside a catfish
    Posts
    963
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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

  3. #3
    Member
    Join Date
    Jan 2005
    Posts
    20

    Default Perfect

    Hi there,

    This is just what I was looking for!

    Thanks,

Similar Threads & Tags
Similar threads

  1. whm server status information file name
    By parag joshi in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 06-21-2010, 07:00 AM
  2. Apache Server Status
    By discovery in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 11-29-2009, 09:45 PM
  3. Server status /Apache Status Faild to eaceive...
    By pecito in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 06-15-2008, 08:02 PM
  4. File does not exist: /usr/local/apache/htdocs/whm-server-status
    By linux4me in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 11-14-2007, 01:11 PM
  5. Apache Server Status
    By bihweb in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 06-02-2005, 11:11 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube