|
From: Jamie C. <jca...@we...> - 2006-07-20 16:41:27
|
That would be quite tricky, as for Webmin to be able to edit
the config file it would need to 'undo' the M4 substitions, which
is near impossible.
Solaris uses M4 in its syslog.conf file, but to handle this Webmin
runs the file through M4 the first time you open the module, to
expand all M4 directives. I could do this for Mon as well, but it
would really defeat the purpose of using M4 in the first place, and
would probably annoy users who want to save their M4 directives!
So basically, Mon+M4 is incompatible with Webmin :-(
- Jamie
On 20/Jul/2006 06:31 Tim Carr wrote ..
>
> 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?
>
> 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).
> >
> >
> >
> > 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
>
>
> ------------------------------------------------------------------------
> -
> 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=lnk&kid=120709&bid=263057&dat=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
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> -
> 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
|