#!/usr/bin/env perl use warnings; use diagnostics; use lib "../../lib"; use HotSaNICparser; # read global settings # $MODNAME=lc HotSaNICparser::get_module_name(); %CONFIG=HotSaNICparser::get_config("../.."); $IMAGEFORMAT=$CONFIG{"IMAGEFORMAT"}; $REFRESH=$CONFIG{"REFRESH"}; $REFRESH=0 if !defined $REFRESH; # read module-specific settings # undef %DEVS; foreach (HotSaNICparser::read_settings(".")) { ($var,$value)=HotSaNICparser::parse_line($_); if ($var eq "IP") { ($ip,$oid,$name)=split(/,/,$value); $DEVS{$ip}=$name; } } @DIAGRAMS=("hour","6h","day","week","month","year"); # build time-based .html files # foreach $time ("6h","week") { open (FILE,">index/$time.html"); print FILE "\n"; if ($REFRESH > 0) { print FILE " \n"; } print FILE "
\n",$dev,"",$name," |
hotsanic |
Subversion Repositories: |
Line No. | Rev | Author | Line |
---|