All public logs
Jump to navigation
Jump to search
Combined display of all available logs of Da Nerd Mage Wiki. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).
- 17:01, 14 April 2023 Tinker talk contribs created page Linux - Stats over MQTT (Created page with "=== /usr/local/bin/MQTTstats.sh === <syntaxhighlight lang="sh" line="1"> # Get uptime if [ -f "/proc/uptime" ]; then uptime=`cat /proc/uptime` uptime=${uptime%%.*} seconds=$(( uptime%60 )) minutes=$(( uptime/60%60 )) hours=$(( uptime/60/60%24 )) days=$(( uptime/60/60/24 )) fi # Get loadavg if [ -f "/proc/loadavg" ]; then OneMin=`cat /proc/loadavg {{!}} cut -b 1-4` FiveMin=`cat /proc/loadavg {{!}} cut -b 6-9` FifteenMin=`cat /proc/loadavg {{!}} cut -b 11-14` fi # Get %...")