slitaz-forge view tank/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 | d3bd3bebbb03 |
children | 71a99f5f1841 |
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 Tank</title>
6 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
7 <meta name="description" content="slitaz tank server" />
8 <meta name="robots" content="index, nofollow" />
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/development.png" alt="development.png" />Developers Corner</h4>
22 <div class="right_box">
23 <ul>
24 <li><a href="http://tank.slitaz.org/">Tank Server</a></li>
25 <li><a href="http://mirror1.slitaz.org/">Main Mirror</a></li>
26 </ul>
27 </div>
28 <div class="left_box">
29 <ul>
30 <li><a href="http://www.slitaz.org/en/devel/">Devel Doc</a></li>
31 <li><a href="http://people.slitaz.org/">SliTaz People</a></li>
32 <li><a href="http://cook.slitaz.org/">Cooker</a></li>
33 <li><a href="http://pizza.slitaz.me/">Pizza Builder</a></li>
34 </ul>
35 </div>
36 </div>
37 <!-- Information/image -->
38 <div id="block_info">
39 <h4>Codename: tank</h4>
40 <p>
41 This is the SliTaz GNU/Linux main server and build host.
42 The server runs naturally SliTaz and provides some services
43 to all contributors.
44 </p>
45 <p>
46 Tank CPU is a <?php system("sed -e '/^model name/!d;s/.*Intel(R) //;" .
47 "s/@//;s/(.*)//;s/CPU //;s/.*AMD //;s/.*: //;s/Processor //' </proc/cpuinfo |" .
48 " awk '{ s=$0; n++ } END { if (n == 2) printf \"dual \";" .
49 "if (n == 4) printf \"quad \"; print s }' ")?> -
50 <?php system("free | awk '/Mem:/ { x=2*$2-1; while (x >= 1024) { x /= 1024; ".
51 "n++ }; y=1; while (x > 2) { x /= 2; y *= 2}; ".
52 "printf \"%d%cB RAM\",y,substr(\"MG\",n,1) }' ")?> - Located in Gravelines,
53 France. Tank is also monitored by RRDtool which provides
54 <a href="graphs.php">graphical stats</a>.
55 </p>
56 </div>
57 </div>
59 <!-- Content -->
60 <div id="content">
62 <h2><a href="graphs.php"><img
63 style="vertical-align: middle; padding: 0 4px 4px 0;"
64 title="Tank RRDtool graphs" alt="graphs"
65 src="images/monitor.png" /></a>System stats</h2>
67 <h4>Uptime</h4>
69 <pre>
70 <?php
71 system("uptime | sed 's/^\s*//'");
72 ?>
73 </pre>
75 <h4>Disk usage</h4>
76 <pre>
77 <?php
78 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; }");
79 system("df -h | sed '/^rootfs/d' | grep '\(^/dev\|Filesystem\)'");
80 ?>
81 </pre>
83 <h4>Network</h4>
84 <pre>
85 <?php
86 system("ifconfig eth0 | awk '{ if (/X packet/ || /X byte/) print }' | sed 's/^\s*//'");
87 ?>
88 </pre>
90 <h2><a href="/stats/awstats.pl?config=www.slitaz.org"><img
91 style="padding: 0 4px 4px 0;" title="Tank Virtual hosts" alt="vhosts"
92 src="images/network.png" /></a>Virtual hosts</h2>
94 <ul>
95 <!-- <li><a href="http://pkgs.slitaz.org/">pkgs.slitaz.org</a> - Packages Web interface.
96 (<a href="/stats/awstats.pl?config=pkgs.slitaz.org">stats</a>)</li> -->
97 <li><a href="http://boot.slitaz.org/">boot.slitaz.org</a> - SliTaz Web boot.
98 (<a href="/stats/awstats.pl?config=boot.slitaz.org">stats</a>)</li>
99 <!-- <li><a href="http://hg.slitaz.org/?sort=lastchange">hg.slitaz.org</a> - Mercurial repositories.
100 (<a href="/stats/awstats.pl?config=hg.slitaz.org">stats</a>)</li> -->
101 <li><a href="http://cook.slitaz.org/">cook.slitaz.org</a> - SliTaz Build Bot.
102 (<a href="/stats/awstats.pl?config=cook.slitaz.org">stats</a>)</li>
103 <li><a href="http://people.slitaz.org/">people.slitaz.org</a> - SliTaz People stuff.
104 (<a href="/stats/awstats.pl?config=people.slitaz.org">stats</a>)</li>
105 <li><a href="http://roadmap.slitaz.org/">roadmap.slitaz.org</a> -
106 SliTaz Roadmap.
107 (<a href="/stats/awstats.pl?config=roadmap.slitaz.org">stats</a>)</li>
108 <li><a href="http://bugs.slitaz.org/">bugs.slitaz.org</a> -
109 SliTaz Bug Tracker.</li>
110 <li><a href="http://irc.slitaz.org/">irc.slitaz.org</a> -
111 SliTaz IRC logs and webchat.</li>
112 <li><a href="http://try.slitaz.org/">try.slitaz.org</a> -
113 To try some CGI scripts and other web services.</li>
114 </ul>
116 <ul>
117 <li><a href="http://slitaz.pro">slitaz.pro</a> - SliTaz Professional services.
118 (<a href="/stats/awstats.pl?config=slitaz.pro">stats</a>)</li>
119 <li><a href="http://slitaz.me">slitaz.me</a> -
120 Domain used for users services such as Pizza.</li>
121 <h2>Tank Log</h2>
123 <pre>
124 <?php
125 system("tac /var/log/tank.log | head -50");
126 ?>
127 </pre>
129 <!-- End of content -->
130 </div>
132 <?php include("lib/html/footer.html"); ?>
134 </body>
135 </html>