add tmpl
This commit is contained in:
21
htdocs/cgi-bin/details.pl
Executable file
21
htdocs/cgi-bin/details.pl
Executable file
@ -0,0 +1,21 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Template;
|
||||
use CGI;
|
||||
use CGI::Carp qw(fatalsToBrowser);
|
||||
|
||||
my $cgi = new CGI;
|
||||
my $var = {
|
||||
GRAPH => $cgi->param('graph')
|
||||
};
|
||||
|
||||
my $template = Template->new({
|
||||
INCLUDE_PATH => '/var/www/mrtg/tmpl',
|
||||
INTERPOLATE => 1,
|
||||
});
|
||||
|
||||
$|++;
|
||||
print $cgi->header();
|
||||
$template->process('details.tmpl',$var);
|
46
htdocs/cgi-bin/graph.pl
Executable file
46
htdocs/cgi-bin/graph.pl
Executable file
@ -0,0 +1,46 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use RRDs;
|
||||
use CGI;
|
||||
use CGI::Carp qw(fatalsToBrowser);
|
||||
|
||||
my $TMPLpath = "/var/www/mrtg/tmpl";
|
||||
|
||||
my $cgi = new CGI;
|
||||
my $graph = $cgi->param('graph') || $ARGV[0];
|
||||
|
||||
$|++;
|
||||
print $cgi->header(-type => "image/png") unless($ARGV[0]);
|
||||
|
||||
if($graph) {
|
||||
if(open(RRD,"<$TMPLpath/$graph.tmpl")) {
|
||||
my @rrd = <RRD>;
|
||||
close(RRD);
|
||||
chomp(@rrd);
|
||||
my @opts;
|
||||
|
||||
if($cgi->param('start')) {
|
||||
push @opts,"--start=" . $cgi->param('start');
|
||||
}
|
||||
if($cgi->param('end')) {
|
||||
push @opts,"--end=" . $cgi->param('end');
|
||||
}
|
||||
if($cgi->param('width')) {
|
||||
push @opts,"-w ".$cgi->param('width');
|
||||
}
|
||||
if($cgi->param('height')) {
|
||||
push @opts,"-h ".$cgi->param('height');
|
||||
}
|
||||
|
||||
push @opts,@rrd;
|
||||
if($ARGV[0]) {
|
||||
foreach (@rrd) {
|
||||
print $_ . "\n";
|
||||
}
|
||||
# exit;
|
||||
}
|
||||
RRDs::graph("-",@opts) or die(RRDs::error);
|
||||
}
|
||||
}
|
51
htdocs/crypto.html
Normal file
51
htdocs/crypto.html
Normal file
@ -0,0 +1,51 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>MRTG Index Page</TITLE>
|
||||
<meta http-equiv="content-type" content="text/html; charset=iso-8859-15" >
|
||||
<META HTTP-EQUIV="Refresh" CONTENT="600" >
|
||||
<META HTTP-EQUIV="Cache-Control" content="no-cache" >
|
||||
<META HTTP-EQUIV="Pragma" CONTENT="no-cache" >
|
||||
<LINK HREF="/cgi-bin/details.pl?graph=favicon.ico" rel="shortcut icon" >
|
||||
<LINK rel="stylesheet" type="text/css" HREF="style.css"/>
|
||||
</HEAD>
|
||||
|
||||
<BODY>
|
||||
<H1><a href="/">home</a> <a href="/lxc.html">lxc</a> <a href="/crypto.html">crypto</a> Crypto - Monitoring</H1>
|
||||
<DIV>
|
||||
|
||||
<DIV>
|
||||
<B>[Bitcoin (BTC)]</B><BR/>
|
||||
<A HREF="/cgi-bin/details.pl?graph=crypto-BTC"><IMG ALT="BTC-EUR" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=crypto-BTC"></A>
|
||||
</DIV>
|
||||
|
||||
<DIV>
|
||||
<B>[Etherium (ETH)]</B><BR/>
|
||||
<A HREF="/cgi-bin/details.pl?graph=crypto-ETH"><IMG ALT="ETH-EUR" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=crypto-ETH"></A>
|
||||
</DIV>
|
||||
|
||||
<DIV>
|
||||
<B>[Ripple (XRP)]</B><BR/>
|
||||
<A HREF="/cgi-bin/details.pl?graph=crypto-XRP"><IMG ALT="XRP-EUR" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=crypto-XRP"></A>
|
||||
</DIV>
|
||||
|
||||
|
||||
<DIV>
|
||||
<B>[EOS (EOS)]</B><BR/>
|
||||
<A HREF="/cgi-bin/details.pl?graph=crypto-EOS"><IMG ALT="EOS-EUR" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=crypto-EOS"></A>
|
||||
</DIV>
|
||||
|
||||
<DIV>
|
||||
<B>[Tezos (XTZ)]</B><BR/>
|
||||
<A HREF="/cgi-bin/details.pl?graph=crypto-XTZ"><IMG ALT="XTZ-EUR" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=crypto-XTZ"></A>
|
||||
</DIV>
|
||||
|
||||
<DIV>
|
||||
<B>[Stellar Lumens (XLM)]<BR/>
|
||||
<A HREF="/cgi-bin/details.pl?graph=crypto-XLM"><IMG ALT="XLM-EUR" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=crypto-XLM"></A>
|
||||
</DIV>
|
||||
|
||||
</DIV>
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
129
htdocs/lxc.html
Normal file
129
htdocs/lxc.html
Normal file
@ -0,0 +1,129 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>MRTG Index Page</TITLE>
|
||||
<meta http-equiv="content-type" content="text/html; charset=iso-8859-15" >
|
||||
<META HTTP-EQUIV="Refresh" CONTENT="600" >
|
||||
<META HTTP-EQUIV="Cache-Control" content="no-cache" >
|
||||
<META HTTP-EQUIV="Pragma" CONTENT="no-cache" >
|
||||
<LINK HREF="/cgi-bin/details.pl?graph=favicon.ico" rel="shortcut icon" >
|
||||
<LINK rel="stylesheet" type="text/css" HREF="style.css"/>
|
||||
</HEAD>
|
||||
|
||||
<BODY>
|
||||
<H1><a href="/">home</a> <a href="/lxc.html">lxc</a> <a href="/crypto.html">crypto</a> LXC - Monitoring</H1>
|
||||
<DIV>
|
||||
|
||||
<DIV>
|
||||
<B>[cloud]</B><BR/>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-cloud.net"><IMG ALT="lxc-cloud.net" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-cloud.net"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-cloud.cpu"><IMG ALT="lxc-cloud.cpu" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-cloud.cpu"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-cloud.memory"><IMG ALT="lxc-cloud.memory" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-cloud.memory"></A>
|
||||
</DIV>
|
||||
<DIV>
|
||||
<B>[db]</B><BR/>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-db.net"><IMG ALT="lxc-db.net" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-db.net"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-db.cpu"><IMG ALT="lxc-db.cpu" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-db.cpu"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-db.memory"><IMG ALT="lxc-db.memory" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-db.memory"></A>
|
||||
</DIV>
|
||||
<DIV>
|
||||
<B>[gitea]</B><BR/>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-gitea.net"><IMG ALT="lxc-gitea.net" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-gitea.net"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-gitea.cpu"><IMG ALT="lxc-gitea.cpu" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-gitea.cpu"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-gitea.memory"><IMG ALT="lxc-gitea.memory" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-gitea.memory"></A>
|
||||
</DIV>
|
||||
<DIV>
|
||||
<B>[home-assistant]</B><BR/>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-home-assistant.net"><IMG ALT="lxc-home-assistant.net" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-home-assistant.net"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-home-assistant.cpu"><IMG ALT="lxc-home-assistant.cpu" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-home-assistant.cpu"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-home-assistant.memory"><IMG ALT="lxc-home-assistant.memory" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-home-assistant.memory"></A>
|
||||
</DIV>
|
||||
<DIV>
|
||||
<B>[jitsi]</B><BR/>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-jitsi.net"><IMG ALT="lxc-jitsi.net" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-jitsi.net"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-jitsi.cpu"><IMG ALT="lxc-jitsi.cpu" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-jitsi.cpu"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-jitsi.memory"><IMG ALT="lxc-jitsi.memory" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-jitsi.memory"></A>
|
||||
</DIV>
|
||||
<DIV>
|
||||
<B>[mail]</B><BR/>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-mail.net"><IMG ALT="lxc-mail.net" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-mail.net"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-mail.cpu"><IMG ALT="lxc-mail.cpu" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-mail.cpu"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-mail.memory"><IMG ALT="lxc-mail.memory" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-mail.memory"></A>
|
||||
</DIV>
|
||||
<DIV>
|
||||
<B>[matrix]</B><BR/>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-matrix.net"><IMG ALT="lxc-matrix.net" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-matrix.net"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-matrix.cpu"><IMG ALT="lxc-matrix.cpu" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-matrix.cpu"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-matrix.memory"><IMG ALT="lxc-matrix.memory" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-matrix.memory"></A>
|
||||
</DIV>
|
||||
<DIV>
|
||||
<B>[motion]</B><BR/>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-motion.net"><IMG ALT="lxc-motion.net" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-motion.net"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-motion.cpu"><IMG ALT="lxc-motion.cpu" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-motion.cpu"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-motion.memory"><IMG ALT="lxc-motion.memory" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-motion.memory"></A>
|
||||
</DIV>
|
||||
<DIV>
|
||||
<B>[mqtt]</B><BR/>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-mqtt.net"><IMG ALT="lxc-mqtt.net" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-mqtt.net"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-mqtt.cpu"><IMG ALT="lxc-mqtt.cpu" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-mqtt.cpu"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-mqtt.memory"><IMG ALT="lxc-mqtt.memory" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-mqtt.memory"></A>
|
||||
</DIV>
|
||||
<DIV>
|
||||
<B>[mrtg]</B><BR/>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-mrtg.net"><IMG ALT="lxc-mrtg.net" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-mrtg.net"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-mrtg.cpu"><IMG ALT="lxc-mrtg.cpu" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-mrtg.cpu"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-mrtg.memory"><IMG ALT="lxc-mrtg.memory" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-mrtg.memory"></A>
|
||||
</DIV>
|
||||
<DIV>
|
||||
<B>[node-red]</B><BR/>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-node-red.net"><IMG ALT="lxc-node-red.net" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-node-red.net"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-node-red.cpu"><IMG ALT="lxc-node-red.cpu" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-node-red.cpu"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-node-red.memory"><IMG ALT="lxc-node-red.memory" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-node-red.memory"></A>
|
||||
</DIV>
|
||||
<DIV>
|
||||
<B>[pihole]</B><BR/>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-pihole.net"><IMG ALT="lxc-pihole.net" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-pihole.net"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-pihole.cpu"><IMG ALT="lxc-pihole.cpu" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-pihole.cpu"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-pihole.memory"><IMG ALT="lxc-pihole.memory" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-pihole.memory"></A>
|
||||
</DIV>
|
||||
<DIV>
|
||||
<B>[redis]</B><BR/>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-redis.net"><IMG ALT="lxc-redis.net" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-redis.net"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-redis.cpu"><IMG ALT="lxc-redis.cpu" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-redis.cpu"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-redis.memory"><IMG ALT="lxc-redis.memory" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-redis.memory"></A>
|
||||
</DIV>
|
||||
<DIV>
|
||||
<B>[traccar]</B><BR/>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-traccar.net"><IMG ALT="lxc-traccar.net" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-traccar.net"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-traccar.cpu"><IMG ALT="lxc-traccar.cpu" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-traccar.cpu"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-traccar.memory"><IMG ALT="lxc-traccar.memory" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-traccar.memory"></A>
|
||||
</DIV>
|
||||
<DIV>
|
||||
<B>[webmail]</B><BR/>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-webmail.net"><IMG ALT="lxc-webmail.net" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-webmail.net"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-webmail.cpu"><IMG ALT="lxc-webmail.cpu" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-webmail.cpu"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-webmail.memory"><IMG ALT="lxc-webmail.memory" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-webmail.memory"></A>
|
||||
</DIV>
|
||||
<DIV>
|
||||
<B>[wireguard]</B><BR/>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-wireguard.net"><IMG ALT="lxc-wireguard.net" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-wireguard.net"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-wireguard.cpu"><IMG ALT="lxc-wireguard.cpu" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-wireguard.cpu"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-wireguard.memory"><IMG ALT="lxc-wireguard.memory" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-wireguard.memory"></A>
|
||||
</DIV>
|
||||
<DIV>
|
||||
<B>[www]</B><BR/>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-www.net"><IMG ALT="lxc-www.net" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-www.net"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-www.cpu"><IMG ALT="lxc-www.cpu" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-www.cpu"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-www.memory"><IMG ALT="lxc-www.memory" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-www.memory"></A>
|
||||
</DIV>
|
||||
<DIV>
|
||||
<B>[www-familienhilfe-baeumler]</B><BR/>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-www-familienhilfe-baeumler.net"><IMG ALT="lxc-www-familienhilfe-baeumler.net" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-www-familienhilfe-baeumler.net"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-www-familienhilfe-baeumler.cpu"><IMG ALT="lxc-www-familienhilfe-baeumler.cpu" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-www-familienhilfe-baeumler.cpu"></A>
|
||||
<A HREF="/cgi-bin/details.pl?graph=lxc-www-familienhilfe-baeumler.memory"><IMG ALT="lxc-www-familienhilfe-baeumler.memory" SRC="/cgi-bin/graph.pl?width=540&height=200&graph=lxc-www-familienhilfe-baeumler.memory"></A>
|
||||
</DIV>
|
||||
|
||||
</DIV>
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
Reference in New Issue
Block a user