【问题标题】:UNKNOWN Check Multiple MetricsUNKNOWN 检查多个指标
【发布时间】: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 那么当你从命令行运行它时,你会得到什么输出呢?你有 apache error_log 吗?你检查过错误吗?位置因系统而异,但您可以尝试/var/log/httpd/error_log
  • @JoeYoung 我更新了我的问题。谢谢
  • 还有 curl 命令的输出?
  • 相同状态信息@JoeYoung

标签: apache nagios ganglia


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2019-11-25
    • 1970-01-01
    • 2021-12-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-05-19
    • 2013-09-08
    • 2010-09-19
    相关资源
    最近更新 更多