Hi list,
Having some issues with $BBALPHAMSG value .. the tail of the monitor script looks like this:
$state="green"; $cond="It's All Good!";
foreach $file (@files) {
next if ( ! -e $file );
$st = stat($file);
$delta = time() - $st->mtime;
if ( $delta > $limit ) {
$fwtk_component = "relay" if $file =~ /relay/;
$fwtk_component = "gwproxy" if $file =~ /gwp/;
$state="red";
$cond="$fwtk_component needs to be restarted, Toolkit log $file has not been modified for $delta seconds."
}
}
$line ="status $host.$test $state $now $cond";
`$ENV{'BB'} $ENV{'BBDISP'} \"$line\"`;
I'd expect $cond to be assigned to $BBALPHAMSG available for the ext notification script but this is not the case.
Did I understand this right? What part exactly from the monitor script is assigned to $BBALPHAMSG?
Thanks,
-ari