How to create another user for Nagios web interface
Hi
I am new to here and looking for help on nagios. I already installed nagios and try to create a another user for web interface. I am running on sues linux Thanks advance |
Moderator Note: beware the -c option suggested here creates a new password file and deletes all previously stored passwords, as explained in post #7 below. Don't use -c if you want simply to add a user!
I think all you need to do is run the following commands: Code:
htpasswd2 -c /usr/local/nagios/etc/htpasswd.users newusername Then restart Apache Code:
service apache2 restart |
Quote:
|
i created another user however when i log on and some pages i see this msg "It appears as though you do not have permission to view information for any of the services you requested..."
how do i make new user to become super admin or do i need configuration anything? |
How to create another user for Nagios web interface
You are getting that error because you haven't added the user permissions in the cgi.cfg file - There are several directives that list the names of accounts that are allowed to access various cgi functions such as
authorized_for_system_information=nagiosadmin authorized_for_all_hosts=nagiosadmin .. read the descriptions of each in the cgi.cfg file before blindly adding users to each appropriate permission. (yes I know this is old - i answered it for those that search this question in the future) |
Quote:
|
WARNING using -c rewrites old password
Hi
To me the -c created new file and my old passwords got lost. Exactly as command line tells "-c Create a new file" I had to use backup. So adding [QUOTE=doombob;2993467]I think all you need to do is run the following commands: Code:
htpasswd2 -c /usr/local/nagios/etc/htpasswd.users newusername Code:
htpasswd2 /usr/local/nagios/etc/htpasswd.users newusername |
[QUOTE=vlcinsky;4131301]Hi
To me the -c created new file and my old passwords got lost. Exactly as command line tells "-c Create a new file" I had to use backup. So adding Quote:
Quote:
|
If you still have some permission issue:
1. edit your cgi.cfg and add the users to the lines where "nagiosadmin" is, not all of them, it depend of the right you want to give to the user Code:
authorized_for_system_information=nagiosadmin,user1,user2,...usern Code:
htpasswd2 /usr/local/nagios/etc/htpasswd.users user2 Code:
/etc/init.d/apache2 restart PS: For security reason I would recommend to remove the nagios admin user from your config file Stay secure, Angel. |
Hi,
I tried this command but it threw me an error saying "You can't edit this file". Use -c to create a new file. May i know why is it saying so as i have logged in as "root" user in my SUSE LInux? Thanks |
Quote:
http://soeasytomakeitwork.wordpress....web-interface/ |
Quote:
Thanks |
All times are GMT -5. The time now is 06:19 AM. |