Is there a limit on how many contact you can add?
I now have 20 contacts in my contacts.cfg file, and when I want to add user number 21, and when I login with that account, I get that the user has not enough permissions.
Does someone know what the problem can be?
There is no such a limit. If you use default http authentication, you need to create every defined user via htpasswd2 command though.
Yes I use default http authentication.
But with the htpasswd2 command I only create the password for the user. My users are located in the 'contacts.cfg' file in /etc/nagios/nagwin/.
alias Nagios Admin
What I know, is that I need to edit de contacts.cfg file and add the new user manualy. And then I run the htpasswd2 command to create the password.
You need to use htpasswd tool to add a new user and attach a password:
htpasswd2 -b /etc/nginx/htpasswd nagiosuser password
Then you can define the user nagiosuser as a Nagios contact.