As detailed in this thread: https://support.nagios.com/forum/viewto ... =16&t=9524
It is possible to hide a hostgroup in Nagios XI, but using the above detailed method is not only a weird workaround, it is plain weird to work with.
I would very much like a simple option to "hide" a hostgroup in XI.
It would seemingly be as simple as adding a checkbox in the "Host Group Management" window in the CCM, since the hostgroup's "register" value just needs to be set to "0".
Hide a Hostgroup in XI
Re: Hide a Hostgroup in XI
By "hide" do you mean to still use it but just not show it anywhere? Setting "register 0" actually means something is a template as opposed to a complete object, or should simply not be loaded into Nagios as-is (incomplete object/template, see below).
https://assets.nagios.com/downloads/nag ... tance.html
So while this would hide it, if you have any hosts associated with that group they will not be added to it since it won't exist.
Please clarify the specific usage you are looking for and we'll see what can be done, or if a feature request needs to be added.
https://assets.nagios.com/downloads/nag ... tance.html
So while this would hide it, if you have any hosts associated with that group they will not be added to it since it won't exist.
Please clarify the specific usage you are looking for and we'll see what can be done, or if a feature request needs to be added.
Former Nagios employee
Re: Hide a Hostgroup in XI
Much like explained in the thread I mentioned.
I have a couple of hostgroups that I use to assign specific services to their member hosts.
But I do not want these hostgroups to appear is the views for users. Such as on the Hostgroup Overview and BBmap dropdown filter.
I do it this way because I have hosts being created dynamically, and depending on what the host has running I add the specific hostgroup that has the desired services.
This means that I now have hostgroups that do nothing but add special services. These hostgroups I then don't want to show up in the XI views.
I can't think of any better way to accomplish what I want, and the method in the mentioned thread works, it just seems silly that I have to fiddle with static configuration, and repeatedly enable and disable the hostgroups when making changes to the members in CCM.
I have a couple of hostgroups that I use to assign specific services to their member hosts.
But I do not want these hostgroups to appear is the views for users. Such as on the Hostgroup Overview and BBmap dropdown filter.
I do it this way because I have hosts being created dynamically, and depending on what the host has running I add the specific hostgroup that has the desired services.
This means that I now have hostgroups that do nothing but add special services. These hostgroups I then don't want to show up in the XI views.
I can't think of any better way to accomplish what I want, and the method in the mentioned thread works, it just seems silly that I have to fiddle with static configuration, and repeatedly enable and disable the hostgroups when making changes to the members in CCM.
Re: Hide a Hostgroup in XI
tmcdonald is correct:
This was the only "workaround" that I could think of 3 years ago, as this functionality doesn't exist in Nagios XI. You are welcome to post a feature request on our public tracker here: http://tracker.nagios.com, but I am not sure if it will be implemented. I haven't seen any requests for adding this functionality to Nagios XI.Setting "register 0" actually means something is a template as opposed to a complete object...
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Hide a Hostgroup in XI
know it means it is a template, but oddly enough it works.lmiltchev wrote:tmcdonald is correct:This was the only "workaround" that I could think of 3 years ago, as this functionality doesn't exist in Nagios XI.Setting "register 0" actually means something is a template as opposed to a complete object...
So if it actually works, why can't we do it in Nagios XI?
Thought this forum was for making feature requests, at least didn't see mention of that tracker.lmiltchev wrote:You are welcome to post a feature request on our public tracker here: http://tracker.nagios.com, but I am not sure if it will be implemented. I haven't seen any requests for adding this functionality to Nagios XI.
Sure I'll post a feature request on it.
Re: Hide a Hostgroup in XI
Using hostgroup/servicegroup templates is not that common in Nagios Core. With object inheritance mostly host, service, and contact templates are used. That is why, in Nagios XI (under the CCM), you have links to these templates only (under the "Templates" menu on the left). Other words, you can't add/modify a "hostgroup template" in the CCM.know it means it is a template, but oddly enough it works.
So if it actually works, why can't we do it in Nagios XI?
You could do the following from the command line:
1. Move the "hostgroups.cfg" to the imports directory.
Code: Select all
mv /usr/local/nagios/etc/hostgroups.cfg /usr/local/nagios/etc/import/Code: Select all
vi /usr/local/nagios/etc/import/hostgroups.cfgCode: Select all
define hostgroup {
hostgroup_name MyHostgroup
alias My Host Group
members Host1,Host2
register 0
}Code: Select all
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.shThis is our public tracker. We can also file an internal feature request for you to our system, but it would NOT be publicly available/visible. Other users who would like to see the same functionality implemented in XI won't be able to post comments.Thought this forum was for making feature requests, at least didn't see mention of that tracker.
Sure I'll post a feature request on it.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Hide a Hostgroup in XI
Yeah, that is possible too.lmiltchev wrote:...
After running the above commands, you will be able to see the hosgroup in the CCM but it will be deactivated, so you won't be able to modify it as it is NOT an active object... So, this is not a good approach, either. The only other way would be to use the static.
But since I don't actually need to change the hostgroup at all once it is made, this may work better, I'll give it a try.
The current annoyance is that I can't add the hostgroup to hosts and services in the CCM while it is disabled.
So I have to enable the hostgroup, add the hostgroup to hosts and services, then disable the hostgroup again.
It just seems very simple to me to add an option in CCM to save a hostgroup (or servicegroup) as a template, but otherwise treat it as a normal object.
Then again, I don't know how the CCM works behind the scene.
I have made a feature request on the public tracker.lmiltchev wrote:This is our public tracker. We can also file an internal feature request for you to our system, but it would NOT be publicly available/visible. Other users who would like to see the same functionality implemented in XI won't be able to post comments.Deantwo wrote:Thought this forum was for making feature requests, at least didn't see mention of that tracker.
Sure I'll post a feature request on it.
Found here: http://tracker.nagios.com/view.php?id=797
Re: Hide a Hostgroup in XI
@Deantwo thanks for posting the feature request!
Since, the FR has been already posted on our public tracker, I will be locking this topic. If you have any more questions/issues, please start a new thread.
Since, the FR has been already posted on our public tracker, I will be locking this topic. If you have any more questions/issues, please start a new thread.
Be sure to check out our Knowledgebase for helpful articles and solutions!