【发布时间】:2015-10-26 12:14:38
【问题描述】:
我的 ganglia-services.cfg
define command {
command_name check_ganglia_multiple_metrics
command_line /bin/sh /var/www/html/ganglia2/nagios/check_multiple_metrics.sh
host=$HOSTADDRESS$ checks='$ARG1$'
}
define service {
service_description Check Multiple Metrics
use generic-service
check_command check_ganglia_multiple_metrics!disk_free,less,10:cpu_numm
,less,8
host_name localhost
}
在命令行中完全一样。 我的 nagios.log 没问题。
当我运行tail -f /var/log/httpd/error_log
我来了
[Mon Oct 26 09:33:54 2015] [error] [client ::1] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /usr/share/ganglia/host_view.php on line 117
[Mon Oct 26 09:37:19 2015] [crit] [client 127.0.0.1] configuration error: couldn't perform authentication. AuthType not set!: /
[Mon Oct 26 09:38:01 2015] [notice] SIGHUP received. Attempting to restart
任何帮助这里的错误是什么?
【问题讨论】:
-
check_multiple_metrics.sh脚本本质上会调用:curl -s http://localhost/ganglia2/nagios/check_multiple_metrics.php?disk_free,less,10:cpu_numm,less,8那么当你从命令行运行它时,你会得到什么输出呢?你有 apacheerror_log吗?你检查过错误吗?位置因系统而异,但您可以尝试/var/log/httpd/error_log -
@JoeYoung 我更新了我的问题。谢谢
-
还有 curl 命令的输出?
-
相同状态信息@JoeYoung