LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Feedback/Feature Requests > feature request: imitation of apache directive SetHandler server-status

Reply
 
Thread Tools Display Modes
  #1  
Old 12-20-2011, 08:10 AM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
Default feature request: imitation of apache directive SetHandler server-status

It would be interesting if litespeed could support the apache directive

SetHandler server-status

to get a little text based status report for the server and currently open connections.

Obviously low priority but just an idea for one more bit of apache compatibility.

I should point out apache also has two options that are handy
server-status?notable
server-status?auto

I think it all comes from mod_status

Last edited by aww; 12-20-2011 at 08:35 AM..
Reply With Quote
  #2  
Old 12-20-2011, 10:51 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
Real-Time Stats (Admin CP -> Actions)
Reply With Quote
  #3  
Old 12-20-2011, 10:54 AM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
Yes I am aware of that feature but in some situations I want to give others access to the activity without admin access to the server.

This way I just pw protect the directory and give them access that way.

Maybe the stats could be accessed via some kind of api.
Reply With Quote
  #4  
Old 12-20-2011, 11:13 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
http://www.litespeedtech.com/support...cti_monitoring
Reply With Quote
  #5  
Old 12-20-2011, 11:15 AM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
Oh wow, never knew about that.

I really need to catch up on all the newer 4.x+ stuff.
Reply With Quote
  #6  
Old 12-21-2011, 12:01 AM
eva2000 eva2000 is offline
Senior Member
 
Join Date: Dec 2004
Location: Brisbane, Australia
Posts: 142
cacti method is pretty old, didn't really get it working myself but you can also grab info from .rtreports http://www.litespeedtech.com/support...ead.php?t=5560
Reply With Quote
  #7  
Old 12-21-2011, 12:06 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
rrdgraph just out from 4.1.9 --- http://www.litespeedtech.com/support...aph_monitoring

it's the initial version and will improve later per user's feedback
Reply With Quote
  #8  
Old 12-21-2011, 12:08 AM
eva2000 eva2000 is offline
Senior Member
 
Join Date: Dec 2004
Location: Brisbane, Australia
Posts: 142
sweet thanks Gary for heads up

looks like whm/cpanel rrdtool path is different http://www.litespeedtech.com/support...1188#post31188

Last edited by eva2000; 12-21-2011 at 12:42 AM..
Reply With Quote
  #9  
Old 12-23-2011, 05:18 AM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
Ah I see what it does http://localhost:7080/status?rpt=summary

Except we don't run admin panel on standard port and use SSL

You'll have to allow config somewhere for other advanced users, and I recommend a curl option with -k to ignore certificate.

Basically I can use that exactly like the apache server-status handler

Keep up the great work!

Code:
$url='http://localhost:7080/status?rpt=summary';
$ch=curl_init($url);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
$results = curl_exec($ch);
curl_close($ch);

Last edited by aww; 12-23-2011 at 05:39 AM..
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:16 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.