aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly@.no>2016-03-25 23:28:12 +0100
committerKristian Lyngstol <kly@kly@.no>2016-03-25 23:28:12 +0100
commit25409cdc01450279ce56b78ce962956a9990a175 (patch)
tree0a05737535c11f1e99897abee15f2ffd181898f0
parent875f3e404537de55d5b03abd3b0b9bec58c34d49 (diff)
Tweak linknet pings
-rwxr-xr-xclients/ping.pl2
-rwxr-xr-xclients/snmpfetchng.pl2
2 files changed, 2 insertions, 2 deletions
diff --git a/clients/ping.pl b/clients/ping.pl
index 1ad7b95..d945917 100755
--- a/clients/ping.pl
+++ b/clients/ping.pl
@@ -16,7 +16,7 @@ $dbh->{AutoCommit} = 0;
$dbh->{RaiseError} = 1;
my $q = $dbh->prepare("SELECT switch,host(mgmt_v4_addr) as ip,host(mgmt_v6_addr) as secondary_ip FROM switches WHERE mgmt_v4_addr is not null ORDER BY random()");
-my $lq = $dbh->prepare("SELECT linknet,addr1,addr2 FROM linknets");
+my $lq = $dbh->prepare("SELECT linknet,addr1,addr2 FROM linknets WHERE addr1 is not null and addr2 is not null");
while (1) {
# ping loopbacks
diff --git a/clients/snmpfetchng.pl b/clients/snmpfetchng.pl
index bbdb00d..2f5e785 100755
--- a/clients/snmpfetchng.pl
+++ b/clients/snmpfetchng.pl
@@ -10,9 +10,9 @@ use lib '../include';
use nms;
SNMP::initMib();
-SNMP::addMibDirs("/srv/tgmanage/mibs");
SNMP::addMibDirs("/srv/tgmanage/mibs/StandardMibs");
SNMP::addMibDirs("/srv/tgmanage/mibs/JuniperMibs");
+SNMP::addMibDirs("/srv/tgmanage/mibs");
SNMP::loadModules('ALL');
our $dbh = nms::db_connect();