On Thu, Dec 06, 2007 at 04:18:01PM -0700, Osburn, Michael wrote:
...
>    ### group definitions (hostnames or IP addresses)
>    hostgroup servers 127.0.0.1
>    watch servers
>        service http
>            interval 5m
>            monitor http.monitor
>            period wd {Mon-Fri} hr {7am-10pm}
>                alert mail.alert [EMAIL PROTECTED]
>                alertevery 1m
>            period wd {Sat-Sun}
>                alert mail.alert [EMAIL PROTECTED]
...


You need a blank line after every hostgroup definition, as described
in the mon man page:

 Hostgroup Entries
     Hostgroup entries begin with the keyword hostgroup, and are followed by
     a hostgroup tag and one or more hostnames or IP addresses, separated by
     whitespace.  The hostgroup tag must be composed of alphanumeric charac-
     ters, a dash ("-"), a period ("."), or an underscore  ("_").  Non-blank
     lines  following the first hostgroup line are interpreted as more host-
     names.  The hostgroup definition ends with a blank line. For example:

            hostgroup servers nameserver smtpserver nntpserver
                 nfsserver httpserver smbserver

            hostgroup router_group cisco7000 agsplus


_______________________________________________
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon

Reply via email to