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

mirror/floppies: multi-format support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 23 16:41:12 2021 +0000 (2021-07-23)
parents cfad9fa3f53c
children
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://pangolin.slitaz.org/">Pangolin Server</a></li>
25 <li><a href="http://mirror1.slitaz.org/">Main Mirror</a></li>
26 <li><a href="http://tank.slitaz.org/console/">Console</a></li>
27 </ul>
28 </div>
29 <div class="left_box">
30 <ul>
31 <li><a href="http://www.slitaz.org/en/devel/">Devel Doc</a></li>
32 <li><a href="http://people.slitaz.org/">SliTaz People</a></li>
33 <li><a href="http://cook.slitaz.org/">Cooker</a></li>
34 <li><a href="http://mypizza.slitaz.org/">Pizza Builder</a></li>
35 </ul>
36 </div>
37 </div>
38 <!-- Information/image -->
39 <div id="block_info">
40 <h4>Codename: tank</h4>
41 <p>
42 This is the SliTaz GNU/Linux main server and build host.
43 The server runs naturally SliTaz and provides some services
44 to all contributors. The virtual machine is gracefully hosted by
45 <a href="https://www.linkedin.com/company/balinor-technologies/">balinor-technologies</a>.
46 </p>
47 <p>
48 Tank CPU is a <?php system("sed -e '/^model name/!d;s/.*Intel(R) //;" .
49 "s/@//;s/(.*)//;s/CPU //;s/.*AMD //;s/.*: //;s/Processor //' </etc/cpuinfo |" .
50 " awk '{ s=$0; n++ } END { if (n == 2) printf \"dual \";" .
51 "if (n == 4) printf \"quad \"; if (n == 8) printf \"octo \"; print s }' ")?> -
52 <?php system("free -g | awk '/Mem:/ { print $2 \"GB RAM\" }'")?> -
53 Located in Paris, 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.
110 (<a href="/stats/awstats.pl?config=bugs.slitaz.org">stats</a>)</li>
111 <li><a href="http://irc.slitaz.org/">irc.slitaz.org</a> -
112 SliTaz IRC logs and webchat.
113 (<a href="/stats/awstats.pl?config=irc.slitaz.org">stats</a>)</li>
114 <li><a href="http://try.slitaz.org/">try.slitaz.org</a> -
115 To try some CGI scripts and other web services.
116 (<a href="/stats/awstats.pl?config=try.slitaz.org">stats</a>)</li>
117 </ul>
119 <h2>Tank Log</h2>
121 <pre>
122 <?php
123 system("tac /var/log/tank.log | head -50");
124 ?>
125 </pre>
127 <!-- End of content -->
128 </div>
130 <?php include("lib/html/footer.html"); ?>
132 </body>
133 </html>