| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: Uptime Statistics for ftn.rocasa.us |
On Sun, 16 Mar 2008 09:33:01 -0400, Robert Wolfe wrote in the STATS echo:
> R.J. Clay wrote to All:
>
> RJC> - Uptime for ftn.rocasa.us -
> RJC> Current : 2 day(s), 05:37:21 (hh:mm:ss)
> RJC> Highest : 42 day(s), 14:54:43 (hh:mm:ss)
> RJC> Second Highest: 35 day(s), 18:00:47 (hh:mm:ss)
> RJC> Third Highest : 26 day(s), 10:47:40 (hh:mm:ss)
> RJ, is this generated by a utility that you have for MBSE?
It's a combination of ud (uptime daemon; one of the ones available
in Debian), sed, & some scripting...
> If so, where can one pick up a copy?
Here's a basic script for it
--------------------------------------------------------
#!/bin/sh
# Post an Uptime Stats msg to stats echos
MBSE_ROOT=/opt/mbse
BINDIR=$MBSE_ROOT/bin
ADMDIR=$BINDIR/adm/stats/var
STATSMSG=$MBSE_ROOT/var/tmp/uptime-msg.txt
cd $BINDIR
# Create basic uptime stats message text
/usr/bin/ud -d | sed -f $ADMDIR/sed-ud.txt > $STATSMSG
# 135 = echomail stats
$BINDIR/mbmsg post All 135 "Uptime Statistics for ftn.rocasa.us"
$STATSMSG -
--------------------------------------------------------
Where sed-ud.txt is:
-------------------------------------------------
s/running/(hh:mm:ss)/g
s/Linux.*//g
1s/ftnus/ftn.rocasa.us/
2s/Now /Current /
3s/One /Highest /
4s/Two /Second Highest/
5s/Three/Third Highest /
-------------------------------------------------
Once you have the basic STATSMSG, you can then add whatever else you
like to the intended message before you post it to the echo...
> I am also looks for a decents
> stats generator util for MBSE that basically
> outputs a report of message flow, etc.
One thing I've thought of is using an html to text utility on, for
instance, stat/mgroup.html & use that as the basis of a stats message;
but I haven't gotten around to working on it as yet...
Jame
Robert James Clay
Sysop, 1:120/544{at}fidonet
--- MBSE BBS v0.92.0 (GNU/Linux-i386)
* Origin: Rocasa FTN (1:120/544{at}fidonet)SEEN-BY: 10/1 3 14/250 300 90/1 120/228 123/500 134/10 140/1 226/0 236/150 SEEN-BY: 249/303 250/1 261/20 38 100 1404 1406 1418 266/1413 320/119 393/68 SEEN-BY: 396/45 633/104 260 267 285 712/848 800/432 801/161 189 2222/700 SEEN-BY: 2320/100 200 2905/0 @PATH: 120/544 140/1 261/38 633/260 267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.