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($$$;$) { ...@@ -726,8 +726,9 @@ sub snmpitDoIt($$$;$) {
} else { } else {
$type = "set"; $type = "set";
} }
$snmpitErrorString = "SNMPIT $type failed - variable was " . $snmpitErrorString = "SNMPIT $type failed for device " .
printVars($var) . "\n"; "$sess->{DestHost} (try $retry of $retries)\n";
$snmpitErrorString .= "Variable was " . printVars($var) . "\n";
$snmpitErrorString .= "Returned $status, ErrorNum was " . $snmpitErrorString .= "Returned $status, ErrorNum was " .
"$sess->{ErrorNum}\n"; "$sess->{ErrorNum}\n";
if ($sess->{ErrorStr}) { 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