【问题标题】:Graphs not showing in Observium图表未在 Observium 中显示
【发布时间】:2017-12-07 10:40:36
【问题描述】:

我已经安装了 observium,它成功地从所有设备中提取所有信息,但它没有显示图表。

我可以看到 /opt/observium/rrd 中的文件

我手动执行时没有看到任何错误:

cd /opt/observium && ./discovery.php -h all && ./poller.php -h all

我已经在 Chrome 和 Firefox 中测试过。

这是我的 config.php

<?php

## Check http://www.observium.org/docs/config_options/ for documentation of possible settings

// Database config ---  This MUST be configured
$config['db_extension'] = 'mysqli';
$config['db_host']      = '192.168.1.10';
$config['db_user']      = 'observium';
$config['db_pass']      = 'somepass';
$config['db_name']      = 'observium';

// Base directory
#$config['install_dir'] = "/opt/observium";

// Default community list to use when adding/discovering
$config['snmp']['community'] = array("public");

// Authentication Model
$config['auth_mechanism'] = "mysql";    // default, other options: ldap, http-auth, please see documentation for config help

// Enable alerter
// $config['poller-wrapper']['alerter'] = TRUE;

//$config['web_show_disabled'] = FALSE;    // Show or not disabled devices on major pages.

// Set up a default alerter (email to a single address)
$config['email']['default']        = "admin@mydomain.com";
$config['email']['from']           = "Observium <observium@mydomain.com>";
$config['email']['default_only']   = TRUE;

$config['enable_syslog']                = 1; // Enable Syslog

// End config.php

如果我可以提供任何其他可以解决此问题的信息,请告诉我。

会议:

设备图设置:

Nginx 配置:

server {
  listen 80;
  server_name observium.mydomain.com;

  root /opt/observium/html;
  client_max_body_size 10m;
  client_body_buffer_size 8K;
  client_header_buffer_size 1k;
  large_client_header_buffers 4 8k;

  location / {
    index index.php index.html index.htm;
    autoindex on;
    try_files $uri $uri/ /index.php;

    location ~ \.php$ {
      fastcgi_split_path_info ^(.+\.php)(/.+)$;
      fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
      fastcgi_index index.php;
      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
      include fastcgi_params;
    }
  }
}

谢谢

【问题讨论】:

标签: observium


【解决方案1】:

发现问题。 在 config.php 文件的顶部是 &lt;?php 之前的空行

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-10-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多