stats draft

Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
Skylar "The Cobra" Widulski 2022-11-15 19:11:06 -05:00
parent f958091705
commit 53e0c410fd
Signed by: cobra
GPG Key ID: 4FD8F812083FF6F9
2 changed files with 35 additions and 0 deletions

1
gnuplot Symbolic link
View File

@ -0,0 +1 @@
/opt/gnuplot

34
stats.php Normal file
View File

@ -0,0 +1,34 @@
<!DOCTYPE html>
<!--
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<meta name="description" content="Statistics of ~vern">
<link rel="stylesheet" href="/style.css">
<title>Statistics | ~vern</title>
</head>
<body>
<!--#include file="nav.html" -->
<div class=h><h1 id=stats>Statistics</h1> <a aria-hidden=true href=#stats>#stats</a></div>
<p>Below are several graphs for network and power usage for many of our servers.</p>
<div class=h><h2 id=tilserv>Tildeserver</h2> <a aria-hidden=true href=#tilserv>#tilserv</a></div>
<svg><?php echo file_get_contents("./gnuplot/net/" . date("Y-m-d") . ".svg"); ?></svg>
<svg><?php echo file_get_contents("./gnuplot/power/" . date("Y-m-d") . ".svg"); ?></svg>
<div class=h><h2 id=typhoon>Typhoon</h2> <a aria-hidden=true href=#typhoon>#typhoon</a></div>
<svg><?php echo file_get_contents("./gnuplot/typhoon/" . date("Y-m-d") . ".svg"); ?></svg>
<div class=h><h2 id=iceberg>Iceberg</h2> <a aria-hidden=true href=#iceberg>#iceberg</a></div>
<svg><?php echo file_get_contents("./gnuplot/iceberg/" . date("Y-m-d") . ".svg"); ?></svg>
<!--#include file="footer.html" -->
</body>
</html>