小笔记

By | 2019-03-29

QServerStatus 中文版「流量」为 0

A:首先要安装 vnstat;apt install vnstat ;另外因为客户端 client-psutil.py 里配置的网卡不对,默认是eth0,但很多VM都不是以这个网卡名称。

Q:如何升级 Observium

A:Run the following commands (as root):

cd /opt
mv observium observium_old
wget -Oobservium-community-latest.tar.gz http://www.observium.org/observium-community-latest.tar.gz
tar zxvf observium-community-latest.tar.gz
mv /opt/observium_old/rrd observium/
mv /opt/observium_old/logs observium/
mv /opt/observium_old/config.php observium/

Update DB schema:

/opt/observium/discovery.php -u

If it has been a very long time since you’ve updated (12 months or more), you may want to force an immediate rediscovery of all devices to make sure things are up to date :

/opt/observium/discovery.php -h all

Re-enable observium cronjobs optional

You may now delete your observium_old directory if everything has updated correctly:

發佈留言