UNKNOWN检查多个度量标准

时间:2015-10-26 12:14:39

标签: apache nagios ganglia

我的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
}

但是我收到了一个错误 enter image description here

在命令行中完全相同。 我的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

任何帮助这里的错误是什么?

1 个答案:

答案 0 :(得分:0)

最终我找到了解决方案。当我更改时,在/ usr / local / nagios / etc / objects中localhost.cfg的主机定义中,从默认的127.0.0.1到我的节点地址的地址开始正常运行。