nagios服务器问题1
我当时遇到奇怪现象,可以看到首页,链接打不开,检查apache配置,文件权限,后来确认当有部分程序出现奇怪状态,比如权限问题得时候,请关闭SELINUX
解决方法:
vi /etc/sysconfig/selinux
SELINUX=enforcing --> SELINUX=disabled
存盘退出
nagios服务器问题2
监控页面出现
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.
1、修改/etc/cgi.cfg
vi /usr/local/nagios/cgi.cfg
use_authentication=1 #把1修改为0,保存
root@nagios#/etc/init.d/nagios restart
nagios服务器问题3
Warning: Return code of 127 for check of service 'Uptime' on host 'winserver' was out of bounds. Make sure the plugin you're trying to run actually exists
通常都的plugin没有安装,或者安装位置有问题,我遇到是查看目录:/usr/local/nagios/libexec/libexec、后来将libexec文件往前挪一下就可以了:/usr/local/nagios/libexec.
===================================
===================================
常见错误:
问题1:
It appears as though you do not havepermission to view information for any of the hosts you requested
It seems that you have chosen to not usethe authentication functionality of the CGIs.
I don't want to be personallyresponsible for what may happen as a result of allowing unauthorized users toissue commands to Nagios,so you'll have to disable this safeguard if you arereally stubborn and want to invite trouble.
Read the section on CGI authenticationin the HTML documentation to learn how you can enable authentication and whyyou should want to.
It appears as though you do not havepermission to view information for any of the hosts you requested... If you believe this is an error, check theHTTP server authentication requirements for accessing this CGI
and check the authorization options in your CGI configuration file.
解决:
在安装 nagios 时 就要把用户选对 然后再安装
./configure --with-group=nagios--with-user=nagios --with-command-group=nagcmd --with-gd-lib=/usr/lib--with-gd-inc=/usr/include
make all
make install
make install-init
make install-config
make install-commandmode