|
@@ -39,6 +39,8 @@ use warnings;
|
|
|
|
|
|
use utf8;
|
|
|
|
|
|
+use Data::Dumper;
|
|
|
+
|
|
|
use POSIX qw( :termios_h );
|
|
|
use Nagios::Plugin;
|
|
|
|
|
@@ -284,6 +286,8 @@ sub send_query
|
|
|
$res = $device->$query();
|
|
|
}
|
|
|
|
|
|
+ verbose(5, "Got response: " . Dumper(\$res));
|
|
|
+
|
|
|
if (! ref $res) {
|
|
|
return "ERROR: Failed to execute query '$query'";
|
|
|
}
|