tazpanel rev 163
index.cgi: add filesystem info & boot log in report
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Apr 22 09:43:58 2011 +0200 (2011-04-22) |
parents | f60dbe1151cb |
children | ebf9e3bf4313 |
files | index.cgi |
line diff
1.1 --- a/index.cgi Fri Apr 22 01:59:42 2011 +0000 1.2 +++ b/index.cgi Fri Apr 22 09:43:58 2011 +0200 1.3 @@ -119,6 +119,7 @@ 1.4 echo '</pre>' ;; 1.5 *\ report\ *) 1.6 TITLE="- $(gettext "System report")" 1.7 + [ -d /var/cache/slitaz ] || mkdir -p /var/cache/slitaz 1.8 output=/var/cache/slitaz/sys-report.html 1.9 xhtml_header 1.10 echo "<h2>$(gettext "Reporting to:") $output</h2>" 1.11 @@ -143,7 +144,7 @@ 1.12 <h1>SliTaz system report</h1> 1.13 Date: $(date) 1.14 <pre> 1.15 -uptime :$(uptime) 1.16 +uptime : $(uptime) 1.17 cmdline : $(cat /proc/cmdline) 1.18 version : $(cat /etc/slitaz-release) 1.19 packages : $(ls /var/lib/tazpkg/installed | wc -l) installed 1.20 @@ -181,6 +182,50 @@ 1.21 <pre> 1.22 $(ifconfig -a) 1.23 </pre> 1.24 +<h2>route -n</h2> 1.25 +<pre> 1.26 +$(route -n) 1.27 +</pre> 1.28 +<h2>/etc/resolv.conf</h2> 1.29 +<pre> 1.30 +$(cat /etc/resolv.conf) 1.31 +</pre> 1.32 +EOT 1.33 + ok_status 1.34 + gettext "Getting filesystems info..." 1.35 + cat >> $output << EOT 1.36 +<h2>blkid</h2> 1.37 +<pre> 1.38 +$(blkid) 1.39 +</pre> 1.40 +<h2>fdisk -l</h2> 1.41 +<pre> 1.42 +$(fdisk -l) 1.43 +</pre> 1.44 +<h2>mount</h2> 1.45 +<pre> 1.46 +$(mount) 1.47 +</pre> 1.48 +<h2>df -h</h2> 1.49 +<pre> 1.50 +$(df -h) 1.51 +</pre> 1.52 +<h2>df -i</h2> 1.53 +<pre> 1.54 +$(df -i) 1.55 +</pre> 1.56 +EOT 1.57 + ok_status 1.58 + gettext "Getting boot logs... " 1.59 + cat >> $output << EOT 1.60 +<h2>$(gettext "Kernel messages")</h2> 1.61 +<pre> 1.62 +$(cat /var/log/dmesg.log) 1.63 +</pre> 1.64 +<h2>$(gettext "Boot scripts")</h2> 1.65 +<pre> 1.66 +$(cat /var/log/boot.log | filter_taztools_msgs) 1.67 +</pre> 1.68 EOT 1.69 ok_status 1.70 gettext "Creating report footer... "