| Author |
Message |
|
| Guest |
Posted: Mon Jul 12, 2010 3:12 pm |
|
|
|
Guest
|
|
| Back to top |
|
| Guest |
Posted: Mon Jul 12, 2010 5:28 pm |
|
|
|
Guest
|
On Mon, Jul 12, 2010 at 11:11 AM, Alexandre Biancalana
<biancalana@gmail.com> wrote:
> Hi list,
>
> |
|
|
| Back to top |
|
| Guest |
Posted: Mon Jul 12, 2010 6:53 pm |
|
|
|
Guest
|
On Mon, Jul 12, 2010 at 2:27 PM, Steve Vinoski <vinoski@ieee.org> wrote:
> On Mon, Jul 12, 2010 at 11:11 AM, Alexandre Biancalana
> <biancalana@gmail.com> wrote:
>> Hi list,
>>
>> |
|
|
| Back to top |
|
| Guest |
Posted: Mon Jul 12, 2010 7:06 pm |
|
|
|
Guest
|
On 12/07/10 19:27, Steve Vinoski wrote:
> On Mon, Jul 12, 2010 at 11:11 AM, Alexandre Biancalana
> <biancalana@gmail.com> wrote:
>> Hi list,
>>
>> Is there any module or something to yaws that give information like
>> apache mod_status ?
>
> There's a configuration setting for virtual servers named "statistics"
> that you can set to true to gather statistics for that server. You
> then run "yaws --stats" from the command line to see the stats. See
> also the file munin/README.munin in the source code to see how to make
> use of the data.
There is also this old module, stats.yaws that's been lying around
for quite some time. I can't find it in the git repo though - unclear
why it's gone - maybe superseded by yaws --stats, I don't know.
The heart is yaws_server:stats() which can be used in various ways.
# cat /usr/local/var/yaws/www/stats.yaws
<erl>
out(A) ->
yaws_api:ssi(A#arg.docroot, ["/HEAD", "/TOPTAB"]).
</erl>
<erl>
out(A) ->
{UpTime, L} = yaws_server:stats(),
{Days, {Hours, Minutes, Secs}} = UpTime,
H = f("<html> ~n <h4>Uptime: ~w Days, ~w Hours, ~w Minutes </h4> ~n",
[Days, Hours, Minutes]),
T =lists:map(
fun({Host,IP,Hits}) ->
L1= f("<hr \><h3> stats for ~p at ~p </h3>~n",
[Host,IP]),
T = "<table border=\"2\" > \n"
"<TR> <TH>URL</TH> <TH>Number of hits</TH> </TR>",
{L2, Total}=lists:mapfoldl(
fun({Url, Hits}, Sum) ->
{f("<TR> <TD>~s</TD> <TD>~w</TD> </TR>~n",
[Url, Hits]), Sum + Hits}
end, 0, Hits),
END = f("<TR><TH>Total</TH><TH>~w</TH><TR></table>", [Total]),
[L1, T, L2, END]
end, L),
{html, [H, T]}.
</erl>
<hr \>
</td>
</table>
</html>
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Mon Jul 12, 2010 7:09 pm |
|
|
|
Guest
|
On 12/07/10 20:52, Alexandre Biancalana wrote:
> # yaws --stats
> You failed to read the ctlfile /root/.yaws/yaws/default/CTL
> error was:<enoent>
> specify by<-I id> which yaws system you want to control
There can be several yaws nodes running on the same host
and under different users.
the error above, indicates that root is not running any
yaws servers with id=default, try
# yaws --ls
The file $HOME/.yaws is used to hold info on which
socket to connect to in order to control yaws - for that user.
/klacke
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Mon Jul 12, 2010 7:29 pm |
|
|
|
Guest
|
On Mon, Jul 12, 2010 at 4:08 PM, Claes Wikstrom <klacke@tail-f.com> wrote:
> On 12/07/10 20:52, Alexandre Biancalana wrote:
>
>> # yaws --stats
>> You failed to read the ctlfile /root/.yaws/yaws/default/CTL
>> error was:<enoent>
>> specify by<-I id> |
|
|
| Back to top |
|
| Guest |
Posted: Mon Jul 12, 2010 7:37 pm |
|
|
|
Guest
|
On 12/07/10 21:28, Alexandre Biancalana wrote:
> On Mon, Jul 12, 2010 at 4:08 PM, Claes Wikstrom<klacke@tail-f.com> wrote:
>> On 12/07/10 20:52, Alexandre Biancalana wrote:
>>
>>> # yaws --stats
>>> You failed to read the ctlfile /root/.yaws/yaws/default/CTL
>>> error was:<enoent>
>>> specify by<-I id> which yaws system you want to control
>>
>> There can be several yaws nodes running on the same host
>> and under different users.
>>
>> the error above, indicates that root is not running any
>> yaws servers with id=default, try
>>
>> # yaws --ls
>>
>>
>> The file $HOME/.yaws is used to hold info on which
>> socket to connect to in order to control yaws - for that user.
>>
>
> I'm starting my application with user root. The directory
> /root/.yaws/yaws/default is created but is empty.
>
> The command yaws -ls returns nothing.
>
> # yaws -ls
> Id Status Owner
> -------------------------------------
>
Maybe some sudo issue, you're root but $HOME is not
set accordingly
[klacke@kisel]~ > sudo echo $HOME
/home/klacke
[klacke@kisel]~ > sudo -s -H 'echo $HOME'
/root
The above is an indication of that
/klacke
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Mon Jul 12, 2010 7:39 pm |
|
|
|
Guest
|
>
> Maybe some sudo issue, you're root but $HOME is not
> set accordingly
>
>
> [klacke@kisel]~ > sudo echo $HOME
> /home/klacke
> [klacke@kisel]~ > sudo -s -H 'echo $HOME'
> /root
>
> The above is an indication of that
>
>
> /klacke
>
I'm not using sudo...
# echo $HOME
/root
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Mon Jul 12, 2010 7:53 pm |
|
|
|
Guest
|
On 12/07/10 21:38, Alexandre Biancalana wrote:
>>
>> Maybe some sudo issue, you're root but $HOME is not
>> set accordingly
>>
>>
>> [klacke@kisel]~> sudo echo $HOME
>> /home/klacke
>> [klacke@kisel]~> sudo -s -H 'echo $HOME'
>> /root
>>
>> The above is an indication of that
>>
>>
>> /klacke
>>
>
> I'm not using sudo...
>
> # echo $HOME
> /root
>
Uhhh - I'm forgetting how my own webserver works - slap on forehead.
In embedded mode - all the yaws ctl functions are disabled. The idea
being that if yaws runs in embedded mode, the surrounding app has it's
own ctl stop,start,stats functions.
Typically, if you embed yaws, you don't want it to write random files
in $HOME. I guess it would be easy to circumvent this though if the yaws ctl
functions really is what you want for for your app.
/klacke
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Mon Jul 12, 2010 8:10 pm |
|
|
|
Guest
|
Copying the list...
On Mon, Jul 12, 2010 at 4:52 PM, Claes Wikstrom <klacke@tail-f.com> wrote:
> On 12/07/10 21:38, Alexandre Biancalana wrote:
>>>
>>> Maybe some sudo issue, you're root but $HOME is not
>>> set accordingly
>>>
>>>
>>> [klacke@kisel]~> |
|
|
| Back to top |
|
| wuji |
Posted: Fri Aug 24, 2012 6:31 am |
|
|
|
User
Joined: 10 Aug 2012
Posts: 654
|
bariatric surgeon at Lenox Hill Hospital in New York."That being being cheap polo shirts being said, clinically I have seen people with bipolar disorder
cyclothymia go through manic episodes following surgery," said Roslin. "This "This knockoff designer *beep* "This can be seen with shopping sprees, divorces, high-risk sexual
and other behaviors. Rather than cause, the weight loss unmasks unmasks [h3]buy real jordans[/h3] unmasks the psychological illness that was long standing and probably
expressed by the depressed side, more than the manic side."However, side."However, cheap replica *beep* side."However, bypass surgery can change absorption of medications, and patients
mood stabilizers need to be monitored carefully, according to Roslin.Bipolar Roslin.Bipolar [h3]cheap polo shirts[/h3] Roslin.Bipolar disorder can cause dramatic mood swings from highs to |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|