I added "depend ...." lines to some of my services in my mon.cf, and
also "dep_behavior = hm"
I am using mon-1.2.0 where I added
use strict;
use warnings;
for debugging purpose.
I get
Use of uninitialized value in concatenation (.) or string at
/symlnks/common/dsnmon/2.0/mond line 5324
This happens at
} elsif ($watch{$group}->{$service}{"_last_failure_time"} >= (time -
$watch{$group}->{$service}{"dep_memory"})) {
, it seems that $watch{$group}->{$service}{"_last_failure_time"} is
undefined.
The unix command "grep _last_failure_time mon"
$depval = $SUCCESS{$sref->{"_op_status"}} &&
($sref->{"_last_failure_time"} < (time - $sref->{"dep_memory"}));
&& ($sref->{"_last_failure_time"} < (time -
$sref->{"dep_memory"}));
} elsif ($watch{$group}->{$service}{"_last_failure_time"} >=
(time - $watch{$group}->{$service}{"dep_memory"})) {
shows that $sref->{"_last_failure_time"} is used but never set !!!!.
_______________________________________________
mon mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/mon