On Fri, Oct 18, 2002 at 08:52:21AM -0700,
 Andrew Ryan <[EMAIL PROTECTED]> wrote 
 a message of 54 lines which said:

> mon.cgi already has this functionality built in.

No, I do not think so.

> There is no need to rename your hosts, but you would need to add each host
> to the mon.cgi.cf file, like this partial list for europe:
> watch = .es .fi .gr .ie .de .cz .at .be

This does not work (nothing is shown) probably because mon.cgi does
not split the list:

                } elsif ($key eq "watch") {
                    push(@show_watch, $val);

The following patch to mon.cgi 1.52 seems to work:

--- /var/www/tac.eureg.org/mon/index.cgi~       Mon Sep  9 17:09:49 2002
+++ /var/www/tac.eureg.org/mon/index.cgi        Tue Oct 22 12:24:38 2002
@@ -3578,7 +3578,7 @@
                } elsif ($key eq "untaint_ack_msgs") {
                    $untaint_ack_msgs = $val;
                } elsif ($key eq "watch") {
-                   push(@show_watch, $val);
+                   push(@show_watch, split (' ', $val));
                } elsif ($key eq "show_watch_strict") {
                    $show_watch_strict = $val;
                } else {



_______________________________________________
mon mailing list
[EMAIL PROTECTED]
http://linux.kernel.org/mailman/listinfo/mon

Reply via email to