dot

packages and services management
Log | Files | Refs | README

commit 6a2b1015260544455a6c09bf0ccc7ab869318502
parent 94a62723b001fd2c847b055575f139270ce26717
Author: Josuah Demangeon <mail@josuah.net>
Date:   Fri, 16 Feb 2018 10:47:29 +0100

Merge branch 'master' of josuah.net:srv/git/etc

Diffstat:
Mbin/collectd-ploot | 10+++++-----
Mbin/ghttpd | 4+++-
2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/bin/collectd-ploot b/bin/collectd-ploot @@ -9,23 +9,23 @@ do sed '1 d; s/,/ /' \ "$host/cpu/percent-idle-$(date +%Y-%m-%d)" | - ploot -o 10 -t 'cpu idle %' + ploot -o 900 -t 'cpu idle %' sed '1 d; s/,/ /' \ "$host/cpu/percent-user-$(date +%Y-%m-%d)" | - ploot -o 10 -t 'cpu user %' + ploot -o 900 -t 'cpu user %' sed '1 d; s/,/ /' \ "$host/cpu/percent-system-$(date +%Y-%m-%d)" | - ploot -o 10 -t 'cpu system %' + ploot -o 900 -t 'cpu system %' sed '1 d; s/,/ /' \ "$host/cpu/percent-interrupt-$(date +%Y-%m-%d)" | - ploot -o 10 -t 'cpu interrupt %' + ploot -o 900 -t 'cpu interrupt %' sed '1 d; s/,/ /g' \ "$host/load/load-relative-$(date +%Y-%m-%d)" | - cut -d' ' -f1-2 | ploot -o 10 -t 'load average' + cut -d' ' -f1-2 | ploot -o 900 -t 'load average' printf '\n' diff --git a/bin/ghttpd b/bin/ghttpd @@ -57,7 +57,9 @@ END { if (flag == "1" || flag == "") { print("Content-Type: text/html; charset=UTF-8\r"); print("\r"); - print("<!doctype html><title>" HOST "</title><pre>"); + print("<!doctype html><title>" HOST "</title>"); + print("<style>a { text-decoration:none; color:#077; }</style>"); + print("<pre style=\"width: 80ch; margin: auto;\">"); while (cmd | getline) { sub("\r$", "");