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

Virtual machines have moved
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 01 10:43:39 2021 +0000 (2021-02-01)
parents 5091de3dc58d
children cfad9fa3f53c
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 provided 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 \"; print s }' ")?> -
52 <?php system("free | awk '/Mem:/ { x=2*$2-1; while (x >= 1024) { x /= 1024; ".
53 "n++ }; y=1; while (x > 2) { x /= 2; y *= 2}; ".
54 "printf \"%d%cB RAM\",y,substr(\"MG\",n,1) }' ")?> - Located in Paris,
55 France. Tank is also monitored by RRDtool which provides
56 <a href="graphs.php">graphical stats</a>.
57 </p>
58 </div>
59 </div>
61 <!-- Content -->
62 <div id="content">
64 <h2><a href="graphs.php"><img
65 style="vertical-align: middle; padding: 0 4px 4px 0;"
66 title="Tank RRDtool graphs" alt="graphs"
67 src="images/monitor.png" /></a>System stats</h2>
69 <h4>Uptime</h4>
71 <pre>
72 <?php
73 system("uptime | sed 's/^\s*//'");
74 ?>
75 </pre>
77 <h4>Disk usage</h4>
78 <pre>
79 <?php
80 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; }");
81 system("df -h | sed '/^rootfs/d' | grep '\(^/dev\|Filesystem\)'");
82 ?>
83 </pre>
85 <h4>Network</h4>
86 <pre>
87 <?php
88 system("ifconfig eth0 | awk '{ if (/X packet/ || /X byte/) print }' | sed 's/^\s*//'");
89 ?>
90 </pre>
92 <h2><a href="/stats/awstats.pl?config=www.slitaz.org"><img
93 style="padding: 0 4px 4px 0;" title="Tank Virtual hosts" alt="vhosts"
94 src="images/network.png" /></a>Virtual hosts</h2>
96 <ul>
97 <!-- <li><a href="http://pkgs.slitaz.org/">pkgs.slitaz.org</a> - Packages Web interface.
98 (<a href="/stats/awstats.pl?config=pkgs.slitaz.org">stats</a>)</li> -->
99 <li><a href="http://boot.slitaz.org/">boot.slitaz.org</a> - SliTaz Web boot.
100 (<a href="/stats/awstats.pl?config=boot.slitaz.org">stats</a>)</li>
101 <!-- <li><a href="http://hg.slitaz.org/?sort=lastchange">hg.slitaz.org</a> - Mercurial repositories.
102 (<a href="/stats/awstats.pl?config=hg.slitaz.org">stats</a>)</li> -->
103 <li><a href="http://cook.slitaz.org/">cook.slitaz.org</a> - SliTaz Build Bot.
104 (<a href="/stats/awstats.pl?config=cook.slitaz.org">stats</a>)</li>
105 <li><a href="http://people.slitaz.org/">people.slitaz.org</a> - SliTaz People stuff.
106 (<a href="/stats/awstats.pl?config=people.slitaz.org">stats</a>)</li>
107 <li><a href="http://roadmap.slitaz.org/">roadmap.slitaz.org</a> -
108 SliTaz Roadmap.
109 (<a href="/stats/awstats.pl?config=roadmap.slitaz.org">stats</a>)</li>
110 <li><a href="http://bugs.slitaz.org/">bugs.slitaz.org</a> -
111 SliTaz Bug Tracker.
112 (<a href="/stats/awstats.pl?config=bugs.slitaz.org">stats</a>)</li>
113 <li><a href="http://irc.slitaz.org/">irc.slitaz.org</a> -
114 SliTaz IRC logs and webchat.
115 (<a href="/stats/awstats.pl?config=irc.slitaz.org">stats</a>)</li>
116 <li><a href="http://try.slitaz.org/">try.slitaz.org</a> -
117 To try some CGI scripts and other web services.
118 (<a href="/stats/awstats.pl?config=try.slitaz.org">stats</a>)</li>
119 </ul>
121 <h2>Tank Log</h2>
123 <pre>
124 <?php
125 system("tac /var/log/tank.log | head -50");
126 ?>
127 </pre>
129 <!-- End of content -->
130 </div>
132 <?php include("lib/html/footer.html"); ?>
134 </body>
135 </html>