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

Update tank util and add vhosts.conf
author Christophe Lincoln <pankso@slitaz.org>
date Tue Mar 20 22:12:29 2012 +0100 (2012-03-20)
parents 83836dfbf1da
children e9b52249d33e
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 <!-- Header -->
16 <div id="header">
17 <div id="logo"></div>
18 <div id="network">
19 <a href="http://www.slitaz.org/">
20 <img src="images/home.png" alt="[ Home ]" /></a>
21 <a href="http://scn.slitaz.org/">Community</a>
22 <a href="http://doc.slitaz.org/">Doc</a>
23 <a href="http://forum.slitaz.org/">Forum</a>
24 <a href="http://pro.slitaz.org/">Pro</a>
25 <a href="http://slitaz.spreadshirt.net/">Shop</a>
26 <a href="http://bugs.slitaz.org">Bugs</a>
27 <a href="http://hg.slitaz.org/">Hg</a>
28 <a href="http://cook.slitaz.org/">Cook</a>
29 </div>
30 <h1><a href="http://tank.slitaz.org/">SliTaz Tank</a></h1>
31 </div>
33 <!-- Block -->
34 <div id="block">
35 <!-- Navigation -->
36 <div id="block_nav">
37 <h4><img src="images/server.png" alt="[ Server ]" />Project servers</h4>
38 <ul>
39 <li><a href="http://chub.slitaz.org/">Chub server</a></li>
40 <li><a href="http://mirror.slitaz.org/">Mirror server</a></li>
41 <li><a href="http://pangolin.slitaz.org/">Pangolin server</a></li>
42 </ul>
43 </div>
44 <!-- Information/image -->
45 <div id="block_info">
46 <h4>Codename: tank</h4>
47 <p>
48 This is the SliTaz GNU/Linux main server and build host.
49 The server runs naturally SliTaz and provides some services
50 to all contributors such as: secure access, disk space, a
51 public directory or cron jobs.
52 </p>
53 <p>
54 Tank CPU is a <?php system("sed -e '/^model name/!d;s/.*Intel(R) //;" .
55 "s/@//;s/(.*)//;s/CPU //;s/.*AMD //;s/.*: //;s/Processor //' </proc/cpuinfo |" .
56 " awk '{ s=$0; n++ } END { if (n == 2) printf \"dual \";" .
57 "if (n == 4) printf \"quad \"; print s }' ")?> -
58 <?php system("free | awk '/Mem:/ { x=2*$2-1; while (x >= 1024) { x /= 1024; ".
59 "n++ }; y=1; while (x > 2) { x /= 2; y *= 2}; ".
60 "printf \"%d%cB RAM\",y,substr(\"MG\",n,1) }' ")?> - Located next to Lausanne,
61 Switzerland. Tank is also monitored by RRDtool which provides
62 <a href="graphs.php">graphical stats</a>.
63 </p>
64 </div>
65 </div>
67 <!-- Content -->
68 <div id="content">
70 <h2><a href="graphs.php"><img
71 style="vertical-align: middle; padding: 0 4px 0 0;"
72 title="Tank RRDtool graphs" alt="graphs"
73 src="images/monitor.png" /></a>System stats</h2>
75 <h4>Uptime</h4>
77 <pre>
78 <?php
79 system("uptime | sed 's/^\s*//'");
80 ?>
81 </pre>
83 <h4>Disk usage</h4>
84 <pre>
85 <?php
86 system("df -h | sed '/^rootfs/d' | grep '\(^/dev\|Filesystem\)'");
87 ?>
88 </pre>
90 <h4>Network</h4>
91 <pre>
92 <?php
93 system("ifconfig eth0 | awk '{ if (/X packet/ || /X byte/) print }' | sed 's/^\s*//'");
94 ?>
95 </pre>
97 <h2><a href="/stats/awstats.pl?config=www.slitaz.org"><img
98 style="padding: 0 4px 0 0;" title="Tank Virtual hosts" alt="vhosts"
99 src="images/network.png" /></a>Virtual hosts</h2>
101 <ul>
102 <!-- <li><a href="http://pkgs.slitaz.org/">pkgs.slitaz.org</a> - Packages Web interface.
103 (<a href="/stats/awstats.pl?config=pkgs.slitaz.org">stats</a>)</li> -->
104 <li><a href="http://boot.slitaz.org/">boot.slitaz.org</a> - gPXE Web boot.
105 (<a href="/stats/awstats.pl?config=boot.slitaz.org">stats</a>)</li>
106 <!-- <li><a href="http://hg.slitaz.org/">hg.slitaz.org</a> - Mercurial repositories.
107 (<a href="/stats/awstats.pl?config=hg.slitaz.org">stats</a>)</li> -->
108 <li><a href="http://cook.slitaz.org/">cook.slitaz.org</a> - SliTaz Build Bot.
109 (<a href="/stats/awstats.pl?config=cook.slitaz.org">stats</a>)</li>
110 <li><a href="http://people.slitaz.org/">people.slitaz.org</a> - SliTaz People stuff.
111 (<a href="/stats/awstats.pl?config=people.slitaz.org">stats</a>)</li>
112 <li><a href="http://pro.slitaz.org/">pro.slitaz.org</a> - SliTaz Professional services.
113 (<a href="/stats/awstats.pl?config=pro.slitaz.org">stats</a>)</li>
114 </ul>
116 <!-- End of content -->
117 </div>
119 <!-- Footer -->
120 <div id="footer">
121 Copyright &copy; <span class="year"></span>
122 <a href="http://www.slitaz.org/">SliTaz</a> - Network:
123 <a href="http://scn.slitaz.org/">Community</a>
124 <a href="http://doc.slitaz.org/">Doc</a>
125 <a href="http://forum.slitaz.org/">Forum</a>
126 <a href="http://pkgs.slitaz.org/">Packages</a>
127 <a href="http://boot.slitaz.org/">Boot</a>
128 <a href="http://bugs.slitaz.org">Bugs</a>
129 <a href="http://hg.slitaz.org/">Hg</a>
130 <p>
131 SliTaz @
132 <a href="http://twitter.com/slitaz">Twitter</a>
133 <a href="http://www.facebook.com/slitaz">Facebook</a>
134 <a href="http://distrowatch.com/slitaz">Distrowatch</a>
135 <a href="http://en.wikipedia.org/wiki/SliTaz">Wikipedia</a>
136 <a href="http://flattr.com/profile/slitaz">Flattr</a>
137 </p>
138 </div>
140 </body>
141 </html>