Commit Diff


commit - db7236fb1a1047705352c144f4b8c0edef0cf3af
commit + 7c02cf83d68d74da6637dec4b5aa5e17dd4c38b2
blob - c38ea58e04a78127a1294e31c955987cb3105076
blob + 92cf9d7e9ff62f22ff67377a70e25ad179dff9fa
--- cores.sh
+++ cores.sh
@@ -16,7 +16,7 @@ test -n "$1" || exit 1
 HOST="$1"
 COMMUNITY="public"
 RRDFILES="/home/mischa/rrd"
-IMAGES="/var/www/mrtg/obsda.ms"
+IMAGES="/var/www/rrdtool/obsda.ms"
 WATERMARK="OpenBSD Amsterdam - https://obsda.ms"
 RRDTOOL="/usr/local/bin/rrdtool"
 CPUINFO="/tmp/${HOST}-cores.txt"
blob - e083ac3c990dd29436a1a34abe8021839b0f0700
blob + 636c475e4e3a934df88799cb1d4587bfc48e8c4b
--- cpu_load.sh
+++ cpu_load.sh
@@ -16,7 +16,7 @@ test -n "$1" || exit 1
 HOST="$1"
 COMMUNITY="public"
 RRDFILES="/home/mischa/rrd"
-IMAGES="/var/www/mrtg/obsda.ms"
+IMAGES="/var/www/rrdtool/obsda.ms"
 WATERMARK="OpenBSD Amsterdam - https://obsda.ms"
 RRDTOOL="/usr/local/bin/rrdtool"
 CPUINFO="/tmp/${HOST}-cpu.txt"
blob - ce80b0dec3c74360b937521e8648302369ec6184
blob + ea7cc254be2fa7a5fb8ea0e7c5cbe45de6160b9e
--- interface.sh
+++ interface.sh
@@ -12,6 +12,8 @@
 # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 # SUCH DAMAGE.
 #
+# Get list of interfaces with: snmpctl snmp walk <host> community public oid ifDescr
+#
 test -n "$1" || exit 1
 test -n "$2" || exit 1
 HOST="$1"
@@ -19,7 +21,7 @@ INTERFACE="$2"
 COMMUNITY="public"
 RRDFILES="/home/mischa/rrd"
 WATERMARK="OpenBSD Amsterdam - https://obsda.ms"
-IMAGES="/var/www/mrtg/obsda.ms"
+IMAGES="/var/www/rrdtool/obsda.ms"
 RRDTOOL="/usr/local/bin/rrdtool"
 UPTIME=$(cat /tmp/${HOST}-uptime.txt)
 VERSION=$(cat /tmp/${HOST}-version.txt)
blob - 85cbc5abebc59ecd4ee54fbd48a543d00a1b1464
blob + 4b0e6fc11ca6223e454863f967ec6a6582235753
--- wrapper.sh
+++ wrapper.sh
@@ -14,15 +14,17 @@
 #
 SCRIPTS="/home/mischa/rrdtool"
 
-for i in $(jot 8 0); do ${SCRIPTS}/uptime.sh s${i}.obsda.ms; done
-for i in $(jot 8 0); do ${SCRIPTS}/version.sh s${i}.obsda.ms; done
-for i in $(jot 8 0); do ${SCRIPTS}/cpu_load.sh s${i}.obsda.ms; done
-${SCRIPTS}/interface.sh s0.obsda.ms 9
+for i in $(jot 11); do ${SCRIPTS}/uptime.sh s${i}.obsda.ms; done
+for i in $(jot 11); do ${SCRIPTS}/version.sh s${i}.obsda.ms; done
+for i in $(jot 11); do ${SCRIPTS}/cpu_load.sh s${i}.obsda.ms; done
 ${SCRIPTS}/interface.sh s1.obsda.ms 12
-${SCRIPTS}/interface.sh s2.obsda.ms 8
+${SCRIPTS}/interface.sh s2.obsda.ms 6
 ${SCRIPTS}/interface.sh s3.obsda.ms 12
 ${SCRIPTS}/interface.sh s4.obsda.ms 12
 ${SCRIPTS}/interface.sh s5.obsda.ms 12
 ${SCRIPTS}/interface.sh s6.obsda.ms 12
-${SCRIPTS}/interface.sh s7.obsda.ms 11
-#${SCRIPTS}/cores.sh s3.obsda.ms
+${SCRIPTS}/interface.sh s7.obsda.ms 12
+${SCRIPTS}/interface.sh s8.obsda.ms 12
+${SCRIPTS}/interface.sh s9.obsda.ms 12
+${SCRIPTS}/interface.sh s10.obsda.ms 12
+${SCRIPTS}/interface.sh s11.obsda.ms 12