Documentation Sme8admin

Author : Landry Breuil
Creation date of this doc : 30/01/2006
Corresponding version of Sme8admin : 1.1.0-1
Sme6admin was tested with SME : 7b5, 7pre1

Why this contrib ? :
The aim is to see globally what happens on the server, without using the administrative ssh shell. The homepage of the contrib is in the SME server-manager, in the tab Sme8admin. This contrib is an evolution of sme6admin for SME7, and has been mostly rewritten.

Description of the different pages :

List of files installed/created by the RPM :
/etc/e-smith/events/actions/sme8admin-parselog
/etc/e-smith/events/logrotate/S15sme8admin-parselog
/etc/e-smith/web/functions/sme8admin
/etc/e-smith/web/panels/manager/cgi-bin/sme8admin
/etc/e-smith/web/panels/manager/html/sme8admin/sme8admin.conf
/etc/rc.d/init.d/sme8admind
/etc/rc.d/rc0.d/K03sme8admind
/etc/rc.d/rc1.d/K03sme8admind
/etc/rc.d/rc2.d/K03sme8admind
/etc/rc.d/rc3.d/S97sme8admind
/etc/rc.d/rc4.d/S97sme8admind
/etc/rc.d/rc5.d/S97sme8admind
/etc/rc.d/rc6.d/K03sme8admind
/etc/rc.d/rc7.d/S97sme8admind
/usr/bin/sme8admind
/usr/share/doc/smeserver-sme8admin-1.1.0/create_mysql.sh
/usr/share/doc/smeserver-sme8admin-1.1.0/create_rrd.sh
/usr/share/doc/smeserver-sme8admin-1.1.0/create_smedb.sh
/usr/share/doc/smeserver-sme8admin-1.1.0/sme8admin-doc-fr.html
/usr/share/doc/smeserver-sme8admin-1.1.0/sme8admin-doc-en.html
/usr/share/doc/smeserver-sme8admin-1.1.0/sme8admin-fr.po
/usr/share/doc/smeserver-sme8admin-1.1.0/sme8admin-en.po
/usr/share/doc/smeserver-sme8admin-1.1.0/tables.sql
/usr/share/locale/en/LC_MESSAGES/sme8admin.mo
/usr/share/locale/fr/LC_MESSAGES/sme8admin.mo

List of the directories used :

File/directoryContains
/var/log/sme8admin.logdaemon's trace and errors
/var/tmp/temporary logs'place.
/var/lib/sme8admin/RRDs files handling datas for the graphs.
/etc/e-smith/web/panels/manager/html/sme8admin/generated graphs and configuration file.

(The daemons puts all the graphs in a subdirectory of the server-manager, thus the panel is attainable through a SSH tunnel.)

A little more details :

The program runs as a daemon, to know if it runs :
service sme8admind status
If it is off, you can have a idea of its problem in the log file /var/log/sme8admin.log. If you encounter problems restarting it, execute rm -f /var/run/sme8admin.pid before retrying.
It is run at the boot of the server. On the logrotate event, the system sends a SIGUSR1 unix signal to force the daemon to parse the logs which will be archived.

Changelog :

* Web Feb 01 2006 : v1.1.0 - one year after last major release.
- Renamed to smeserver-sme8admin.
- Only compatible with SME 7 from now. (Only if a get a LOT of requests, i'll port the new functions to sme6admin.)
- Major global rewrite, a LOT of code cleaning.
- The settings are now in a configuration file.
- A LOT of things are now configurable (more setups are supported).
- Added SME7-specific services.
- Added a link to configure the bound in an alert e-mail.
- Added the output of 'netstat -tlp' and 'w' to the main page.

* Mon Oct 03 2005 : v1.0.5 by Cyril
- Correction of some bugs to run the daemon on sme7.
- A lot of things are buggy(events not correctly detected) on sme7.

* Tue Feb 01 2005 : v1.0.4
- Change to gettext for all the text outputs.
- English translation for the panel and the text of e-mails.
- File .po included for french and english language.

* Tue Sep 14 2004 : v1.0.3
- Added afp on the session graph.
- Modified the network traffic graphs.
- Modified the raw data write/read graph.
- Added network traffic (all but relayed) graph.
- Improvement of UI and short_status (easter-egg ;)).
- Corrected ftp anonymous client bug.
- Possibility to disable alerts.
- Clean /var/tmp on logrotate.

* Thu Aug 26 2004 : v1.0.2
- Compatibility with 5.6 Ok.
- Take care of US locale (0.0 => 0,0).
- Added temperature for second hard disk.
- Corrected bugs.
- Improvement of the postinstall and preuninstall scripts to enable rpm upgrade.

* Mon Aug 9 2004 : v1.0.1
- Added the configuration of delay between 2 status e-mails.
- Improvement of the compatibility with SME 5.6.

* Fri Aug 6 2004 : v1.0.0

All complaint, bug reports, requests, remarks, thanks are welcome at landry at firewall - services dot com, especially if the english translation of the doc/UI/howto is BAD. I NEED a feedback from the users to improve sme8admin. A big thanks goes to rv, who supported me during the creation of sme8admin, and Shad Lords for his sysmon, i've used some of his ideas.