import rrdtool as r
rrdfile = '/srv/www/admin/cacti-0.8.5a/rra/localhost_load_1min_5.rrd'
r.info(rrdfile)
import time
time.localtime(r.last(rrdfile))
time.localtime()
html_dir = '/home/oubiwann/public_html'
from os.path import basename, splitext
basename(rrdfile)
file_name = splitext(basename(rrdfile))[0]
img_format = 'PNG'
ext = img_format.lower()
file_name = '%s/%s.%s' % (html_dir, file_name, ext)


network = {}
autonsys = {}
protocol = {}
service = {}
tos = {}
router = []

