aboutsummaryrefslogtreecommitdiffstats
path: root/clients/snmpfetchng.pl
diff options
context:
space:
mode:
authorNicolai Tellefsen <niccofyren@gmail.com>2016-03-22 16:08:48 +0100
committerNicolai Tellefsen <niccofyren@gmail.com>2016-03-22 16:08:48 +0100
commita279d087b85ad537172dae627c2793884f1b9f73 (patch)
tree3fed5518e35182e60c62248c6ac77883d4dca15d /clients/snmpfetchng.pl
parent110b939413ebc7a1b4ef1dc5a5988477d9c594bd (diff)
parent72fb92979ca3dbbbeb55159ce3a9404b8ba49099 (diff)
Merge branch 'master' of https://github.com/tech-server/tgmanage
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