Debian Codegraph @

contrib/mrtg_php_portal/readme.txt

raw
1 Mrtg PHP 'Portal'
2 -----------------
3
4 Intro:
5 I've made these quick hacks to provide a 'user-friendly' web interface for adding, removing and updating the mrtg polled hosts.
6 The PHP scripts grab the parameters from html forms and run cfgmaker, indexmaker and mrtg with these parameters.
7
8 Requirement:
9 Web server with PHP4
10 Perl
11
12 Configuration of the script:
13 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).
14 Summary of the script usage:
15 - 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.
16 - config.inc.php, this is the file were all paths and passwords for the script are configured.
17 - index.php, this script generates a single index with a link to all the .html file located in e:\mrtgwww.
18 - login.php, this script protect the admin section with a password configured in the config.inc.php file.
19 - 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.
20 - remove.php, this script delete the config file, html file and index file of a host that need to be removed.
21 - admin.php, this script create a html page with the admin choice (add, remove, update).
22 - Update.php, this script re-run mrtg for the selected host.
23 Edit the config.inc.php and configure the path for the environment and configure the admin password also.
24
25
26 Thanks:
27 To 'Putzi' (he will recognize himself) for the help with Perl.
28
29 Contact:
30 Damien Hauser
31 [email protected]