Bon, je reviens d�ja avec MRTG (m�me si je sais que cricket � l'air mieux :-))
Vu que j'ai plusieurs Catalyst, l'id�e est de faire cel� bien propre. Pour le script qui va piocher dans les Cisco, j'ai plusieurs fichiers mrtg.cfg plac�s dans /etc/mrtg/ip_du_cisco/mrtg.cfg Le r�sultat de ce piochage est split� dans plusieurs r�pertoires (/var/www/html/ip_du_cisco/) Comment automatiquement cr�er un fichier index.html qui serait plac� dans /var/www/html/ ? Y a t'il un script de disponible? Indexmaker? Je ne sais comment l'invoquer :-( Je l'invoquerais � la fin de mon script "cron) getcisco.sh :-) Merci, NDV [root@mrtg-www html]# pwd /var/www/html [root@mrtg-www html]# ls -l total 84 drwxr-xr-x 2 root root 8192 Feb 13 14:00 192.168.10.231 drwxr-xr-x 2 root root 8192 Feb 13 14:00 192.168.10.232 drwxr-xr-x 2 root root 8192 Feb 13 14:00 192.168.10.233 drwxr-xr-x 2 root root 4096 Feb 13 14:00 192.168.10.234 drwxr-xr-x 2 root root 8192 Feb 13 14:00 192.168.10.235 drwxr-xr-x 2 root root 8192 Feb 13 14:00 192.168.10.236 drwxr-xr-x 2 root root 8192 Feb 13 14:00 192.168.10.237 drwxr-xr-x 2 root root 8192 Feb 13 14:00 192.168.10.238 drwxr-xr-x 2 root root 8192 Feb 13 14:00 192.168.10.239 drwxr-xr-x 2 root root 4096 Feb 11 16:55 mrtg drwxr-xr-x 2 root root 8192 Feb 13 13:06 stats [root@mrtg-www html]# [root@mrtg-www html]# cd /etc/mrtg/ [root@mrtg-www mrtg]# ls -l total 40 drwxr-xr-x 2 root root 4096 Feb 13 14:00 192.168.10.231 drwxr-xr-x 2 root root 4096 Feb 13 14:00 192.168.10.232 drwxr-xr-x 2 root root 4096 Feb 13 14:00 192.168.10.233 drwxr-xr-x 2 root root 4096 Feb 13 14:00 192.168.10.234 drwxr-xr-x 2 root root 4096 Feb 13 14:00 192.168.10.235 drwxr-xr-x 2 root root 4096 Feb 13 14:00 192.168.10.236 drwxr-xr-x 2 root root 4096 Feb 13 14:00 192.168.10.237 drwxr-xr-x 2 root root 4096 Feb 13 14:00 192.168.10.238 drwxr-xr-x 2 root root 4096 Feb 13 14:00 192.168.10.239 -rwxr--r-- 1 root root 333 Feb 13 13:37 getcisco.sh -rw-r--r-- 1 root root 0 Feb 13 14:00 mrtg.cfg_l [root@mrtg-www mrtg]# pwd /etc/mrtg [root@mrtg-www mrtg]# cd 192.168.10.231/ [root@mrtg-www 192.168.10.231]# ls -l total 44 -rw-r--r-- 1 root root 42196 Feb 13 13:30 mrtg.cfg -rw-r--r-- 1 root root 0 Feb 13 14:00 mrtg.ok [root@mrtg-www 192.168.10.231]# _______________________________________________________ Linux Mailing List - http://www.unixtech.be Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux Archives: http://www.mail-archive.com/[email protected] IRC: efnet.unixtech.be:6667 - #unixtech

