diff options
author | Kristian Lyngstol <kristian@bohemians.org> | 2016-11-11 12:31:01 +0100 |
---|---|---|
committer | Kristian Lyngstol <kristian@bohemians.org> | 2016-11-11 12:31:01 +0100 |
commit | a611aeff3cf50c3cdd56d76a66e7795df57b375e (patch) | |
tree | a57cb1d0c26790eefb2705bbfff3e10cce995590 /build/test/snmpfetch-misc.sh | |
parent | 2e0babfe617b32a8b4969e68ee903f0ded3c9a39 (diff) |
Move mibs into data directory and automatically fetch them
Diffstat (limited to 'build/test/snmpfetch-misc.sh')
-rwxr-xr-x | build/test/snmpfetch-misc.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/build/test/snmpfetch-misc.sh b/build/test/snmpfetch-misc.sh index 95b005f..0453c59 100755 --- a/build/test/snmpfetch-misc.sh +++ b/build/test/snmpfetch-misc.sh @@ -1,3 +1,7 @@ #!/bin/bash service snmpd start +cd /opt/gondul/data +if [ ! -d mibs ]; then + ../extras/tools/get_mibs.sh +fi exec /opt/gondul/collectors/snmpfetchng.pl |