diff options
| -rwxr-xr-x | clients/ping.pl | 2 | ||||
| -rwxr-xr-x | clients/snmpfetchng.pl | 2 | 
2 files changed, 2 insertions, 2 deletions
| diff --git a/clients/ping.pl b/clients/ping.pl index 47119f1..27aa878 100755 --- a/clients/ping.pl +++ b/clients/ping.pl @@ -15,7 +15,7 @@ my $dbh = nms::db_connect();  $dbh->{AutoCommit} = 0;  $dbh->{RaiseError} = 1; -my $q = $dbh->prepare("SELECT switch,ip,secondary_ip FROM switches WHERE ip is not null ORDER BY random()"); +my $q = $dbh->prepare("SELECT switch,host(ip) as ip,host(secondary_ip) as secondary_ip FROM switches WHERE ip is not null ORDER BY random()");  my $lq = $dbh->prepare("SELECT linknet,addr1,addr2 FROM linknets");  while (1) { diff --git a/clients/snmpfetchng.pl b/clients/snmpfetchng.pl index 68baddd..0a52af0 100755 --- a/clients/snmpfetchng.pl +++ b/clients/snmpfetchng.pl @@ -29,7 +29,7 @@ EOF  # Borrowed from snmpfetch.pl   our $qswitch = $dbh->prepare(<<"EOF")  SELECT  -  *, +  sysname,switch,host(ip) as ip,community,    DATE_TRUNC('second', now() - last_updated - poll_frequency) AS overdue  FROM    switches | 
