Skip to content

Monitoring

Linux logs

journalctl refresh/watch

journalctl --follow --no-tail

UPS monitoring

Reference : https://technotim.live/posts/NUT-server-guide/

Server setup

Synology NUT server setup

UPS name : ups
User : monuser
Password : secret

syno-ups-setup.png

Client setup

nut install

apt install nut-client -y
#apt-get install nut -y

nano /etc/nut/nut.conf

MODE=netclient

nano /etc/nut/upsmon.conf

MONITOR ups@10.0.0.1 1 monuser secret slave

restart client service

systemctl restart nut-client

query ups server

upsc ups@10.0.0.1

Init SSL without certificate database
battery.charge: 100
battery.charge.low: 20
battery.runtime: 1892
battery.type: PbAc
device.mfr: EATON
device.model: Ellipse PRO 850
device.serial: P347J38AT0
device.type: ups
driver.name: usbhid-ups

simulate power loss

host will shut down

upsmon -c fsd

pfsense

wan speedtest moniring

mount nfs share on nas to save out file

vi /etc/fstab

# add to fstab
10.0.0.1:/volume3/homelab/pfsense/speedtest /root/test/nasshare  nfs      defaults    0       0
pkg search speedtest
pkg install -y py38-speedtest-cli-2.1.3

cron speedtest-cli is a python app and needs to be run from /usr/local/bin/python3.11

mount -v 10.0.0.1:/volume3/homelab/pfsense/speedtest /root/test/nasshare
/usr/local/bin/python3.11 /usr/local/bin/speedtest-cli --csv --share >> /root/test/nasshare/out.csv
33070,TasmaNet Pty Ltd,Melbourne,2023-08-08T10:48:50.060176Z,0.4205159285301661,22.028,28580377.17429162,39227172.485386305,http://www.speedtest.net/result/15093015614.png,115.70.160.158
\\nas.homelab.lan\homelab\pfsense\speedtest

LibreNMS

LibreNMS

Splunk

splunk

GrayLog

graylog

Graphana

Graphana

NewRelic

NewRelic Monitoring Your content here