monitoring

It appears as though you do not have permission to view information for any of the hosts you requested...

Naan 2014. 7. 22. 12:31
320x100

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.



혹 계정을 바꾸게 될경우 위와 같이 에러가 뜬다 즉 권한 문제이다


vi /etc/nagios3/cgi.cfg

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


authorized_for_system_information=nagiosadmin




# CONFIGURATION INFORMATION ACCESS

# This option is a comma-delimited list of all usernames that

# can view ALL configuration information (hosts, commands, etc).

# By default, users can only view configuration information

# for the hosts and services they are contacts for. You may use

# an asterisk (*) to authorize any user who has authenticated

# to the web server.


authorized_for_configuration_information=nagiosadmin

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

기본 계정은 nagiosadmin 계정이다 그래서 모든 계정 권한을 nagiosadmin 으로 셋팅 되어 있다

이걸 변경한 계정으로 다 변경해주면 된다.


편집 모드에서

:%s/nagiosadmin/admin/g

# service nagios3 restart

하면 정상적으로 화면이 출력이 된다.


320x100