slitaz-forge view tank/web/index.php @ rev 559

arm: tiny edits
author Paul Issott <paul@slitaz.org>
date Mon May 12 18:45:22 2014 +0100 (2014-05-12)
parents bcbc417e3a5c
children d3bd3bebbb03
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://mirror.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("df -h | sed '/^rootfs/d' | grep '\(^/dev\|Filesystem\)'");
79 ?>
80 </pre>
82 <h4>Network</h4>
83 <pre>
84 <?php
85 system("ifconfig eth0 | awk '{ if (/X packet/ || /X byte/) print }' | sed 's/^\s*//'");
86 ?>
87 </pre>
89 <h2><a href="/stats/awstats.pl?config=www.slitaz.org"><img
90 style="padding: 0 4px 4px 0;" title="Tank Virtual hosts" alt="vhosts"
91 src="images/network.png" /></a>Virtual hosts</h2>
93 <ul>
94 <!-- <li><a href="http://pkgs.slitaz.org/">pkgs.slitaz.org</a> - Packages Web interface.
95 (<a href="/stats/awstats.pl?config=pkgs.slitaz.org">stats</a>)</li> -->
96 <li><a href="http://boot.slitaz.org/">boot.slitaz.org</a> - SliTaz Web boot.
97 (<a href="/stats/awstats.pl?config=boot.slitaz.org">stats</a>)</li>
98 <!-- <li><a href="http://hg.slitaz.org/?sort=lastchange">hg.slitaz.org</a> - Mercurial repositories.
99 (<a href="/stats/awstats.pl?config=hg.slitaz.org">stats</a>)</li> -->
100 <li><a href="http://cook.slitaz.org/">cook.slitaz.org</a> - SliTaz Build Bot.
101 (<a href="/stats/awstats.pl?config=cook.slitaz.org">stats</a>)</li>
102 <li><a href="http://people.slitaz.org/">people.slitaz.org</a> - SliTaz People stuff.
103 (<a href="/stats/awstats.pl?config=people.slitaz.org">stats</a>)</li>
104 <li><a href="http://roadmap.slitaz.org/">roadmap.slitaz.org</a> -
105 SliTaz Roadmap.
106 (<a href="/stats/awstats.pl?config=roadmap.slitaz.org">stats</a>)</li>
107 <li><a href="http://bugs.slitaz.org/">bugs.slitaz.org</a> -
108 SliTaz Bug Tracker.</li>
109 <li><a href="http://irc.slitaz.org/">irc.slitaz.org</a> -
110 SliTaz IRC logs and webchat.</li>
111 <li><a href="http://try.slitaz.org/">try.slitaz.org</a> -
112 To try some CGI scripts and other web services.</li>
113 </ul>
115 <ul>
116 <li><a href="http://slitaz.pro">slitaz.pro</a> - SliTaz Professional services.
117 (<a href="/stats/awstats.pl?config=slitaz.pro">stats</a>)</li>
118 <li><a href="http://slitaz.me">slitaz.me</a> -
119 Domain used for users services such as Pizza.</li>
120 <h2>Tank Log</h2>
122 <pre>
123 <?php
124 system("tac /var/log/tank.log | head -50");
125 ?>
126 </pre>
128 <!-- End of content -->
129 </div>
131 <?php include("lib/html/footer.html"); ?>
133 </body>
134 </html>