#!/usr/bin/env sh
# -*- coding: utf-8 -*-
printf "Content-type: text/html; charset=UTF-8\n"
printf "\n"

printf '<table>\n'
printf '<tr><td width="130px">time:</td><td>%s</td></tr>\n' "$(/bin/date +'%A, %d.%m.%Y - %H:%M:%S %Z')"
printf '<tr><td>&nbsp;</td></tr>\n'
printf '<tr><td>os:</td><td>%s</td></tr>\n' "$(lsb_release -sd)"
cat /proc/loadavg | awk '{printf "<tr><td>load:</td><td>%s %s %s</td></tr>\n", $1, $2, $3}'
printf '<tr><td>disk space:</td><td>used: %s &#124; free: %s</td></tr>\n' "$(df -h / | tail -1 | awk '{print $3}')" "$(df -h / | tail -1 | awk '{print $4}')"

printf '</table>'

#
exit 0

