LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-13-2007, 09:35 AM   #1
ittec
LQ Newbie
 
Registered: Nov 2007
Posts: 15

Rep: Reputation: 0
Httpd status


Hi

i revised a httpd.conf of one server to activate the statistics of apache. If can view the statisctics by browser like http://X.X.X.X/httpd-status but i need to see them in shell. If i write

# httpd status

i don't obtain nothing. If i write

# service httpd status

The shell output is a large number of PIDs. What I can do to view httpd status statistics from shell? Something like this:

CPU Usage: u6047.55 s364.33 cu121.44 cs19.23 - 29.3% CPU load
25.5 requests/sec - 0.7 MB/second - 28.6 kB/request
130 requests currently being processed, 63 idle servers

Thanks
 
Old 12-13-2007, 03:50 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
how about
Code:
wget -o - http://localhost/httpd-status
This uses the html output provided by the web server, but fetches it locally and dumps it to standard output. If you need to clean it up a bit, parse it with perl using HTML::Parser.

--- rod.
 
Old 12-14-2007, 06:23 AM   #3
ittec
LQ Newbie
 
Registered: Nov 2007
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks but

Thanks for your answer but i think doesnt work. I did

wget -otemporaly http://mydomain.com/httpd-status

But temporaly file only contains the output of wget command, not output of httpd-status

Any idea?

At least i can revise httpd-status by web.
 
Old 12-14-2007, 09:07 AM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
My bad. The switch to specify the output file is '-O' (uppercase Oh), not -o. Like you, I should have done 'man wget' to get the correct commandline. At any rate, the actual HTML output from the command will still have been saved to a file named by your commandline URL, probably 'httpd-status.html'. The file name used should be indicated in the file containing wget's output.
--- rod.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting httpd: httpd: Syntax error on line 209 of /etc/httpd/conf/httpd.conf: Syntax sethukpathi Linux - Networking 6 04-12-2008 11:26 AM
Failed to start apache :Starting httpd: Syntax error on line 1027 of /etc/httpd/conf/ payjoe Linux - Newbie 3 09-21-2007 07:24 AM
Installing RedHat 8.0 onto Dell PowerEdge SC1425 - hdc: status error: status = 0x58 fishsponge Linux - General 0 07-11-2006 09:02 AM
service httpd status shows some error doc too anjanesh Linux - General 8 05-23-2006 11:15 AM
service httpd status, results in httpd dead but subsys locked squadja Red Hat 2 09-11-2004 10:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration