Making sense of the output in a graphical way

sysstat sysstat-ops sysstat-graph

assuming you got sysstat installed already

Send to TSDB with Fluent-Bit

maybe you would prefer to parse specific commands' output to fluent-bit then vmetrics.

Built-in performance graphs

switch to sar command line options by specifying --

vi ~/sysstat-graphs.bash

#!/bin/bash

mkdir -p /var/www/html/sysstat/
cd /var/www/html/sysstat/
sadf -g -s 00:00:00 -e 23:59:59 -T -- -u > cpu.svg
sadf -g -s 00:00:00 -e 23:59:59 -T -- -q > load.svg
sadf -g -s 00:00:00 -e 23:59:59 -T -- -w > processes.svg
sadf -g -s 00:00:00 -e 23:59:59 -T -- -r > ram.svg
sadf -g -s 00:00:00 -e 23:59:59 -T -- -B > paging.svg
sadf -g -s 00:00:00 -e 23:59:59 -T -- -S > swap.svg
sadf -g -s 00:00:00 -e 23:59:59 -T -- -d > io.svg
sadf -g -s 00:00:00 -e 23:59:59 -T -- -b > io2.svg
sadf -g -s 00:00:00 -e 23:59:59 -T -- -n EDEV --iface=xenbr0 > network.svg

chmod +x ~/sysstat-graphs.bash

Resources

SAR command in Linux to monitor system performance https://www.geeksforgeeks.org/sar-command-linux-monitor-system-performance/

Network Monitoring using SAR https://medium.com/@malith.jayasinghe/network-monitoring-using-sar-37bab6ce9f68

graphs

System Monitoring with Sar https://tomfern.com/posts/sar-guide


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun