Nagios - One user in multiple contacts groups
Posted: Tue May 11, 2021 4:50 am
I have a Nagios Core 4.4.5 and I am triying that one member/user belongs to multiple contactgroups/departments to isolate determinate services to several users.
For example: One user that belongs to Securiry department only see the Hosts of this department and I want that this user belongs also to System department and he will can see the Hosts of System Department.
My nagios is installed in the path /opt/nagios and the contacts groups are in the path /opt/nagios//etc/deparments/:
[root@s503pro01sc2 /opt/nagios/etc/departaments]# ll
total 36
drwxrwxr-x+ 2 sistemas [email protected] 4096 may 5 12:18 Apps
drwxrwxr-x+ 2 sistemas [email protected] 4096 may 5 12:18 BBDD
drwxrwxr-x+ 2 sistemas [email protected] 4096 may 7 15:03 Sys
drwxrwxr-x+ 2 sistemas [email protected] 4096 may 7 15:05 Sec
In each group we have the c_user.cfg where the data of the user is described. Also in the group is the file gc_NameOfDepartment.cfg we put the name of the user. If I do this in two Department's directories I can't reload the nagios service. Only If I have the user in one contact group I can reload nagios with the new configuration...
Do you know the way to have One user in two contacts groups?? Thanks
For example: One user that belongs to Securiry department only see the Hosts of this department and I want that this user belongs also to System department and he will can see the Hosts of System Department.
My nagios is installed in the path /opt/nagios and the contacts groups are in the path /opt/nagios//etc/deparments/:
[root@s503pro01sc2 /opt/nagios/etc/departaments]# ll
total 36
drwxrwxr-x+ 2 sistemas [email protected] 4096 may 5 12:18 Apps
drwxrwxr-x+ 2 sistemas [email protected] 4096 may 5 12:18 BBDD
drwxrwxr-x+ 2 sistemas [email protected] 4096 may 7 15:03 Sys
drwxrwxr-x+ 2 sistemas [email protected] 4096 may 7 15:05 Sec
In each group we have the c_user.cfg where the data of the user is described. Also in the group is the file gc_NameOfDepartment.cfg we put the name of the user. If I do this in two Department's directories I can't reload the nagios service. Only If I have the user in one contact group I can reload nagios with the new configuration...
Do you know the way to have One user in two contacts groups?? Thanks