]> git.ais-ucla.org Git - stats.ais-ucla.org.git/commitdiff
index.css
authorChristopher Milan <chrismilan@ucla.edu>
Mon, 17 Mar 2025 05:12:59 +0000 (22:12 -0700)
committerChristopher Milan <chrismilan@ucla.edu>
Mon, 17 Mar 2025 05:19:40 +0000 (22:19 -0700)
blk.cgi
cpu.cgi
dsk.cgi
gpu.cgi
index.css [new file with mode: 0644]
index.html
leader.cgi
mem.cgi

diff --git a/blk.cgi b/blk.cgi
index a244644af0eb7218993d3d66662b162a055f6832..d6c76e83fc6162145420ad3c2a93e79499e35c4e 100755 (executable)
--- a/blk.cgi
+++ b/blk.cgi
@@ -1,8 +1,11 @@
 #!/usr/bin/rrdcgi
 <RRD::SETENV TZ America/Los_Angeles>
 <html>
-<head><title>Cluster Block Device Report</title></head>
-<body style="background-image: url('/bg.gif')">
+<head>
+<title>Cluster Block Device Report</title>
+<link rel="stylesheet" href="/index.css">
+</head>
+<body>
 <h1>Cluster Block Device Report</h1>
   <RRD::GRAPH blk1h.png --title="IO Metrics, Last Hour"
   -s -1hr -w 640 -h 240 -S 120s -z -b 1024
@@ -32,7 +35,7 @@
   LINE2:yw#66CC00:"Ynez Write    " GPRINT:curyw:"%4.0lf %sB/s" GPRINT:avgyw:"%4.0lf %sB/s" GPRINT:maxyw:"%4.0lf %sB/s\l"
   LINE2:sr#6600CC:"Serrano Read  " GPRINT:cursr:"%4.0lf %sB/s" GPRINT:avgsr:"%4.0lf %sB/s" GPRINT:maxsr:"%4.0lf %sB/s"
   LINE2:sw#6600CC:"Serrano Write " GPRINT:cursw:"%4.0lf %sB/s" GPRINT:avgsw:"%4.0lf %sB/s" GPRINT:maxsw:"%4.0lf %sB/s\l">
-<footer style="text-align:center">
+<footer>
 <hr />
 <a href="https://acme.com/software/thttpd/"><img src="/badges/thttpd.gif" alt="powered by thttpd" height="31" width="88"></a>
 <a href="https://www.freebsd.org/"><img src="/badges/freebsd.gif" alt="powered by FreeBSD" height="31" width="88"></a>
diff --git a/cpu.cgi b/cpu.cgi
index 570f4ba4687ec9e7c99333bca7e222f6d2e6131c..89a98486f86797ff7b82a622c440447a34cf66a4 100755 (executable)
--- a/cpu.cgi
+++ b/cpu.cgi
@@ -1,8 +1,11 @@
 #!/usr/bin/rrdcgi
 <RRD::SETENV TZ America/Los_Angeles>
 <html>
-<head><title>Cluster CPU Report</title></head>
-<body style="background-image: url('/bg.gif')">
+<head>
+<title>Cluster CPU Report</title>
+<link rel="stylesheet" href="/index.css">
+</head>
+<body>
 <h1>Cluster CPU Report</h1>
 <RRD::GRAPH cpu1h.png --title="CPU Utilization, Last Hour"
   -s -1hr -w 480 -h 240 -S 120s -z
@@ -85,7 +88,7 @@
   COMMENT:"  TEMESCAL  (tot)" GPRINT:curt:"%7.2lf %%" GPRINT:avgt:"%7.2lf %%" GPRINT:maxt:"%7.2lf %%"
   COMMENT:"  YNEZ      (tot)" GPRINT:cury:"%7.2lf %%" GPRINT:avgy:"%7.2lf %%" GPRINT:maxy:"%7.2lf %%"
   COMMENT:"  SERRANO   (tot)" GPRINT:curs:"%7.2lf %%" GPRINT:avgs:"%7.2lf %%" GPRINT:maxs:"%7.2lf %%\l">
-<footer style="text-align:center">
+<footer>
 <hr />
 <a href="https://acme.com/software/thttpd/"><img src="/badges/thttpd.gif" alt="powered by thttpd" height="31" width="88"></a>
 <a href="https://www.freebsd.org/"><img src="/badges/freebsd.gif" alt="powered by FreeBSD" height="31" width="88"></a>
diff --git a/dsk.cgi b/dsk.cgi
index be2ed3228be6c94a8a5bb96a757288ff81c9b8db..800023467bf6eccf0b9feb80402f58ae63a736ab 100755 (executable)
--- a/dsk.cgi
+++ b/dsk.cgi
@@ -1,8 +1,11 @@
 #!/usr/bin/rrdcgi
 <RRD::SETENV TZ America/Los_Angeles>
 <html>
-<head><title>Cluster Block Device Report</title></head>
-<body style="background-image: url('/bg.gif')">
+<head>
+<title>Cluster Block Device Report</title>
+<link rel="stylesheet" href="/index.css">
+</head>
+<body>
 <h1>Cluster Block Device Report</h1>
 <RRD::GRAPH dsk1wkte.png --title="Temescal / Disk Usage, Last Month"
   -s -1wk -w 640 -h 240 -S 120s -z -b 1024 -l 0
@@ -52,7 +55,7 @@
   AREA:u#cc3300:"Used     "       GPRINT:curu:"%5.0lf %SB"
   AREA:r#ffcc33:"Reserved ":STACK GPRINT:curr:"%5.0lf %SB"
   AREA:a#6600ff:"Available":STACK GPRINT:cura:"%5.0lf %SB\l">
-<footer style="text-align:center">
+<footer>
 <hr />
 <a href="https://acme.com/software/thttpd/"><img src="/badges/thttpd.gif" alt="powered by thttpd" height="31" width="88"></a>
 <a href="https://www.freebsd.org/"><img src="/badges/freebsd.gif" alt="powered by FreeBSD" height="31" width="88"></a>
diff --git a/gpu.cgi b/gpu.cgi
index 9e0fa7e837a23bb895c9dd5961a61ed972de2a27..1224353c5930fcc891e320d33c3fb855077aa2a8 100755 (executable)
--- a/gpu.cgi
+++ b/gpu.cgi
@@ -1,8 +1,11 @@
 #!/usr/bin/rrdcgi
 <RRD::SETENV TZ America/Los_Angeles>
 <html>
-<head><title>Cluster GPU Report</title></head>
-<body style="background-image: url('/bg.gif')">
+<head>
+<title>Cluster GPU Report</title>
+<link rel="stylesheet" href="/index.css">
+</head>
+<body>
 <h1>Cluster GPU Report</h1>
 <RRD::GRAPH gpu1h.png --title="GPU Utilization, Last Hour"
   -s -1hr -w 560 -h 240 -S 120s -z
   AREA:su1#6600FF:"Serrano GPU1 ":STACK GPRINT:cursu1:"%5.1lf %%" GPRINT:avgsu1:"%5.1lf %%" GPRINT:maxsu1:"%5.1lf %%"
   AREA:su2#9900FF:"Serrano GPU2 ":STACK GPRINT:cursu2:"%5.1lf %%" GPRINT:avgsu2:"%5.1lf %%" GPRINT:maxsu2:"%5.1lf %%"
   AREA:su3#9900CC:"Serrano GPU3 ":STACK GPRINT:cursu3:"%5.1lf %%" GPRINT:avgsu3:"%5.1lf %%" GPRINT:maxsu3:"%5.1lf %%\l">
-<footer style="text-align:center">
+<footer>
 <hr />
 <a href="https://acme.com/software/thttpd/"><img src="/badges/thttpd.gif" alt="powered by thttpd" height="31" width="88"></a>
 <a href="https://www.freebsd.org/"><img src="/badges/freebsd.gif" alt="powered by FreeBSD" height="31" width="88"></a>
diff --git a/index.css b/index.css
new file mode 100644 (file)
index 0000000..4da40be
--- /dev/null
+++ b/index.css
@@ -0,0 +1,8 @@
+body {
+  background-image: url('/bg.gif');
+}
+
+footer {
+  text-align: center;
+}
+
index 82468366b6af66b2821f796830476133fbc8dd5a..32664ad09acdf17e23c277275bc8be0f841f4813 100644 (file)
@@ -3,8 +3,9 @@
 <head>
   <meta charset="UTF-8">
   <title>AIS-UCLA Server Stats</title>
+  <link rel="stylesheet" href="/index.css">
 </head>
-<body style="background-image: url('/bg.gif')">
+<body>
   <main>
     <h1>AIS-UCLA Server Stats</h1>
     <i>Updates every 10 minutes</i>
@@ -16,7 +17,7 @@
       <li><a href=/dsk.cgi>Disk Storage Report</a></li>
     </ul>
   </main>
-  <footer style="text-align: center">
+  <footer>
     <hr />
     <a href="https://acme.com/software/thttpd/"><img src="/badges/thttpd.gif" alt="powered by thttpd" height="31" width="88"></a>
     <a href="https://www.freebsd.org/"><img src="/badges/freebsd.gif" alt="powered by FreeBSD" height="31" width="88"></a>
index f73668dc4df3a54996dd7b0092011eaa4838756a..a6be70c37bca84210ab184c9adcae4c55d9fd92a 100755 (executable)
@@ -6,7 +6,7 @@ use DBI;
 
 print header(-type => 'text/html', -charset => 'utf-8');
 print start_html(-title => "GPU Leaderboard",
-                 -style => "background-image: url('/bg.gif')");
+                 -style => {-src => 'index.css'});
 
 my $db_file = "/www/leader/gpu.db";
 my $dbh = DBI->connect("dbi:SQLite:dbname=$db_file", "", "", {
@@ -41,7 +41,7 @@ print "</table>";
 
 print <<'END';
 <hr />
-<footer style="text-align:center">
+<footer>
 <a href="https://acme.com/software/thttpd/"><img src="/badges/thttpd.gif" alt="powered by thttpd" height="31" width="88"></a>
 <a href="https://www.freebsd.org/"><img src="/badges/freebsd.gif" alt="powered by FreeBSD" height="31" width="88"></a>
 <a href="//cherf.ais-ucla.org/"><img src="/badges/cherf.gif" alt="powered by cherf" height="31" width="88"></a>
diff --git a/mem.cgi b/mem.cgi
index 639af1ea10d9d972a7826ca7e3dd613b5f673f62..d04fae6605b498dbd3a7826f75e2efaa2c92e676 100755 (executable)
--- a/mem.cgi
+++ b/mem.cgi
@@ -1,8 +1,11 @@
 #!/usr/bin/rrdcgi
 <RRD::SETENV TZ America/Los_Angeles>
 <html>
-<head><title>Cluster Memory Report</title></head>
-<body style="background-image: url('/bg.gif')">
+<head>
+<title>Cluster Memory Report</title>
+<link rel="stylesheet" href="/index.css">
+</head>
+<body>
 <h1>Cluster Memory Report</h1>
 <RRD::GRAPH tmem1h.png --title="Temescal Memory Usage, Last Hour"
   -l 0 -s -1hr -w 480 -h 240 -b 1024 -S 120s -z
   LINE2:su#6600FF:"SERRANO Used  " GPRINT:cursu:"%5.0lf %SB" GPRINT:avgsu:"%5.0lf %SB" GPRINT:maxsu:"%5.0lf %SB"
   LINE2:sc#6600CC:"SERRANO Cache " GPRINT:cursc:"%5.0lf %SB" GPRINT:avgsc:"%5.0lf %SB" GPRINT:maxsc:"%5.0lf %SB"
   LINE2:sf#660099:"SERRANO Free  " GPRINT:cursf:"%5.0lf %SB" GPRINT:avgsf:"%5.0lf %SB" GPRINT:maxsf:"%5.0lf %SB\l">
-<footer style="text-align:center">
+<footer>
 <hr />
 <a href="https://acme.com/software/thttpd/"><img src="/badges/thttpd.gif" alt="powered by thttpd" height="31" width="88"></a>
 <a href="https://www.freebsd.org/"><img src="/badges/freebsd.gif" alt="powered by FreeBSD" height="31" width="88"></a>