Hi John, I use 14all.cgi too.
Use
$cfgfile = '';
$cfgfiledir='/home/mrtg/config'
It's more simple way.
Change de name to script for each conf file.
cd /var/www/mrtg
cp 14all.cgi router1.cgi
cp 14all.cgi router2.cgi
Bye
El 15/09/2011 3:58, John Young escribió:
I'm trying to setup a new MRTG server using RRD with the 14all.cgi
script. What do I need to add to the 14all.cgi script so I can use
more than one config file? Currently it's pointing to the only cfg
file I have in the mrtg-rrd.conf file.
I need it changed so I can point to different config files:
http://test.com/cgi-bin/14all.cgi?cfg=router2.cfg
http://test.com/cgi-bin/14all.cgi?cfg=router1.cfg
I saw there was a way to change the $cfgfiledir = '/home/mrtg/config';
in the 14all.cgi file however I cannot find this at all. Also will I
need to change the .conf file?
Does anyone have advice or an example .cgi file I can look at?
Cheers,
_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
--
Antonio Casado Rodríguez
Área de Comunicaciones
STIC (Servicio de las Tecnologías de la Información y las Comunicaciones)
UNIVERSIDAD DE ALMERÍA
Este mensaje y los ficheros que puedan ser adjuntados son confidenciales. Los
mismos contienen información reservada que no puede ser difundida. Si usted ha
recibido este correo por error, tenga la amabilidad de eliminarlo de su sistema
y avisar al remitente mediante reenvío a su dirección electrónica; no deberá
copiar el mensaje ni divulgar su contenido a ninguna persona. Su dirección de
correo electrónico junto a sus datos personales constan en un fichero
titularidad de La UNIVERSIDAD DE ALMERÍA cuya finalidad es la de mantener el
contacto con usted.
Si quiere saber de qué información disponemos de usted, modificarla, y en su
caso, cancelarla, puede hacerlo enviando un escrito al efecto, acompañado de
una fotocopia de su D.N.I. a la siguiente dirección: UNIVERSIDAD DE ALMERÍA --.
Secretaría General de La Universidad de Almería. Edificio Central, Planta baja.
Ctra. Sacramento s/n, La Cañada de San Urbano. CP 04120 Almería
_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg