#!/bin/sh
# -*- coding: utf-8 -*-
printf "Content-type: text/html; charset=UTF-8\n"
printf "\n"
printf '
\n'
printf 'time: | %s |
\n' "$(/bin/date +'%A, %d.%m.%Y - %H:%M:%S %Z')"
printf ' |
\n'
printf 'os: | %s |
\n' "$(lsb_release -sd)"
cat /proc/loadavg | awk '{printf "load: | %s %s %s |
\n", $1, $2, $3}'
printf 'disk space: | used: %s | free: %s |
\n' "$(df -h / | tail -1 | awk '{print $3}')" "$(df -h / | tail -1 | awk '{print $4}')"
printf '
'
exit 0