diff options
author | Tobi Oetiker <tobi@oetiker.ch> | 2006-08-30 10:33:17 +0200 |
---|---|---|
committer | Tobi Oetiker <tobi@oetiker.ch> | 2006-08-30 10:33:17 +0200 |
commit | dd3accda13569f43b6aa83025698a3a247b2c5a1 (patch) | |
tree | 7a124b249d2711fa55d0a638b6efe3ba700daf9d | |
parent | c4c40a6046548f022440d8ccfdae49da9fa3a5e5 (diff) | |
download | smokeping-dd3accda13569f43b6aa83025698a3a247b2c5a1.tar.gz smokeping-dd3accda13569f43b6aa83025698a3a247b2c5a1.tar.xz |
log the fact that no replies came back from a device
-rw-r--r-- | CHANGES | 1 | ||||
-rw-r--r-- | lib/Smokeping/probes/base.pm | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -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" |