首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >未在Observium中显示的图形

未在Observium中显示的图形
EN

Stack Overflow用户
提问于 2017-12-07 18:40:36
回答 0查看 4.6K关注 0票数 0

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

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

当我手动执行时,我看不到任何错误:

代码语言:javascript
复制
cd /opt/observium && ./discovery.php -h all && ./poller.php -h all

我在Chrome和Firefox上测试过。

这是我的config.php

代码语言:javascript
复制
<?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 conf:

代码语言:javascript
复制
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;
    }
  }
}

谢谢

EN

回答

页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47693160

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档