|
From: Jamie C. <jca...@we...> - 2006-07-14 20:23:17
|
On 14/Jul/2006 12:28 Tim Carr wrote ..
> Here's a snippet of my mon config (posted below).
>
>
>
> The man output for the redistribute option is:
>
>
>
> redistribute alert [arg...]
>
> A service may have one redistribute option, which is a special form
> of an alert definition.
>
> This alert will be called on every service status update, even
> sequential success status
>
> updates. This can be used to integrate Mon with another monitoring
> system, or to link together
>
> multiple Mon servers via an alert script that generates Mon traps.
> See the "ALERT PROGRAMS"
>
> section above for a list of the parameters mon will pass
> automatically to alert programs.
>
>
>
> So basically, I'm using the command "redistribute trap.alert
> mainmonitor" to send whatever the
>
> latest status check (via trap.alert) is for each of my services to my
> main monitoring server
>
> (with a hostname of mainmonitor).
>
>
>
>
>
> Config file:
>
>
>
> #
>
> # Global Options
>
> #
>
>
>
> alertdir= /opt/mon/alert.d
>
> mondir = /opt/mon/mon.d
>
> logdir = /var/log/mon
>
> historicfile = /var/log/mon/history
>
> maxprocs = 20
>
> histlength = 100
>
> randstart = 60s
>
>
>
> #
>
> # Downtime logging
>
> #
>
>
>
> dtlogging = yes
>
> dtlogfile = /var/log/mon/mondtlog
>
>
>
> #
>
> # define groups of hosts to monitor
>
> #
>
>
>
> hostgroup Store13-1 myip
>
>
>
>
>
> watch Store13-1
>
> service Ping_Myself
>
> interval 1m
>
> monitor fping.monitor
>
> description Can I ping myself?
>
> redistribute trap.alert mainmonitor
>
> period wd {Mon-Sun}
>
> alert trap.alert mainmonitor
>
> upalert trap.alert mainmonitor
>
> service Freespace_Root_80
>
> interval 1m
>
> monitor freespace.monitor /:20%
>
> description Check for at least 20% free space on the root
> partition
>
> redistribute trap.alert mainmonitor
>
> period wd {Mon-Sun}
>
> alert trap.alert mainmonitor
>
> upalert trap.alert mainmonitor
>
Thanks for the info - I will update the next Webmin release to
handle this format. In the short term, you can edit the file mon/mon-lib.pl
under the Webmin root directory, and change line 16 to :
'failure_interval', 'redistribute' ],
- Jamie
|