|
|
Description: If you click on "View Config" and you get: """It appears as though you do not have permission to view the configuration information 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."""
5 u# \7 F* o' A) f6 h! N- m' w: `- g
: R$ N: R9 \# E9 x& Y
报错解决办法:, i3 z* o* ?9 x3 c( z7 q
1 q2 h3 O1 d+ W" v) r
9 w m6 l" X# C* q; _0 G修改/usr/local/nagios/etc/cgi.cfg文件:$ \/ Y- y* q2 F6 a
authorized_for_configuration_information" in cgi.cfg
' H3 K! u" I; t [, gauthorized_for_configuration_information=nagiosadmin
2 e7 C0 M7 F* ^
: G) E9 L7 O) l! L+ z
% p. w& c5 ^8 i {! [6 s- ~其中nagiosadmin所有的配置 都替换成nagios; X% `8 d+ ]# ^: l8 ?8 `" L
1 ~. f, k$ z, ~
6 y1 o0 E! B5 {) p* ?/ y修改为设置的用户;2 B8 F; r( y* s( S- _. j( T
本处认证的用户为nagios 修改实例如下:9 L* {6 n: a! I9 ~
authorized_for_configuration_information=nagios2 _ D7 t0 {7 X8 l9 X5 I
重启httpd服务,重启nagios服务,问题解决。
! ~: `( ]! j/ w4 }# |) P' H |
|