fping.c:216: conflicting types for sys_errlist /usr/include/stdio.h:221: previous declaration of sys_errlist make: *** [fping.o] Error 1Comment out line 221 in fping.c, since it's a re-declaration of an extern in stdio.h.
"mon" has been assigned a port of 2583 by the IANA. If you're running an older version of mon (0.37), then you should change the default port from 32777 to 2583 by editing the code in the server (change "$SERVPORT = 32777" to "$SERVPORT = 2583") and the clients.
Time::Period uses the same mechanism.
For more information, see Year 2000 Compliance: Lawyers, Liars, and Perl
    watch newkernel
	    service telnet
		interval 8m
		monitor telnet.monitor
		period wd {Sun-Sat}
		    alert mail.alert mis
		    alertafter 3 30m
		    alertevery 2h
    
    This effectively means, "alert after 3 or more failures that happen
    within 30 minutes."
    In the case of pinging a host, here's a neat hack:
    watch hostgroup
	    service fping
		interval 6m
		monitor fping.monitor -r 4 -t 60000
		period wd {Sun-Sat}
		    alert mail.alert mis
		    alertevery 1h
    
    This makes fping return a failure for a host that doesn't
    answer in 4 pings, with 60 seconds between each ping.
    
    On Mon, 12 Jan 1998, Thomas Mike Michlmayr (mike@cosy.sbg.ac.at) wrote:
    > hi!
    >
    > i'm trying to setup mon here at our department, and one of the features i'm
    > either missing or overlooking is the possibility to include hostgroups in
    > a hostgroup.
    > 
    > is this deliberatly, or just something noone thought of?
    
    This is deliberate. I've thought about it a good bit and I decided to
    not implement it in the mon config parser because it didn't make too
    much sense to me. The only function that sub-hostgroups would serve is
    essentially for clarity in the configuration file.
    To do what you want, it would be trivial to make an m4-based configuration, in which you define your hostgroups like this:
    define(`HOSTGROUP1',`host1 host2 host3')dnl
    define(`HOSTGROUP2',`host4 host5 host6')dnl
    hostgroup real_hostgroup HOSTGROUP1 HOSTGROUP2
    
    and just do "m4 mon.cf.m4 > mon.cf" and you will end up
    with this:
    
    hostgroup real_hostgroup host1 host2 host3 host4 host5 host6