NagiosQL Write test on settings directory (config/): failed

安装NagiosQL的时候,检查config/文件夹 始终提示:Write test on settings directory (config/): failed
即使777的权限也行不通,很显然问题不在chmod上

  1. Checking System Permissions
  2. warningSettings file does not exist (config/settings.php): will be created
  3. invalidWrite test on settings directory (config/): failed
  4. validRead test on one class file (functions/nag_class.php): OK
  5. validRead test on home page file (admin.php): OK
  6. validRead test on one template file (templates/index.tpl.htm): OK
  7. validRead test on one admin template file (templates/admin/admin_master.tpl.htm): OK
  8. validRead test on one file template (templates/files/contacts.tpl.dat): OK
  9. validRead test on one image file (images/pixel.gif): OK

解决办法:

  1. echo 0 >/selinux/enforce
  2. sed -i 's/SELINUX=enforcing/SELINUX=disable/' /etc/selinux/config

Nagios:Premature end of script headers: status.cgi, referer…

nagios提示http 500

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

查询日志:
[Thu Sep 17 22:50:02 2009] [error] [client 10.0.0.73] Premature end of script headers: status.cgi, referer: http://10.0.0.193/side.html

试试apache的SuExec:
[root@centos sbin]# setenforce 0

Debian安装Nagios 监控服务器

下载nagios跟nagios的插件 nagios-plugins
首先要安装这篇文章里”基于Debian的LAMP组合 linux+apache+mysql+php“提到的东东,省了不少事情。

wget http://downloads.sourceforge.net/nagiosplug/nagios-plugins-1.4.12.tar.gz

wget http://prdownloads.sourceforge.net/nagios/nagios-3.0.3.tar.gz

添加nagios用户:
useradd nagios

新建nagios文件夹:
mkdir /usr/local/nagios

赋予该文件夹相应权限:
chown nagios.nagios /usr/local/nagios

解压缩
tar zxvf nagios-3.0.3.tar.gz

进入文件夹
cd nagios-3.0.3

Read more »

1 1