Commit d1791a25 authored by Robert Ricci's avatar Robert Ricci

Added a bit more information to the error messages.

parent 3c29b0b0
......@@ -726,8 +726,9 @@ sub snmpitDoIt($$$;$) {
} else {
$type = "set";
}
$snmpitErrorString = "SNMPIT $type failed - variable was " .
printVars($var) . "\n";
$snmpitErrorString = "SNMPIT $type failed for device " .
"$sess->{DestHost} (try $retry of $retries)\n";
$snmpitErrorString .= "Variable was " . printVars($var) . "\n";
$snmpitErrorString .= "Returned $status, ErrorNum was " .
"$sess->{ErrorNum}\n";
if ($sess->{ErrorStr}) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment