I've recently noticed that after migrating my config from Nagios 3 to 4 on Debian I'm getting this error when trying to view 2 hosts:
Code: Select all
It appears as though you do not have permission to view information for this host...
After a while of digging I found that I had selected another host template for those. The goal was to get an sms for those instead of an email (makes sense for the mailserver in particular).
In the past I had solved my problem by creating duplicate users (with a suffix to the user name) that be able to set different values for
host_notification_commands
and
service_notification_commands
Those additional users are bundled in additional groups. The host-template then has different contact_groups. That's how I control through which channel a notification goes.
Now that worked fine for Nagios 3, but since going to 4 it looks like I cannot even view those hosts on the webpage anymore when being logged in. I assume that's because the host is assigned to a group which only has the user myUsername-sms instead of the one I'm logged in with: myUsername
In general: Is there a nicer principle to configure that?
If not - would you have any idea how to fix my problem?