|
From: Tim C. <TC...@Bu...> - 2006-07-14 19:28:27
|
Here's a snippet of my mon config (posted below).
=20
The man output for the redistribute option is:
=20
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.
=20
So basically, I'm using the command "redistribute trap.alert
mainmonitor" to send whatever the=20
latest status check (via trap.alert) is for each of my services to my
main monitoring server
(with a hostname of mainmonitor).
=20
=20
Config file:
=20
#
# Global Options
#
=20
alertdir=3D /opt/mon/alert.d
mondir =3D /opt/mon/mon.d
logdir =3D /var/log/mon
historicfile =3D /var/log/mon/history
maxprocs =3D 20
histlength =3D 100
randstart =3D 60s
=20
#
# Downtime logging
#
=20
dtlogging =3D yes
dtlogfile =3D /var/log/mon/mondtlog
=20
#
# define groups of hosts to monitor
#
=20
hostgroup Store13-1 myip
=20
=20
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
=20
Thanks,
Tim
________________________________
From: web...@li...
[mailto:web...@li...] On Behalf Of Jamie
Cameron
Sent: Friday, July 14, 2006 2:11 PM
To: Webmin users list
Subject: Re: [webmin-l] Question about the MON monitoring component
=20
Hi Tim,
This looks like a bug in Webmin, caused by a new directive in the mon
configuration file that it cannot handle yet. If you could send me your
mon.cf file, I'd be glad to update Webmin to fix it..
- Jamie
|