Dear Support team,
I have added a user to a bunch of hosts. When I login as that user and click "Hostgroup Summary" in Nagios xi I see the following screen
Now, when I login as same user and click "Host Groups" in Nagios Core, I see the following screen
Clearly it is showing more than enough information (hostgroups) in Nagios xi. Is there a way to suppress that?
Thanks
Nagios xi displaying exessive hostgroups information
-
- Posts: 155
- Joined: Wed Apr 14, 2010 3:00 pm
- Location: India
Nagios xi displaying exessive hostgroups information
You do not have the required permissions to view the files attached to this post.
-
- Former Nagios Staff
- Posts: 13589
- Joined: Mon May 23, 2011 12:15 pm
Re: Nagios xi displaying exessive hostgroups information
Can you elaborate a little bit more on "I have added a user to a bunch of hosts"?
Did you add this user to the hosts, members of "DR Servers..." hostgroup only, or you also added this user to OTHER hosts?
Are members of "DR Servers..." hostgroup are ALSO members of other hostsgroups?
Did you use:
Core Config Nanager->Monitoring->Hosts->Modify->Common Settings->Host groups->Modify to add each individual host to a hostgroup
or
Core Config Nanager->Monitoring->Host Groups->Modify->Members->Modify and added all of the members of this particular hostgroup?
What are the security settings/authorization level for this user? Do you have any checkboxes selected under Admin->Users->Manage Users->Edit?
Can you describe in more details the steps you took, so we ca recreate the problem and try to troubleshoot it?
Make sure you don't have multiple instances of Nagios, running on your server. Have you tried restarting the Nagios server?
Did you add this user to the hosts, members of "DR Servers..." hostgroup only, or you also added this user to OTHER hosts?
Are members of "DR Servers..." hostgroup are ALSO members of other hostsgroups?
Did you use:
Core Config Nanager->Monitoring->Hosts->Modify->Common Settings->Host groups->Modify to add each individual host to a hostgroup
or
Core Config Nanager->Monitoring->Host Groups->Modify->Members->Modify and added all of the members of this particular hostgroup?
What are the security settings/authorization level for this user? Do you have any checkboxes selected under Admin->Users->Manage Users->Edit?
Can you describe in more details the steps you took, so we ca recreate the problem and try to troubleshoot it?
Make sure you don't have multiple instances of Nagios, running on your server. Have you tried restarting the Nagios server?
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 155
- Joined: Wed Apr 14, 2010 3:00 pm
- Location: India
Re: Nagios xi displaying exessive hostgroups information
Very sorry for not including this information in the first post.
I used CCM to edit each host manually and add the user in Alerts section. Now it looks like this:
Apart from this I have made no changes anywhere besides, obviously, creating this user "user-007".
There are no checkboxes selected under Admin->Users->Manage Users and the user is created as User, not Admin.
I do not have multiple instances of Nagios running. Yes it did restart the Nagios server after applying the configuration.
Please let me know if any more information is required. Thanks.
I used CCM to edit each host manually and add the user in Alerts section. Now it looks like this:
Code: Select all
define host{
host_name server-x
contacts user-007
....
}
There are no checkboxes selected under Admin->Users->Manage Users and the user is created as User, not Admin.
I do not have multiple instances of Nagios running. Yes it did restart the Nagios server after applying the configuration.
Please let me know if any more information is required. Thanks.
-
- Former Nagios Staff
- Posts: 13589
- Joined: Mon May 23, 2011 12:15 pm
Re: Nagios xi displaying exessive hostgroups information
When you were manually adding the user to each host, did you add it also to hosts, that are not members of the "DR Servers..." hostgroup? What contact groups this user is a member of?
This user may be able to see all of these hosts, not because of a direct relationship (notification contact for these hosts), but because of an indirect relationship (being a member of a different contact group).
Please, review our documentation on multi-tenancy and see if this applies to your type of setup.
http://assets.nagios.com/downloads/nagi ... enancy.pdf
This user may be able to see all of these hosts, not because of a direct relationship (notification contact for these hosts), but because of an indirect relationship (being a member of a different contact group).
Please, review our documentation on multi-tenancy and see if this applies to your type of setup.
http://assets.nagios.com/downloads/nagi ... enancy.pdf
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 155
- Joined: Wed Apr 14, 2010 3:00 pm
- Location: India
Re: Nagios xi displaying exessive hostgroups information
Could you please re-read my first post? I have attached a screenshot from Nagios xi and Nagios Core.
I understand your answer but what I don't understand is - why is there a difference between what is displayed in Nagios Core and Nagios xi for the same configuration when logged in as a specific user?
For my setup Nagios xi is displaying all the hostgroups that are associated with the host members of dr-servers hostgroup. However, when I login as same user in Nagios Core it would display only "dr-servers" hostgroup.
Does that help?
Thanks
I understand your answer but what I don't understand is - why is there a difference between what is displayed in Nagios Core and Nagios xi for the same configuration when logged in as a specific user?
For my setup Nagios xi is displaying all the hostgroups that are associated with the host members of dr-servers hostgroup. However, when I login as same user in Nagios Core it would display only "dr-servers" hostgroup.
Does that help?
Thanks
-
- Posts: 4380
- Joined: Mon Jun 14, 2010 10:21 am
Re: Nagios xi displaying exessive hostgroups information
Indeed, this is the mystery on this thread. There's not a simple answer as to what might cause this, but it's possible something got out of sync with the ndoutils backend. Do you see any recent errors in the /usr/local/nagios/var/nagios.log file related to ndo2db or ndoutils?I understand your answer but what I don't understand is - why is there a difference between what is displayed in Nagios Core and Nagios xi for the same configuration when logged in as a specific user?
Is this user supposed to be able to view the hosts that are in the unauthorized hostgroups?
Were you at any time using a RAM disk for the status.dat or objects.cache file? If so, can you verify that those locations match the /usr/local/nagios/etc/nagios.cfg file?
-
- Posts: 155
- Joined: Wed Apr 14, 2010 3:00 pm
- Location: India
Re: Nagios xi displaying exessive hostgroups information
Hello Mike,
Thank you for the pointers, they might come in handy sometime.
In the ndo2db I have the following entries:
But when I login to MySQL as user ndoutils I can see only information_schema and nagios databases not nagiosql. Is that a normal behaviour?
Thank you for the pointers, they might come in handy sometime.
I just did a tail -f nagios.log and restarted ndo2db daemon and got the following in the logsmguthrie wrote:Indeed, this is the mystery on this thread. There's not a simple answer as to what might cause this, but it's possible something got out of sync with the ndoutils backend. Do you see any recent errors in the /usr/local/nagios/var/nagios.log file related to ndo2db or ndoutils?
Code: Select all
[1327394222] ndomod: Error writing to data sink! Some output may get lost...
[1327394222] ndomod: Please check remote ndo2db log, database connection or SSL Parameters
[1327394238] ndomod: Successfully reconnected to data sink! 0 items lost, 2193 queued items to flush.
[1327394238] ndomod: Successfully flushed 2193 queued items to data sink
No, this user can see only a few hosts which have this user as a contact and nothing else. I have verified this by logging in as this user in Nagios Core and xi.mguthrie wrote:Is this user supposed to be able to view the hosts that are in the unauthorized hostgroups?
I don't think we were ever using RAM disk for either of these files. I have the following entries in nagios.cfgmguthrie wrote:Were you at any time using a RAM disk for the status.dat or objects.cache file? If so, can you verify that those locations match the /usr/local/nagios/etc/nagios.cfg file?
Code: Select all
status_file=/usr/local/nagios/var/status.dat
object_cache_file=/usr/local/nagios/var/objects.cache
Code: Select all
ndo2db_user=nagios
ndo2db_group=nagios
db_name=nagios
db_prefix=nagios_
db_user=ndoutils
db_pass=****
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Nagios xi displaying exessive hostgroups information
This is normal behavior, the ndoutils user only act on the nagios database.TSCAdmin wrote:But when I login to MySQL as user ndoutils I can see only information_schema and nagios databases not nagiosql. Is that a normal behaviour?
Is your MySQL db on the same machine or have you offloaded it to another server?
-
- Posts: 4380
- Joined: Mon Jun 14, 2010 10:21 am
Re: Nagios xi displaying exessive hostgroups information
Based on reports from a few different users now, there maybe a logical bug somewhere in the permissions logic for xi. If you come across a simple way to reproduce this issue, go ahead and post it. It may save us some time as we investigate this.
-
- Posts: 4380
- Joined: Mon Jun 14, 2010 10:21 am
Re: Nagios xi displaying exessive hostgroups information
Ok, so I did some digging on this, and here's what I found. Let me know if you're seeing other issues.
- With Nagios Core, and the "Unified" Hostgroups pages in xi, hostgroups are only visible for a contact if they are authorized for *all* hosts in that hostgroup.
- With xi's hostgroup pages, hostgroups are visible if the user has *any* authorized hosts in that group, but it will only show authorized hosts.
I discussed this with our senior developer, and he's going to look into changing this logic for Core, since we both felt the more "expected" behavior would be to see the group if it has *any* members.
- With Nagios Core, and the "Unified" Hostgroups pages in xi, hostgroups are only visible for a contact if they are authorized for *all* hosts in that hostgroup.
- With xi's hostgroup pages, hostgroups are visible if the user has *any* authorized hosts in that group, but it will only show authorized hosts.
I discussed this with our senior developer, and he's going to look into changing this logic for Core, since we both felt the more "expected" behavior would be to see the group if it has *any* members.