How to add more users to the CORE?
Posted: Tue Jan 30, 2018 10:38 am
Hi
How to add more read-only full view users to the CORE?
Thank you
How to add more read-only full view users to the CORE?
Thank you
Support for Nagios products and services
https://support.nagios.com/forum/
Code: Select all
htpasswd /usr/local/nagios/etc/htpasswd.users newusernameCode: Select all
define contact{
contact_name newuser ; Short name of user
use generic-contact ; Inherit default values from generic-contact template (defined above)
alias newuser ; Full name of user
email newuser@localhost ;
}Code: Select all
authorized_for_read_only=newuser
authorized_for_all_services=nagiosadmin,newuser
authorized_for_all_hosts=nagiosadmin,newuserCode: Select all
service httpd restart
service nagios restartnpolovenko wrote:@dlukinski, Here's what I did:
1. Create a new user via command line:2. Create a contact for the new user:Code: Select all
htpasswd /usr/local/nagios/etc/htpasswd.users newusername
nano /usr/local/nagios/etc/objects/contacts.cgf3. Open the cgi.cgf file: nano /usr/local/nagios/etc/cgi.cfgCode: Select all
define contact{ contact_name newuser ; Short name of user use generic-contact ; Inherit default values from generic-contact template (defined above) alias newuser ; Full name of user email newuser@localhost ; }
Find and chnage the following lines:5. Only If nagios will get stuck at verifying configuration during the step 4:Code: Select all
authorized_for_read_only=newuser authorized_for_all_services=nagiosadmin,newuser authorized_for_all_hosts=nagiosadmin,newuser[/code 4. Restart Nagios and apache[code]service httpd restart service nagios restart
killall -9 nagios
service nagios start
That should do it.