Jump to content

Add user to Nagios from cli


Recommended Posts

All you need to do is first find installation of Nagios

sudo find / -name "htpasswd.users"

If the file htpasswd.users was found at /etc/nagios, then add user by running

sudo cp /etc/nagios/htpasswd.users /etc/nagios/htpasswd.users.backup
sudo htpasswd /etc/nagios/htpasswd.users dhosang

Now you must give your newuser permission to do something in Nagios.  All permissions are handeled in the cgi.cfg file. I recommend just adding your newuser to the same as a similar user.  So find the lines that you want to give similar permission to and add a comma and then your new user.

sudo vi /etc/nagios/cgi.cfg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...