Users in NagWin

4 posts / 0 new
Last post
huitro
Offline
Last seen: 5 years 7 months ago
Joined: 22.04.2015 - 14:01
Users in NagWin

Hi All,

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?

Thanks. 

itefix
Online
Last seen: 3 min 10 sec ago
Joined: 01.05.2008 - 21:33
There is no such a limit. If

There is no such a limit. If you use default http authentication, you need to create every defined user via htpasswd2 command though.

huitro
Offline
Last seen: 5 years 7 months ago
Joined: 22.04.2015 - 14:01
Yes I use default http

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/.

Example:
define contact{
     contact_name  nagiosuser
     use                 generic-contact
     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. 

itefix
Online
Last seen: 3 min 10 sec ago
Joined: 01.05.2008 - 21:33
You need to use htpasswd tool

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.