master
mischa 2023-09-24 14:08:08 +02:00
parent 2c6743b8db
commit 5851e9cb55
2 changed files with 14 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
snmp.conf

13
snmp.conf-sample Executable file
View File

@ -0,0 +1,13 @@
AUTHPASS="password123"
USER="mgmt"
PRIVPASS="321drowssap"
RRDFILES="/home/mischa/rrd"
IMAGES="/var/www/rrdtool/obsda.ms"
WATERMARK="OpenBSD Amsterdam - https://obsda.ms"
RRDTOOL="/usr/local/bin/rrdtool"
CPUINFO="/tmp/${HOST}-cpu.txt"
UPTIMEINFO="/tmp/${HOST}-uptime.txt"
VERSIONINFO="/tmp/${HOST}-version.txt"
UPTIME=$(cat /tmp/${HOST}-uptime.txt)
VERSION=$(cat /tmp/${HOST}-version.txt)
NOW=$(date "+%Y-%m-%d %H:%M:%S %Z" | sed 's/:/\\:/g')