summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2006-08-30 10:33:17 +0200
committerTobi Oetiker <tobi@oetiker.ch>2006-08-30 10:33:17 +0200
commitdd3accda13569f43b6aa83025698a3a247b2c5a1 (patch)
tree7a124b249d2711fa55d0a638b6efe3ba700daf9d
parentc4c40a6046548f022440d8ccfdae49da9fa3a5e5 (diff)
downloadsmokeping-dd3accda13569f43b6aa83025698a3a247b2c5a1.tar.gz
smokeping-dd3accda13569f43b6aa83025698a3a247b2c5a1.tar.xz
log the fact that no replies came back from a device
-rw-r--r--CHANGES1
-rw-r--r--lib/Smokeping/probes/base.pm1
2 files changed, 2 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index 562db7e..8b71294 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,4 @@
+* create a log entry when there are zero replies from a device.
* maintaining trunk and branch is not realy sensible the way smokeping evolves.
I have merged everything back to trunk -- tobi
* Allow several Mailservers to be specified in Mailhost -- tobi
diff --git a/lib/Smokeping/probes/base.pm b/lib/Smokeping/probes/base.pm
index c0525b6..4a83b50 100644
--- a/lib/Smokeping/probes/base.pm
+++ b/lib/Smokeping/probes/base.pm
@@ -131,6 +131,7 @@ sub rrdupdate_string($$)
$age = 'U';
}
if ( $entries == 0 ){
+ $self->do_log("Warning: got zero answers from $tree->{addr}($tree->{probe}) $self->{targets}{$tree}");
$age = 'U';
$loss = 'U';
if ( -f $dynbase.".adr"