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

Update chub web interface with graphs and use include files
author Christophe Lincoln <pankso@slitaz.org>
date Thu Mar 15 21:09:50 2012 +0100 (2012-03-15)
parents 8b2ee3af1cef
children 83836dfbf1da
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 </ul>
42 </div>
43 <!-- Information/image -->
44 <div id="block_info">
45 <h4>Codename: tank</h4>
46 <p>
47 This is the SliTaz GNU/Linux main server and build host.
48 The server runs naturally SliTaz and provides some services
49 to all contributors such as: secure access, disk space, a
50 public directory or cron jobs.
51 </p>
52 <p>
53 Tank CPU is a <?php system("sed -e '/^model name/!d;s/.*Intel(R) //;" .
54 "s/@//;s/(.*)//;s/CPU //;s/.*AMD //;s/.*: //;s/Processor //' </proc/cpuinfo |" .
55 " awk '{ s=$0; n++ } END { if (n == 2) printf \"dual \";" .
56 "if (n == 4) printf \"quad \"; print s }' ")?> -
57 <?php system("free | awk '/Mem:/ { x=2*$2-1; while (x >= 1024) { x /= 1024; ".
58 "n++ }; y=1; while (x > 2) { x /= 2; y *= 2}; ".
59 "printf \"%d%cB RAM\",y,substr(\"MG\",n,1) }' ")?> - Located next to Lausanne,
60 Switzerland. Tank is also monitored by RRDtool which provides
61 <a href="graphs.php">graphical stats</a>.
62 </p>
63 </div>
64 </div>
66 <!-- Content -->
67 <div id="content">
69 <h2><a href="graphs.php"><img
70 style="vertical-align: middle; padding: 0 4px 0 0;"
71 title="Tank RRDtool graphs" alt="graphs"
72 src="images/monitor.png" /></a>System stats</h2>
74 <h4>Uptime</h4>
76 <pre>
77 <?php
78 system("uptime | sed 's/^\s*//'");
79 ?>
80 </pre>
82 <h4>Disk usage</h4>
83 <pre>
84 <?php
85 system("df -h | sed '/^rootfs/d' | grep '\(^/dev\|Filesystem\)'");
86 ?>
87 </pre>
89 <h4>Network</h4>
90 <pre>
91 <?php
92 system("ifconfig eth0 | awk '{ if (/X packet/ || /X byte/) print }' | sed 's/^\s*//'");
93 ?>
94 </pre>
96 <h2><a href="/stats/awstats.pl?config=www.slitaz.org"><img
97 style="padding: 0 4px 0 0;" title="Tank Virtual hosts" alt="vhosts"
98 src="images/network.png" /></a>Virtual hosts</h2>
100 <ul>
101 <!-- <li><a href="http://www.slitaz.org/">www.slitaz.org</a> - SliTaz Website.
102 (<a href="/stats/awstats.pl?config=www.slitaz.org">stats</a>)</li>
103 <li><a href="http://doc.slitaz.org/">doc.slitaz.org</a> - Documentation platform.
104 (<a href="/stats/awstats.pl?config=doc.slitaz.org">stats</a>)</li>
105 <li><a href="http://pkgs.slitaz.org/">pkgs.slitaz.org</a> - Packages Web interface.
106 (<a href="/stats/awstats.pl?config=pkgs.slitaz.org">stats</a>)</li> -->
107 <li><a href="http://boot.slitaz.org/">boot.slitaz.org</a> - gPXE Web boot.
108 (<a href="/stats/awstats.pl?config=boot.slitaz.org">stats</a>)</li>
109 <!-- <li><a href="http://hg.slitaz.org/">hg.slitaz.org</a> - Mercurial repositories.
110 (<a href="/stats/awstats.pl?config=hg.slitaz.org">stats</a>)</li> -->
111 <li><a href="http://cook.slitaz.org/">cook.slitaz.org</a> - SliTaz Build Bot.
112 (<a href="/stats/awstats.pl?config=cook.slitaz.org">stats</a>)</li>
113 <li><a href="http://people.slitaz.org/">people.slitaz.org</a> - SliTaz People stuff.
114 (<a href="/stats/awstats.pl?config=people.slitaz.org">stats</a>)</li>
115 <li><a href="http://pro.slitaz.org/">pro.slitaz.org</a> - SliTaz Professional services.</li>
116 </ul>
118 <h2><img
119 style="vertical-align: middle; padding: 0 4px 0 0;"
120 title="Erjo Virtual hosts" alt="vhosts"
121 src="images/network.png" />Other hosts</h2>
123 <p>
124 These services are hosted by some individual sponsors who gracefully offer
125 resources to the SliTaz project.
126 </p>
127 <ul>
128 <li><a href="http://forum.slitaz.org/">forum.slitaz.org</a> - SliTaz support forum.</li>
129 <li><a href="http://labs.slitaz.org/">labs.slitaz.org</a> - SliTaz Laboratories.</li>
130 <li><a href="http://mirror.slitaz.org/">mirror.slitaz.org</a> - SliTaz main mirror and replicas.
131 (<a href="http://mirror.slitaz.org/info/">more...</a>)</li>
132 <li><a href="http://scn.slitaz.org/">scn.slitaz.org</a> - Community platform.</li>
133 <li><a href="http://pizza.slitaz.org/">pizza.slitaz.org</a> - SliTaz flavor builder.</li>
134 </ul>
136 <h2><a href="http://mirror.slitaz.org/info/"> <img
137 style="vertical-align: middle; padding: 0 4px 0 0;"
138 src="images/network.png"
139 title="Secondary mirrors" alt="mirrors" /></a>Mirrors</h2>
140 <p>
141 These mirrors are updated using the url <b>rsync://mirror.slitaz.org/slitaz/</b>
142 (<a href="http://mirror.slitaz.org/awstats.pl?config=rsync">stats</a>)
143 </p>
144 <ul>
145 <li><a href="http://mirror.switch.ch/ftp/mirror/slitaz/">
146 http://mirror.switch.ch/ftp/mirror/slitaz/</a> or
147 <a href="ftp://mirror.switch.ch/mirror/slitaz/">
148 ftp://mirror.switch.ch/mirror/slitaz/</a></li>
149 <li><a href="http://download.tuxfamily.org/slitaz/">
150 http://download.tuxfamily.org/slitaz/</a></li>
151 <li><a href="http://www.linuxembarque.com/slitaz/mirror/">
152 http://www.linuxembarque.com/slitaz/mirror/</a></li>
153 <li><a href="http://mirror.lupaworld.com/slitaz/">
154 http://mirror.lupaworld.com/slitaz/</a></li>
155 <li><a href="http://slitaz.c3sl.ufpr.br/">
156 http://slitaz.c3sl.ufpr.br/</a> or
157 <a href="ftp://slitaz.c3sl.ufpr.br/slitaz/">
158 ftp://slitaz.c3sl.ufpr.br/slitaz/</a></li>
159 <li><a href="http://slitaz.mirror.garr.it/mirrors/slitaz/">
160 http://slitaz.mirror.garr.it/mirrors/slitaz/</a></li>
161 <li><a href="http://www.gtlib.gatech.edu/pub/slitaz/">
162 http://www.gtlib.gatech.edu/pub/slitaz/</a> or
163 <a href="ftp://ftp.gtlib.gatech.edu/pub/slitaz/">
164 ftp://ftp.gtlib.gatech.edu/pub/slitaz/</a></li>
165 <li><a href="ftp://ftp.pina.si/slitaz/">
166 ftp://ftp.pina.si/slitaz/</a></li>
167 </ul>
169 <!-- End of content -->
170 </div>
172 <!-- Footer -->
173 <div id="footer">
174 Copyright &copy; <span class="year"></span>
175 <a href="http://www.slitaz.org/">SliTaz</a> - Network:
176 <a href="http://scn.slitaz.org/">Community</a>
177 <a href="http://doc.slitaz.org/">Doc</a>
178 <a href="http://forum.slitaz.org/">Forum</a>
179 <a href="http://pkgs.slitaz.org/">Packages</a>
180 <a href="http://bugs.slitaz.org">Bugs</a>
181 <a href="http://hg.slitaz.org/">Hg</a>
182 <p>
183 SliTaz @
184 <a href="http://twitter.com/slitaz">Twitter</a>
185 <a href="http://www.facebook.com/slitaz">Facebook</a>
186 <a href="http://distrowatch.com/slitaz">Distrowatch</a>
187 <a href="http://en.wikipedia.org/wiki/SliTaz">Wikipedia</a>
188 <a href="http://flattr.com/profile/slitaz">Flattr</a>
189 </p>
190 </div>
192 </body>
193 </html>