BB Unix Network Monitor - Message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: {bb} No graph on STATS page
On Tue, Oct 26, 2004 at 05:34:38PM, Henrik Storner wrote:
> In <20041026171525.GD25341@qwestip.net> Asif Iqbal <iqbala-bb@qwestip.net> writes:
>
> >On Tue, Oct 26, 2004 at 06:07:12AM, Henrik Storner wrote:
> >> You need to tell the bb-hostsvc script that it should include a LARRD
> >> graph when building the"stats" webpage. Assuming you applied the bbgen
> >> "bbd-features" patch to your BB sources, edit the
> >> $BBHOME/src/dohostsvc.c file and add a line for "stats" to the
> >> "larrdsvcs" table at the beginning of the file. Do a a "make; make
>
> >I added this
>
> >{"stats", "stats", NULL},
>
> >on both
>
> "both" ?? There is only one table - the one that starts with
>
> static larrdsvc_t larrdsvcs[] = {
> {"cpu", "la", NULL},
> {"content", "http", NULL},
> {"http", "http", NULL},
> {"conn", "conn", NULL},
> ...
>
It shows up twice once between line 32 and 108 on
$BBHOME/src/dohostsvc.c file. (Total # of lines 657)
#ifdef LARRD
typedef struct {
char *bbsvcname;
char *larrdsvcname;
char *larrdpartname;
} larrdsvc_t;
static larrdsvc_t larrdsvcs[] = {
{"cpu", "la", NULL},
{"content", "http", NULL},
{"http", "http", NULL},
......
#endif
#ifdef LARRD
typedef struct {
char *bbsvcname;
char *larrdsvcname;
char *larrdpartname;
} larrdsvc_t;
static larrdsvc_t larrdsvcs[] = {
{"cpu", "la", NULL},
{"content", "http", NULL},
{"http", "http", NULL},
{"conn", "conn", NULL},
..........
#endif
> The "typedef struct ..." stuff - don't mess with that, it just
> defines the layout of the table, not the contents.
>
> So: Add the line you mention only once, around line 50 or so.
>
>
> Henrik
> --
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
> To unsubscribe from this list, or to subscribe to the bb-digest list
> send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
> subscribe bb-digest in the BODY of the message.
--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
"...it said: Install Windows XP or better...so I installed Solaris..."
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.
Home |
Main Index |
Thread Index