Hi,
While trying to figure out why I wasn't getting paged by mon (incorrect
PATH problem :-), I believe I've stumbled unto a buglet in qpage.alert.
It does:
if (system("qpage...")) { die "..."; }
qpage actually returns a "0" for success, so this was failing. You still
receive the page (since qpage worked :-), but it was executing the die
statement. I've attached a patch for this. BTW, is the die message
logged somewhere that I should have found this?
...dave
--- /usr/lib/mon/alert.d/qpage.alert Thu Oct 11 14:43:47 2001
+++ qpage.alert Wed Oct 17 09:01:21 2001
@@ -67,9 +67,9 @@
else
{
- if (!system ("qpage -p $pagedest " .
+ if (system ("qpage -p $pagedest " .
"'$ALERT $opt_g/$opt_s: $summary ($wday $mon $day $tm)'" .
- "2>/dev/null"))
+ "2>/dev/null") != 0)
{
die "could not open pipe to qpage: $?\n";
}