如何在Nagios中的Nagiosgraph中设置对数缩放?

时间:2015-10-27 18:35:00

标签: nagios rrd

我有图表,我有数据,但我需要以对数刻度,因为我们从数十到200K项目,并且几乎无法识别变体。Uitable dynamic height

我没有看到在哪里/如何编辑正确的配置文件以使这组rrd图以对数标度运行。

1 个答案:

答案 0 :(得分:3)

Nagiosgraph是rrdgraph的包装器,反过来又使用自己的配置文件。我发现rrdopts.conf可能是进行此更改的最佳位置。只需添加服务名称,并包含-o标志(或--logarithmic)注意其他服务如何定义rrdgraph选项。

# rrd options for nagiosgraph
#
# This file contains per-service options for rrdgraph.  The format is
#   service=options
# where the options are standard rrdgraph command-line options.  For example:
#   PING=-X 0
#   Load=-u 105 -l 0
# The options will be applied to each graph matching the indicated service.
# See rrdgraph for details about the options.

# keep the ups plots in reasonable ranges
ups-load=-u 105 -l 0 -r
ups-charge=-u 105 -l 0 -r
ups-temp=-u 45 -l 20 -r
# memory counts are computer K not metric K, and always greater than 0
mem=-l 0 -b 1024
# do alternative autoscaling on the ntp graphs
ntp=-A
# cpu is always [0-100]
cpu=-u 100 -l 0 -r
# My custom check command needs logarithmic scaling -o option
My_Custom_Service_Check_Command=-o