Hi:
It looks to me like an up alert won't get the right
monitor output on its stdin: it's getting the same output
that's in MON_LAST_OUTPUT, not the output from the monitor
that noticed the service came back up. The enclosed patch
better illustrates what I mean.
Is this correct? Or do I misunderstand what input an up alert should see?
Chris <[EMAIL PROTECTED]>.
--- ./mon Sat Sep 8 09:42:05 2001
+++ /usr/mon/mon Thu Sep 19 15:26:31 2002
@@ -2865,7 +2865,8 @@
if (defined($sref->{"_upalert"}) && $tmnow - $sref->{"_first_failure"}
>=
$sref->{"upalertafter"})
{
- do_alert ($group, $service, $sref->{"_last_output"}, 0,
$FL_UPALERT);
+# do_alert ($group, $service, $sref->{"_last_output"}, 0,
+$FL_UPALERT);
+ do_alert ($group, $service, $ibufs{$runningpid{$p}}, 0,
+$FL_UPALERT);
}
}