CMK version: 2.3.0-2023.12.14
OS version: checkmk-raw
I’ve created:
A Contact Group
A ‘normal monitoring’ user, associated with said Contact Group
A Service Monitoring Rule with no conditions and that is explicitly associated with the group
A Host Monitoring Rule with no conditions and that is explicitly associated with the group
Everything is activated. Using the new User account, I can see all hosts under Setup. However, no hosts show under ‘Monitor’ or on the dashboard.
I’ve seen similar questions in this forum and they ‘solved’ the issue by going into the ‘normal user’ role and enabling access to all hosts for the role. This seems counter to the function of contact groups. I have some hosts that I don’t want to be seen by ‘normal monitoring users’. Once I get this working, I’ll add a condition to exclude those host from the host monitoring rule. Right now, all hosts are included, there are no conditions set for any of the rules.
When looking at the effective parameters for the hosts, I see that they’re associated with the contact group.
I’ve removed the rules. This has not changed the situation, though.
I have a folder, ‘Windows’. I’ve modified the properties of this folder by selecting the permission tick box and moving both ‘Everything’ and my own ‘noc-users’ contact groups into the ‘Selected’ Column. I ticked each of the four related boxes below the table.
I’ve confirmed that my ‘normal monitoring user’ appears inside of the noc-users contact group. My expectation is that all hosts in this folder will be visible in the dashboard and in Monitor → All Hosts.
When the user logs in with this configuration however, he can see the folders and hosts within Setup → Hosts → Main but Monitor → All hosts and the default (main) dashboard are both empty.
Within Setup → Hosts → Main, I see both ‘Everything’ and ‘noc-users’ contact group icons displayed on the desired folder. The host and user association with the contact group are both there and aligned.
The hosts are getting added to the contact group. All four of the boxes below the Available/Selected box are checked, including “Add these groups as contacts to all hosts in this folder” (see image). Also, when I look at effective parameters for any of the hosts in the folder, it shows the ‘noc-users’ contact group as being associated with it.
The fact that the contact group association is working is evidenced by the fact that the user can see the hosts when they navigate to Setup → Hosts. The hosts simply aren’t showing up anywhere else (eg., Monitor → All Hosts or in the dashboard).
I’ve also tried using a host monitoring rule. This was my original configuration when I first posted this thread. It works the hosts show as associated with ‘noc-users’ when I have that in place (I just put it back to triple check). Same end result, however. From the user’s view, Hosts appear in Setup but nowhere else.
Permissions in setup (via folder properties is not the same like contacts in active monitoring.
So some additional questions:
Do you have open changes to be applied? Please check with an admin user. If so, activate the pending changes!
When you’re logged in as admin user, do you see the hosts in active monitoring (for example in the all hosts view)?
When logged in as admin user (and you see the hosts in all hosts view), click on one of the hosts to show the host’s services, then again on the hostname above the service table, scroll down to the bottom of the host detail view. What is shown in the host contact group and host contacts lines?
I will also test this in the current 2.3.0b3 RAW and report my findings here…
Edit: Just saw your last post about being able to reproduce. Here was the info that I’d collected for posterity…
I’m the admin user. There are no pending changes and the gold/yellow ‘!’ icon is not present. I’ve been actively activating every time I update the configuration. When logged in as admin user, yes, I see the hosts in Monitor → All Hosts. All users who have the Administrator role can see the hosts. It’s only when you remove the Administrator role from an account and leave only the ‘normal monitoring user’ role checked that this problem appears.
User Role configuration:
Relevant section from host detail view. The blacked out email address is the one associated with the ‘normal monitoring user’ account.
As said I can reproduce this in latest b3 for RAW - but now tested Enterprise and that is not affected, seems to be RAW issue only.
Sorry for this situation - as written I’ll open an internal ticket for this!
BTW: it seems to be a user (object contact) issue in RAW - if you have an admin user who’s just contact for some hosts and you change the “visibility” setting in this admin user’s profile, no hosts get shown anymore. Truly, all hosts are still available in setup module because of the admin nature, but not in monitoring.