Skip to content

Commit b17c54b

Browse files
committed
a bit more debugging
1 parent 5c8935c commit b17c54b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

esensors-websensor/plugins/check_esensor.pl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,7 @@ sub read_sensor {
503503
if ($@) {
504504
die $@ if $didalarm != 1;
505505
&debug("timeout $timeout expired during sensor read\n");
506+
&debug("data received from sensor: $response\n");
506507
print "Unable to read sensor (timeout $timeout seconds expired)\n";
507508
exit($ERRORS{'UNKNOWN'});
508509
}
@@ -513,6 +514,7 @@ sub read_sensor {
513514
#
514515
# https://github.com/pashol/nagios-checks/commit/31cdba775a226672207f92d2e9e5e3365ac88a54#diff-262e64bf9a35e13ebbec3d1c8ab6856b
515516
print "No values received from sensor\n";
517+
&debug("data received from sensor: $response\n");
516518
exit($ERRORS{'UNKNOWN'});
517519
}
518520
}

0 commit comments

Comments
 (0)