Read Only user creation
Read Only user creation
Hi,
I have configured the Nagios Core version 3.5.1 and i want to create a read only access to users to access the nagios web page. How can i create the read only user and provide the access to them.
I have configured the Nagios Core version 3.5.1 and i want to create a read only access to users to access the nagios web page. How can i create the read only user and provide the access to them.
Re: Read Only user creation
You will need to add the user to (or remove them from) the appropriate "authorized_for_*" definitions in cgi.cfg:
http://nagios.sourceforge.net/docs/3_0/cgiauth.html
http://nagios.sourceforge.net/docs/3_0/configcgi.html
Additionally, the user must be named the same as a contact, and that contact must be added to objects (hosts/services/etc) you want the user to see in the web ui.
http://nagios.sourceforge.net/docs/3_0/cgiauth.html
http://nagios.sourceforge.net/docs/3_0/configcgi.html
Additionally, the user must be named the same as a contact, and that contact must be added to objects (hosts/services/etc) you want the user to see in the web ui.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Read Only user creation
if i create user and add in contact group will that user able to see the Web Gui ? How to create the password for that user and do we have to nagios service once we add that user in cgi file ?
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Read Only user creation
Though this is an older post it still holds true:
http://www.linuxquestions.org/questions ... ce-607353/
You will have to add the user with basicauth and follow what abrist mentioned, which is also shown in the above post.
http://www.linuxquestions.org/questions ... ce-607353/
You will have to add the user with basicauth and follow what abrist mentioned, which is also shown in the above post.
Re: Read Only user creation
According to the reply i can summarize as below,
1. Create the contact in contacts.cfg ( example xyz)
2. Add the user and password as below
htpasswd /usr/local/nagios/etc/htpasswd.users xyz
3. Add the user in cgi.cfg file If we want the user "xyz" to have to host and service check information on nagios web gui
default_user_name=xyz
4. Restart the apache
service httpd restart
Please correct me if i am wrong.
1. Create the contact in contacts.cfg ( example xyz)
2. Add the user and password as below
htpasswd /usr/local/nagios/etc/htpasswd.users xyz
3. Add the user in cgi.cfg file If we want the user "xyz" to have to host and service check information on nagios web gui
default_user_name=xyz
4. Restart the apache
service httpd restart
Please correct me if i am wrong.
Re: Read Only user creation
Looks right. You may want to look at the cgi documentation for:
You will still need to configure the contact to be a contact for the objects inquestion or to use the following cgi directives:
Code: Select all
authorized_for_read_only=xyzCode: Select all
authorized_for_all_hosts=xyz
authorized_for_all_services=xyzFormer Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Read Only user creation
please clarify below .
1. creating the contact xyz in contacts.cfg is compulsory or with out creating the contact xyz , user xyz can access nagios gui?
2. to create the users to access the nagios GUI , do we have to have a root access or nagios login is enough ?
3 . restating Apache is compulsory ?
1. creating the contact xyz in contacts.cfg is compulsory or with out creating the contact xyz , user xyz can access nagios gui?
2. to create the users to access the nagios GUI , do we have to have a root access or nagios login is enough ?
3 . restating Apache is compulsory ?
Re: Read Only user creation
It is only compulsory if you do not add the user to one of the authorized_for_all_* directives in cgi.cfg.veenm wrote:1. creating the contact xyz in contacts.cfg is compulsory or with out creating the contact xyz , user xyz can access nagios gui?
You will most likely need root as you will have to add the user to your basic auth file.veenm wrote:2. to create the users to access the nagios GUI , do we have to have a root access or nagios login is enough ?
Anytime you edit the cgi.cfg file, you will need to restart apache for the changes to take affect.veenm wrote:3 . restating Apache is compulsory ?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Read Only user creation
This is incorrect.abrist wrote:Anytime you edit the cgi.cfg file, you will need to restart apache for the changes to take affect.
You will only need to reload/restart Apache if you modify an Apache config file
ie: under /etc/httpd | /etc/apache??
For /<nagios-install>/cgi.cfg (or anything under <nagios-install>) you just need to reload/restart Nagios.
Re: Read Only user creation
Thanks for the clarification, but as this thread is quite old I will be closing it now.
Former Nagios employee