[rrd-users] script to put png on webpage.
Zeeshan Ahmed
zeeshan at worldcall.net.pk
Mon Sep 23 17:19:18 MEST 2002
Dear all
I amusing a script to make cfg files for my cable modems as I have more then 10000 cable modems and I have to make graphs of all so I use a script which does three things
make cfg
make indexmaker page
and finally put an entry of that modem on webpage (index.html)
here is the script
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#!/bin/bash
mkdir -p /var/www/html/mrtg/$1
perl /usr/bin/cfgmaker public@$2 --global "workdir: /var/www/html/mrtg/$1" --gl
obal "Options[_]:bits,growright" --global "Options[_]:bits, nobanner" --output /
etc/mrtg/$1.cfg
perl /usr/bin/indexmaker /etc/mrtg/$1.cfg > /var/www/html/mrtg/$1/index.html
echo "/usr/bin/mrtg /etc/mrtg/$1.cfg;" >> /etc/mrtg/all-ip
#echo "<br><a href=$1/index.html*> Traffic on ports of Modem : MAC $1 </a>" >>
/var/www/html/mrtg/index.html
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Now what i want is that at the end of script when it put an entry on webpage it should also put the png of day of that modem on webpage
sp please help me. is urgent.
Regards
Zeeshan Ahmed
Network Engineer
Worldcall DOT COM
Lahore
Pakistan
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-users
mailing list