]> git.ais-ucla.org Git - stats.ais-ucla.org.git/commitdiff
add dsk
authorChristopher Milan <chrismilan@ucla.edu>
Sun, 16 Mar 2025 00:27:57 +0000 (17:27 -0700)
committerChristopher Milan <chrismilan@ucla.edu>
Sun, 16 Mar 2025 22:53:30 +0000 (15:53 -0700)
dsk.cgi [new file with mode: 0755]
index.html

diff --git a/dsk.cgi b/dsk.cgi
new file mode 100755 (executable)
index 0000000..be2ed32
--- /dev/null
+++ b/dsk.cgi
@@ -0,0 +1,67 @@
+#!/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')">
+<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
+  --vertical-label "Bytes"
+  DEF:t=/www/stats/temescal/dsk.rrd:total:AVERAGE
+  DEF:f=/www/stats/temescal/dsk.rrd:free:AVERAGE
+  DEF:a=/www/stats/temescal/dsk.rrd:avail:AVERAGE
+  CDEF:u=t,f,-
+  CDEF:r=f,a,-
+  VDEF:curu=u,LAST VDEF:curr=r,LAST VDEF:cura=a,LAST
+  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">
+<RRD::GRAPH dsk1wkyn.png --title="ynez / Disk Usage, Last Month"
+  -s -1wk -w 640 -h 240 -S 120s -z -b 1024 -l 0
+  --vertical-label "Bytes"
+  DEF:t=/www/stats/ynez/dsk.rrd:total:AVERAGE
+  DEF:f=/www/stats/ynez/dsk.rrd:free:AVERAGE
+  DEF:a=/www/stats/ynez/dsk.rrd:avail:AVERAGE
+  CDEF:u=t,f,-
+  CDEF:r=f,a,-
+  VDEF:curu=u,LAST VDEF:curr=r,LAST VDEF:cura=a,LAST
+  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">
+<RRD::GRAPH dsk1wkse.png --title="serrano / Disk Usage, Last Month"
+  -s -1wk -w 640 -h 240 -S 120s -z -b 1024 -l 0
+  --vertical-label "Bytes"
+  DEF:t=/www/stats/serrano/dsk.rrd:total:AVERAGE
+  DEF:f=/www/stats/serrano/dsk.rrd:free:AVERAGE
+  DEF:a=/www/stats/serrano/dsk.rrd:avail:AVERAGE
+  CDEF:u=t,f,-
+  CDEF:r=f,a,-
+  VDEF:curu=u,LAST VDEF:curr=r,LAST VDEF:cura=a,LAST
+  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">
+<RRD::GRAPH dsk1wksu.png --title="/home Disk Usage, Last Month"
+  -s -1wk -w 640 -h 240 -S 120s -z -b 1024 -l 0
+  --vertical-label "Bytes"
+  DEF:t=/www/stats/sullivan/dsk.rrd:total:AVERAGE
+  DEF:f=/www/stats/sullivan/dsk.rrd:free:AVERAGE
+  DEF:a=/www/stats/sullivan/dsk.rrd:avail:AVERAGE
+  CDEF:u=t,f,-
+  CDEF:r=f,a,-
+  VDEF:curu=u,LAST VDEF:curr=r,LAST VDEF:cura=a,LAST
+  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">
+<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>
+<a href="//cherf.ais-ucla.org/"><img src="/badges/cherf.gif" alt="powered by cherf" height="31" width="88"></a>
+<address>
+&copy; 2025 Christopher Milan
+<br />
+<a href="/">stats.ais-ucla.org</a>
+</address>
+</footer>
+</body>
+</html>
index a74d0e374df99cce346a2e7066bb9d61725210bf..82468366b6af66b2821f796830476133fbc8dd5a 100644 (file)
@@ -13,6 +13,7 @@
       <li><a href=/mem.cgi>Memory Report</a></li>
       <li><a href=/gpu.cgi>GPU Report</a></li>
       <li><a href=/blk.cgi>Block Device Report</a></li>
+      <li><a href=/dsk.cgi>Disk Storage Report</a></li>
     </ul>
   </main>
   <footer style="text-align: center">