Files

13 lines
387 B
Bash
Raw Permalink Normal View History

2025-03-24 21:33:34 +00:00
#!/bin/bash
# runs every 5 minutes
echo "$( date ) updateRRDs monitor"
# all this is started from cron, met HOME folder -> the root of this project
cd monitor >/dev/null 2>&1 # this only works if we start it from CRON, else ignored
df | ./monitorDisks.py
top -b -n 5 -p0 | tail -9 | ./monitorTop.py
# top -b -n 1 | tee /tmp/top/$(date +"%H%M").log | ./monitorTop.py
# ./monitorNet.sh