Changeset 175 for trunk/klask


Ignore:
Timestamp:
Aug 24, 2016, 3:13:10 PM (8 years ago)
Author:
g7moreau
Message:
  • Better error message
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/klask

    r174 r175  
    332332      if ($check_hostname) {
    333333         my ($hostname) = split /\./, $sw->{hostname}, 2;
    334          print "   error hostname: $sw->{hostname}\n" if $result->{$OID_NUMBER{sysName}} ne $hostname;
     334         print " $hostname - error internal hostname: $sw->{hostname}\n" if $result->{$OID_NUMBER{sysName}} ne $hostname;
    335335         }
    336336      if ($check_location) {
    337337         my $location = $result->{$OID_NUMBER{sysLocation}};
    338338         $location =~ s/^"(.+)"$/$1/;
    339          print "   error location: '$sw->{location}' =/= '$location'\n" if $location ne $sw->{location};
     339         print " $sw->{hostname} - error location: '$location' -> '$sw->{location}'\n" if $location ne $sw->{location};
    340340         }
    341341      #$sw->{location} = $result->{"1.3.6.1.2.1.1.6.0"} || $sw->{hostname};
Note: See TracChangeset for help on using the changeset viewer.