add error when SNMP does not respond to plugin.
git-svn-id: http://svn.centreon.com/trunk/plugins-2.x@11112 6bcd3966-0018-0410-8128-fd23d134de7e
This commit is contained in:
parent
bfcc0a827e
commit
2922782c2f
|
@ -254,6 +254,11 @@ if ($mustCreateFile) {
|
||||||
print FILE $interfaceIndex.";".$result->{$key}."\n";
|
print FILE $interfaceIndex.";".$result->{$key}."\n";
|
||||||
}
|
}
|
||||||
close(FILE);
|
close(FILE);
|
||||||
|
} else {
|
||||||
|
if (!$result) {
|
||||||
|
printf("ERROR: Cannot get SNMP info : %s", $session->error);
|
||||||
|
exit $ERRORS{'UNKNOWN'};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue