LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   Feedback/Feature Requests (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=10)
-   -   feature request: imitation of apache directive SetHandler server-status (http://www.litespeedtech.com/support/forum/showthread.php?t=5568)

aww 12-20-2011 08:10 AM

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

webizen 12-20-2011 10:51 AM

Real-Time Stats (Admin CP -> Actions)

aww 12-20-2011 10:54 AM

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.

webizen 12-20-2011 11:13 AM

http://www.litespeedtech.com/support...cti_monitoring

aww 12-20-2011 11:15 AM

Oh wow, never knew about that.

I really need to catch up on all the newer 4.x+ stuff.

eva2000 12-21-2011 12:01 AM

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 :)

NiteWave 12-21-2011 12:06 AM

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

eva2000 12-21-2011 12:08 AM

sweet thanks Gary for heads up

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

aww 12-23-2011 05:18 AM

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);



All times are GMT -7. The time now is 07:32 AM.