Nagiosgraph:为单个服务检查设置对数刻度
Nagiosgraph: setting a logarithmic scale for single service check
我需要将 y
轴设置为对数以进行单个服务检查。
我读过这个可以做到:
Configure this in the configuration file
/usr/local/nagiosgraph/etc/nagiosgraph.conf
For all graphs: rrdopts=--logarithmic
For some services: logarithmic=service1,service2
但我不知道提供正确设置的语法,例如service1
.
是包含空格的nagios服务描述吗?
如何让配置文件生效?
谢谢
我是这样做的:
在/usr/local/nagiosgraph/etc/nagiosgraph.conf
更新中:
logarithmic="BME680 Enviromental Monitoring"
rrdoptsfile=/usr/local/nagiosgraph/etc/rrdopts.conf
在 /usr/local/nagiosgraph/etc/rrdopts.conf
行:
BME680 Enviromental Monitoring=-o
检查一切正常:
sudo /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
重新启动 Nagios:
sudo service nagios restart
我需要将 y
轴设置为对数以进行单个服务检查。
我读过这个可以做到:
Configure this in the configuration file
/usr/local/nagiosgraph/etc/nagiosgraph.conf
For all graphs:rrdopts=--logarithmic
For some services:logarithmic=service1,service2
但我不知道提供正确设置的语法,例如service1
.
是包含空格的nagios服务描述吗?
如何让配置文件生效?
谢谢
我是这样做的:
在/usr/local/nagiosgraph/etc/nagiosgraph.conf
更新中:
logarithmic="BME680 Enviromental Monitoring"
rrdoptsfile=/usr/local/nagiosgraph/etc/rrdopts.conf
在 /usr/local/nagiosgraph/etc/rrdopts.conf
行:
BME680 Enviromental Monitoring=-o
检查一切正常:
sudo /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
重新启动 Nagios:
sudo service nagios restart