slitaz-forge view chub/web/index.php @ rev 592
arm/rpi: add Raspbian dual boot
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 19 16:13:06 2015 +0100 (2015-02-19) |
parents | 83836dfbf1da |
children |
line source
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4 <head>
5 <title>SliTaz Chub</title>
6 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
7 <meta name="description" content="slitaz chub server at COSI" />
8 <meta name="robots" content="index, follow, all" />
9 <meta name="author" content="SliTaz Contributors" />
10 <link rel="shortcut icon" href="favicon.ico" />
11 <link rel="stylesheet" type="text/css" href="slitaz.css" />
12 </head>
13 <body>
15 <?php include("lib/html/header.html"); ?>
17 <!-- Block -->
18 <div id="block">
19 <!-- Navigation -->
20 <div id="block_nav">
21 <h4><img src="images/server.png" alt="[ Server ]" />Project servers</h4>
22 <ul>
23 <li><a href="http://tank.slitaz.org/">Tank server</a></li>
24 <li><a href="http://mirror.slitaz.org/">Mirror server</a></li>
25 <li><a href="http://pangolin.slitaz.org/">Pangolin server</a></li>
26 </ul>
27 </div>
28 <!-- Information/image -->
29 <div id="block_info">
30 <h4>Codename: chub</h4>
31 <p>
32 This is the SliTaz GNU/Linux Community HUB server. This
33 virtual machine is gracefully hosted by COSI at Clarkson
34 University <a href="http://cosi.clarkson.edu/">cosi.clarkson.edu</a>
35 </p>
36 <p>
37 <!-- Chub CPU is a <?php //system("sed -e '/^model name/!d;s/.*Intel(R) //;" .
38 //"s/@//;s/(.*)//;s/CPU //;s/.*AMD //;s/.*: //;s/Processor //' </proc/cpuinfo |" .
39 //" awk '{ s=$0; n++ } END { if (n == 2) printf \"dual \";" .
40 //"if (n == 4) printf \"quad \"; print s }' ")?> -
41 <?php //system("free | awk '/Mem:/ { x=2*$2-1; while (x >= 1024) { x /= 1024; ".
42 //"n++ }; y=1; while (x > 2) { x /= 2; y *= 2}; ".
43 //"printf \"%d%cB RAM\",y,substr(\"MG\",n,1) }' ")?> -->
44 Chub CPU is a quad Xeon E5410 2.33GHz - 4GB RAM -
45 <a href="graphs.php">Graphical stats</a>
46 </p>
47 </div>
48 </div>
50 <!-- Content -->
51 <div id="content">
53 <h2><a href="graphs.php"><img style="padding: 0 4px 0 0;"
54 title="Chub RRDtool graphs" alt="graphs"
55 src="images/monitor.png" /></a>System stats</h2>
57 <h4>Uptime</h4>
59 <pre>
60 <?php
61 system("uptime | sed 's/^\s*//'");
62 ?>
63 </pre>
65 <h4>Disk usage</h4>
66 <pre>
67 <?php
68 system("[ -d /sys/block ] && [ -x /usr/sbin/smartctl ] && { cd /sys/block ; for i in [hs]d? ; do echo -n \$i ; /usr/sbin/smartctl -a /dev/\$i 2> /dev/null | sed '/Power_On_Hours/{s/.*Pow/: Pow/;s/ours.*-/ours/;p};/offline/!d;q'; echo; done; }");
69 system("df -h | sed '/^rootfs/d' | grep '\(^/dev\|Filesystem\)'");
70 ?>
71 </pre>
73 <h4>Network</h4>
74 <pre>
75 <?php
76 system("ifconfig eth1 | awk '{ if (/X packet/ || /X byte/) print }' | sed 's/^\s*//'");
77 ?>
78 </pre>
80 <h2><img src="images/network.png" alt="[ Vhosts ]" />Virtual hosts</h2>
82 <!-- End of content -->
83 </div>
85 <?php include("lib/html/footer.html"); ?>
87 </body>
88 </html>