|
From: Tim C. <TC...@Bu...> - 2006-07-20 13:31:06
|
Jamie - one other request...
Mon supports the usage of m4 for their config files. Would it be
possible to integrate that support into Webmin as well? =20
Thanks,
Tim
-----Original Message-----
From: web...@li...
[mailto:web...@li...] On Behalf Of Jamie
Cameron
Sent: Friday, July 14, 2006 3:23 PM
To: Webmin users list
Subject: Re: [webmin-l] Question about the MON monitoring component
On 14/Jul/2006 12:28 Tim Carr wrote ..
> Here's a snippet of my mon config (posted below).
>=20
> =20
>=20
> The man output for the redistribute option is:
>=20
> =20
>=20
> redistribute alert [arg...]
>=20
> A service may have one redistribute option, which is a special form
> of an alert definition.
>=20
> This alert will be called on every service status update, even
> sequential success status
>=20
> updates. This can be used to integrate Mon with another monitoring
> system, or to link together
>=20
> multiple Mon servers via an alert script that generates Mon traps.
> See the "ALERT PROGRAMS"
>=20
> section above for a list of the parameters mon will pass
> automatically to alert programs.
>=20
> =20
>=20
> So basically, I'm using the command "redistribute trap.alert
> mainmonitor" to send whatever the=20
>=20
> latest status check (via trap.alert) is for each of my services to my
> main monitoring server
>=20
> (with a hostname of mainmonitor).
>=20
> =20
>=20
> =20
>=20
> Config file:
>=20
> =20
>=20
> #
>=20
> # Global Options
>=20
> #
>=20
> =20
>=20
> alertdir=3D /opt/mon/alert.d
>=20
> mondir =3D /opt/mon/mon.d
>=20
> logdir =3D /var/log/mon
>=20
> historicfile =3D /var/log/mon/history
>=20
> maxprocs =3D 20
>=20
> histlength =3D 100
>=20
> randstart =3D 60s
>=20
> =20
>=20
> #
>=20
> # Downtime logging
>=20
> #
>=20
> =20
>=20
> dtlogging =3D yes
>=20
> dtlogfile =3D /var/log/mon/mondtlog
>=20
> =20
>=20
> #
>=20
> # define groups of hosts to monitor
>=20
> #
>=20
> =20
>=20
> hostgroup Store13-1 myip
>=20
> =20
>=20
> =20
>=20
> watch Store13-1
>=20
> service Ping_Myself
>=20
> interval 1m
>=20
> monitor fping.monitor
>=20
> description Can I ping myself?
>=20
> redistribute trap.alert mainmonitor
>=20
> period wd {Mon-Sun}
>=20
> alert trap.alert mainmonitor
>=20
> upalert trap.alert mainmonitor
>=20
> service Freespace_Root_80
>=20
> interval 1m
>=20
> monitor freespace.monitor /:20%
>=20
> description Check for at least 20% free space on the root
> partition
>=20
> redistribute trap.alert mainmonitor
>=20
> period wd {Mon-Sun}
>=20
> alert trap.alert mainmonitor
>=20
> upalert trap.alert mainmonitor
>=20
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
------------------------------------------------------------------------
-
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D=
121642
-
Forwarded by the Webmin mailing list at
web...@li...
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list
|