Koozali.org: home of the SME Server

Adding a Left Side Console link

Richard Emory

Adding a Left Side Console link
« on: October 24, 2001, 01:20:01 AM »
Originally I wanted to create a Left Side Link called "Server Statistics". I was going to create a direct link to the installed e-smith-phpSysInfo contrib RPM (from ftp://ftp.e-smith.org/pub/e-smith/contrib/charlieb/) so that I get a nice graphical display of lots of information, including disk usage and memory stats.

I copied "online-manual" in the /etc/e-smith/web/functions directory to "serverstats"

I modified the header to:

#----------------------------------------------------------------------
# heading : Administration
# description : Server Statistics
# navigation : 4000 4325
#

And modified the footer to:

#------------------------------------------------------------
# subroutine to display initial form
#------------------------------------------------------------

sub showInitial ($)
{
my ($q) = @_;

esmith::cgi::genHeaderNonCacheable ($q, \%conf, 'Server Statistics');

print $q->p (
'Ckick on the following lonk to see your current E-Smith server',
'disk usage, memory usage and other information:',
);

print $q->p (
'',
'Server Statistics
',
);

esmith::cgi::genFooter ($q);
}

1) I cannot get the menu to show up and,

2) I would rather create a direct link from the left side to the right side something like this:
Server Statistics

I have read the following:
http://www.e-smith.org/docs/howto/building-contribs.php3#AEN161
and it does not seem to help.

also owner of "online-manual" is admin while owner of "serverstats" is root.
Does this matter and how can I change it to admin?

Thanks
Richard Emory