Selecting hosts in both hostgroups (union problem).

John P. Rouillard rouilj at cs.umb.edu
Mon Oct 31 23:07:26 CET 2005


In message <019901c5dd9c$50ed68e0$01fea8c0 at itss.auckland.ac.nz>,
"Steve Shipway" writes:
>>> Also is there a way to create an "invisible" hostgroup that won't show 
>>> up in the web interface, but works in the configuration files?
>>
>>Not without patching the cgi's, no.
>
>I'm very tempted to do this, since invisible hostgroups would be very, very
>useful.  When we finally upgrade to the next version of Nagios, maybe we'll
>have this feature...?

Steve:

In a fast thought about implementing it, my idea was to overload the
register keyword to a tri-valued option:

  0 don't register, template only
  1 register make visible
  2 register, make invisible

Then the code that displays the hostgroup just has to ignore any
hostgroup objects with a register value of 2. Hopefully the only
changes would be to write the cache file so that the register
keyord/attribute is stored and parsed.

Another random thought relates to this change in 2.0:

2 Hostgroup Changes

    * Authorization changes - Authorization for access to hostgroups
	in the CGIs has been changed. You must now be authorized for
	all hosts that are members of the hostgroup in order to be
	authorized for the hostgroup.

So I should be able to add a dummy host that does not have a real user
authorized for the host. Then the hostgroup should be "invisible" to
normally logged in users. This would eliminate the ablity to use the
cgi settings:


    authorized_for_all_hosts

unfortunately.

				-- rouilj
John Rouillard
===========================================================================
My employers don't acknowledge my existence much less my opinions.


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list