hi jim
On Tue, Jul 01, 2003 at 11:16:20AM -0700, Jim Trocki wrote:
> On Tue, 1 Jul 2003 [EMAIL PROTECTED] wrote:
>
> > I would like to put multiple monitor checks under one service entry.
> > Is that possible at all ??
> > I havn't found anthing contrary on the man page.
>
> can't do that. only one of each parameter is allowed in the service
> definition, except for periods.
does that mean that multiple "depends" statemants are also not possible??
if that is true, i think mon should check such configurations and (at least)
give a warning about it.
>
> > Situation:
> > I have to check a group of hosts that listen on a certain port and
> > one host that happens to listen on another port. The service they run is the
> > same. therefore I would like to keep them together in the checking.
>
> the way to tackle this problem is to make changes to tcp.monitor to figure
> out which ports to use for which hosts, via reading a separate config file
> or parsing a hostname as "hostname:port". for example:
>
>
> hostgroup somehosts host1 host2 host3:9999 anotherhost:29999
>
> watch somehosts
> service port-listening
> interval 10m
> monitor tcp.monitor
yeap .. that sounds pretty reasonably. I'll get back to you with a patch
tomorrow.
but i think i'll rather add that more exotic host on the "monitor" line
since i wouldn't want to break other watches that use the "somehosts" group.
they might not understand that ":port" stuff.
anyway, thank you very much for the quick reply!
as, no good deed goes unpunished, i have some more questions ;-)
i've noticed that most cgi interfaces to mon are always displaying the "good"
services sorted by alphabet.
would it be possible to make them sort services by dependency?
do those interfaces get that information at all or is it hidden by mon?
could mon be modified to deliver the information in dependency-order?
(i know there are problems with circular dependencies but that has been
dealt with by dep_recur_limit, hasn't it?)
btw .. which cgi interface would you recommend?
i tried those:
monshow
+ works pretty much out of the box.
- default view doesn't show untested services and
pretends that everything is OK... i'd consider that a bug.
- doesn't group anything by hierarchy when viewing
all services (via "set full")
minotaur
+ looks great (excelent display of group-service relations)
+ shows services that are mentioned in a depends-statement
and dont realy exist as a failed service. very good for debugging!
- seems to have trouble parsing the "last" time. (shows "none")
- doesnt seem to have a maintainer(?)
mon.cgi
+ nice summary (colapsing Good-services for one group in a single line)
- scheduled times look a little chaotic though when collapst
- auto-reload time for the page is fixed.
i think i will try to fix minotaur when i have time... anybody using it here
and experiencing the same trouble?
best regards
-henrik
_______________________________________________
mon mailing list
[EMAIL PROTECTED]
http://linux.kernel.org/mailman/listinfo/mon