mon.cgi already has this functionality built in.

The 'watch' keyword in mon.cgi.cf takes full names, or regular
expressions, and only displays those hosts on the screen. Additionally, if
you set 'show_watch_strict' to 'yes', administrators who have access to
the mon.cgi instance will not be able to see status or perform actions on
groups not in the specified 'watch'. That is, even if the mon.cgi user
knows the other hostgroup exists and knows its name, they will be
administratively prohibited from viewing it.

So, for example, you could have a single mon instance monitoring all your
hosts, and by leveraging different mon.cgi.cf files, create different
views with different access privileges and even different color schemes.

There is no need to rename your hosts, but you would need to add each host
to the mon.cgi.cf file, like this partial list for europe:
watch = .es .fi .gr .ie .de .cz .at .be

You will need to have separate mon.cgi.cf files for each different view,
and a separate copy of mon.cgi as well with the '$moncgi_config_file'
variable set to the full path of your mon.cgi.cf file. This is a bit of
setup work, but it's very flexible once you've deployed it, you can use
separate apache auth on each copy of mon.cgi, and customize the look and
feel of each CGI instance, but leverage the same back-end mon server.

Hopefully this answers your question!


andrew

On Fri, 18 Oct 2002, Stephane Bortzmeyer wrote:

> I'm looking into a way to create sets of managed services, which could
> be displayed separately in mon.cgi. Look at
> <URL:http://tac.eureg.org/mon/>. I would like to present the European
> and African domains separately.
>
> I cannot use mon's hostgroups because a failure in any member of the
> hostgroup is regarded as a failure in the whole hostgroup (while I do
> not regard a failure in the .fr domain as a general european problem).
>
> I could use mon.cgi feature to order results by a prefix in the
> hostgroup. I could name my "hosts" eu-fr, eu-de and tell mon.cgi to
> filter on "eu-*". But I dislike the idea of having special names.
>
> Any solution, besides running two different mon instances, listening
> on different ports, with different configuration files?
>
>
> _______________________________________________
> mon mailing list
> [EMAIL PROTECTED]
> http://linux.kernel.org/mailman/listinfo/mon
>

_______________________________________________
mon mailing list
[EMAIL PROTECTED]
http://linux.kernel.org/mailman/listinfo/mon

Reply via email to