Blame contrib/mrtg_php_portal/readme.txt
Branch: c3848eabd7dc7b786d458435ee68c74e48db2982
Packit
667938
Mrtg PHP 'Portal'
Packit
667938
-----------------
Packit
667938
Packit
667938
Intro:
Packit
667938
I've made these quick hacks to provide a 'user-friendly' web interface for adding, removing and updating the mrtg polled hosts.
Packit
667938
The PHP scripts grab the parameters from html forms and run cfgmaker, indexmaker and mrtg with these parameters.
Packit
667938
Packit
667938
Requirement:
Packit
667938
Web server with PHP4
Packit
667938
Perl
Packit
667938
Packit
667938
Configuration of the script:
Packit
667938
Desarchive the mrtg_php_portal.zip file in your mrtg and put the perl script 'Update.pl' in the mrtg folder (e.g.: c:\mrtg), put the Php script config file 'config.inc.php' in the conf folder (e.g.: c:\mrtg\conf), put the 6 remaining php script in the www folder (e.g.: c:\mrtg\www).
Packit
667938
Summary of the script usage:
Packit
667938
- update.pl, this script takes all the .cfg file in conf and update the Mrtg stats for these configs. You can run this script with MrtgSvc or 5mrtg.
Packit
667938
- config.inc.php, this is the file were all paths and passwords for the script are configured.
Packit
667938
- index.php, this script generates a single index with a link to all the .html file located in e:\mrtgwww.
Packit
667938
- login.php, this script protect the admin section with a password configured in the config.inc.php file.
Packit
667938
- setup.php, this script generate the mrtg config file with cfgmaker, create a index file for the new host and run mrtg with the parameters from the form.
Packit
667938
- remove.php, this script delete the config file, html file and index file of a host that need to be removed.
Packit
667938
- admin.php, this script create a html page with the admin choice (add, remove, update).
Packit
667938
- Update.php, this script re-run mrtg for the selected host.
Packit
667938
Edit the config.inc.php and configure the path for the environment and configure the admin password also.
Packit
667938
Packit
667938
Packit
667938
Thanks:
Packit
667938
To 'Putzi' (he will recognize himself) for the help with Perl.
Packit
667938
Packit
667938
Contact:
Packit
667938
Damien Hauser
Packit
667938
damien@detonate.net