diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1174c39 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +snmp.conf diff --git a/snmp.conf-sample b/snmp.conf-sample new file mode 100755 index 0000000..cb98fa4 --- /dev/null +++ b/snmp.conf-sample @@ -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')