LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-17-2007, 09:24 AM   #1
bartsimpson
LQ Newbie
 
Registered: Dec 2007
Posts: 9

Rep: Reputation: 1
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
 
Old 12-17-2007, 09:55 AM   #2
doombob
LQ Newbie
 
Registered: Oct 2007
Location: KC, MO
Distribution: CentOS
Posts: 9

Rep: Reputation: 0
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
(follow instructions on screen for inputting a password)

Then restart Apache

Code:
service apache2 restart

Last edited by colucix; 01-02-2013 at 03:21 AM.
 
Old 12-17-2007, 12:43 PM   #3
bartsimpson
LQ Newbie
 
Registered: Dec 2007
Posts: 9

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by doombob View Post
I think all you need to do is run the following commands:

Code:
htpasswd2 -c /usr/local/nagios/etc/htpasswd.users newusername
(follow instructions on screen for inputting a password)

Then restart Apache

Code:
service apache2 restart
Work great...Thank You very much
 
1 members found this post helpful.
Old 12-18-2007, 07:07 AM   #4
bartsimpson
LQ Newbie
 
Registered: Dec 2007
Posts: 9

Original Poster
Rep: Reputation: 1
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?
 
Old 09-29-2010, 11:38 AM   #5
Samantha Cruz
LQ Newbie
 
Registered: May 2009
Posts: 1

Rep: Reputation: 1
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)

Last edited by Samantha Cruz; 09-29-2010 at 11:39 AM.
 
1 members found this post helpful.
Old 10-04-2010, 01:48 PM   #6
decreasedsales
LQ Newbie
 
Registered: Mar 2010
Location: Kennesaw, GA
Distribution: fedora
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by Samantha Cruz View Post
(yes I know this is old - i answered it for those that search this question in the future)
Thanks for posting a response, Samantha . I am one of the future questioners you so kindly posted for.
 
Old 10-18-2010, 09:07 AM   #7
vlcinsky
LQ Newbie
 
Registered: Jan 2005
Location: Czech Republic, Ostrava
Distribution: RH, Debian
Posts: 2

Rep: Reputation: 0
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
So proper use for ADDING is WITHOUT -c SWITCH
Code:
htpasswd2 /usr/local/nagios/etc/htpasswd.users newusername
 
Old 11-02-2011, 11:52 PM   #8
etegration
LQ Newbie
 
Registered: Jan 2004
Posts: 26

Rep: Reputation: 15
[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:
Originally Posted by doombob View Post
I think all you need to do is run the following commands:

Code:
htpasswd2 -c /usr/local/nagios/etc/htpasswd.users newusername
So proper use for ADDING is WITHOUT -c SWITCH
Code:
htpasswd2 /usr/local/nagios/etc/htpasswd.users newusername
you will still get errors.

Quote:
It appears as though you do not have permission to view information for any of the hosts you requested...
If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI
and check the authorization options in your CGI configuration file.
is there a clean way?
 
Old 11-11-2011, 02:55 PM   #9
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 492

Rep: Reputation: 75
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
2. Create the user and the password for the user you just add to your config file whithout the -c.
Code:
htpasswd2 /usr/local/nagios/etc/htpasswd.users user2
3. Restart apache.
Code:
/etc/init.d/apache2 restart
I've used nagios for years now, and I always did like this.

PS: For security reason I would recommend to remove the nagios admin user from your config file

Stay secure,
Angel.
 
Old 03-20-2014, 05:59 AM   #10
srijai980
LQ Newbie
 
Registered: Mar 2014
Posts: 2

Rep: Reputation: Disabled
Question

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
 
Old 03-20-2014, 08:51 AM   #11
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,198

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
Quote:
Originally Posted by srijai980 View Post
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?
First, please re-read the LQ rules...you have re-opened a thread that has been closed now for THREE YEARS, and hijacked it with a different question. Open your own thread for your own question. Second, the original command was from 2007...SEVEN YEARS AGO....wouldn't it seem logical that things have changed since then??

http://soeasytomakeitwork.wordpress....web-interface/
 
Old 03-26-2014, 08:49 AM   #12
srijai980
LQ Newbie
 
Registered: Mar 2014
Posts: 2

Rep: Reputation: Disabled
Wink

Quote:
Originally Posted by TB0ne View Post
First, please re-read the LQ rules...you have re-opened a thread that has been closed now for THREE YEARS, and hijacked it with a different question. Open your own thread for your own question. Second, the original command was from 2007...SEVEN YEARS AGO....wouldn't it seem logical that things have changed since then??

http://soeasytomakeitwork.wordpress....web-interface/
I am really sorry for re-opening this thread as i thought it was still open and users will look into it. By the way nothing has changed in the command as i was able to execute it successfully when i tried it again

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
In a need for Subversion web interface to create projects/add-remove users. blackman890 Linux - Server 1 11-06-2007 03:36 PM
LXer: Nagios 2.5 and Oreon 1.3 (Nagios web front end) installation with screenshots LXer Syndicated Linux News 0 08-11-2006 05:33 PM
LXer: Nagios and Oreon (Nagios web front end) installation and Configuration LXer Syndicated Linux News 0 07-18-2006 08:33 PM
Nagios Web Interface JPawlak Linux - Software 1 08-22-2003 03:49 PM
Nagios Web Interface sanfran49 Linux - Software 6 07-15-2003 10:36 AM


All times are GMT -5. The time now is 09:21 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration