aboutsummaryrefslogtreecommitdiffstats
path: root/clients/snmpfetchng.pl
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly@.no>2016-03-22 16:05:04 +0100
committerKristian Lyngstol <kly@kly@.no>2016-03-22 16:05:04 +0100
commit10271b0e95a424e191926a945fe785e9cce046c1 (patch)
tree9116f8c485fda55f02f20916d3db1c81fd8a7247 /clients/snmpfetchng.pl
parent89c78bc9eab3b69fe31babe5e64f0343386f67be (diff)
NMS: Update schema to FAP
Diffstat (limited to 'clients/snmpfetchng.pl')
-rwxr-xr-xclients/snmpfetchng.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/clients/snmpfetchng.pl b/clients/snmpfetchng.pl
index 36dd675..630347d 100755
--- a/clients/snmpfetchng.pl
+++ b/clients/snmpfetchng.pl
@@ -23,13 +23,13 @@ $dbh->{RaiseError} = 1;
my $qualification = <<"EOF";
(last_updated IS NULL OR now() - last_updated > poll_frequency)
AND (locked='f' OR now() - last_updated > '15 minutes'::interval)
-AND ip is not null
+AND mgmt_v4_addr is not null
EOF
# Borrowed from snmpfetch.pl
our $qswitch = $dbh->prepare(<<"EOF")
SELECT
- sysname,switch,host(ip) as ip,community,
+ sysname,switch,host(mgmt_v4_addr) as ip,community,
DATE_TRUNC('second', now() - last_updated - poll_frequency) AS overdue
FROM
switches