bizcochito.onion/webpage/static/stats/index.cgi

16 lines
498 B
Plaintext
Raw Normal View History

#!/bin/sh
echo "Content-Type: text/plain"
echo
echo "This is \"`hostname`\" server running `uname -srm` on `lscpu -J | jq -r '.lscpu[2].data'` * `lscpu -J | jq -r '.lscpu[7].data'` `lscpu -J | jq -r '.lscpu[9].data'` CPU @ `lscpu -J | jq -r '.lscpu[11].data'` MHz."
echo
uptime
echo "System stats"
echo "=================================="
echo "Processes:\t RUN: `ps -r | wc -l`, TOTAL: `ps -A | wc -l`"
head -n 2 /proc/meminfo
echo
echo "Generated on `date -R`."
echo
echo "https://yari.fai.st"