slitaz-forge view tank/web/index.php @ rev 321
mirror-search.sh: be less cpu hungry...
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 26 21:12:07 2012 +0200 (2012-07-26) |
parents | ea25c1734c9b |
children | 0af8c6e40dcd |
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/server.png" alt="[ Server ]" />Project servers</h4>
22 <ul>
23 <li><a href="http://chub.slitaz.org/">Chub 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: tank</h4>
31 <p>
32 This is the SliTaz GNU/Linux main server and build host.
33 The server runs naturally SliTaz and provides some services
34 to all contributors such as: secure access, disk space, a
35 public directory or cron jobs.
36 </p>
37 <p>
38 Tank CPU is a <?php system("sed -e '/^model name/!d;s/.*Intel(R) //;" .
39 "s/@//;s/(.*)//;s/CPU //;s/.*AMD //;s/.*: //;s/Processor //' </proc/cpuinfo |" .
40 " awk '{ s=$0; n++ } END { if (n == 2) printf \"dual \";" .
41 "if (n == 4) printf \"quad \"; print s }' ")?> -
42 <?php system("free | awk '/Mem:/ { x=2*$2-1; while (x >= 1024) { x /= 1024; ".
43 "n++ }; y=1; while (x > 2) { x /= 2; y *= 2}; ".
44 "printf \"%d%cB RAM\",y,substr(\"MG\",n,1) }' ")?> - Located next to Lausanne,
45 Switzerland. Tank is also monitored by RRDtool which provides
46 <a href="graphs.php">graphical stats</a>.
47 </p>
48 </div>
49 </div>
51 <!-- Content -->
52 <div id="content">
54 <h2><a href="graphs.php"><img
55 style="vertical-align: middle; padding: 0 4px 0 0;"
56 title="Tank RRDtool graphs" alt="graphs"
57 src="images/monitor.png" /></a>System stats</h2>
59 <h4>Uptime</h4>
61 <pre>
62 <?php
63 system("uptime | sed 's/^\s*//'");
64 ?>
65 </pre>
67 <h4>Disk usage</h4>
68 <pre>
69 <?php
70 system("df -h | sed '/^rootfs/d' | grep '\(^/dev\|Filesystem\)'");
71 ?>
72 </pre>
74 <h4>Network</h4>
75 <pre>
76 <?php
77 system("ifconfig eth0 | awk '{ if (/X packet/ || /X byte/) print }' | sed 's/^\s*//'");
78 ?>
79 </pre>
81 <h2><a href="/stats/awstats.pl?config=www.slitaz.org"><img
82 style="padding: 0 4px 0 0;" title="Tank Virtual hosts" alt="vhosts"
83 src="images/network.png" /></a>Virtual hosts</h2>
85 <ul>
86 <!-- <li><a href="http://pkgs.slitaz.org/">pkgs.slitaz.org</a> - Packages Web interface.
87 (<a href="/stats/awstats.pl?config=pkgs.slitaz.org">stats</a>)</li> -->
88 <li><a href="http://boot.slitaz.org/">boot.slitaz.org</a> - gPXE Web boot.
89 (<a href="/stats/awstats.pl?config=boot.slitaz.org">stats</a>)</li>
90 <!-- <li><a href="http://hg.slitaz.org/">hg.slitaz.org</a> - Mercurial repositories.
91 (<a href="/stats/awstats.pl?config=hg.slitaz.org">stats</a>)</li> -->
92 <li><a href="http://cook.slitaz.org/">cook.slitaz.org</a> - SliTaz Build Bot.
93 (<a href="/stats/awstats.pl?config=cook.slitaz.org">stats</a>)</li>
94 <li><a href="http://people.slitaz.org/">people.slitaz.org</a> - SliTaz People stuff.
95 (<a href="/stats/awstats.pl?config=people.slitaz.org">stats</a>)</li>
96 <li><a href="http://roadmap.slitaz.org/">roadmap.slitaz.org</a> -
97 SliTaz Roadmap.
98 (<a href="/stats/awstats.pl?config=roadmap.slitaz.org">stats</a>)</li>
99 <li><a href="http://slitaz.pro/">slitaz.pro</a> - SliTaz Professional services.
100 (<a href="/stats/awstats.pl?config=slitaz.pro">stats</a>)</li>
101 </ul>
103 <h2>Tank Log</h2>
105 <pre>
106 <?php
107 system("cat /var/log/tank.log | head -40");
108 ?>
109 </pre>
111 <!-- End of content -->
112 </div>
114 <?php include("lib/html/footer.html"); ?>
116 </body>
117 </html>