9394952

导航

MRTG 配置文件中 Target 算术格式和多级管理

一、算术格式

#Target[test2]: ( 1:private@192.168.13.114 + 2:private@192.168.13.114 ) * 2

计算两个值之和再乘2,结果为一个值

Target[localhost.disk]: (.1.3.6.1.2.1.25.2.3.1.6.4&.1.3.6.1.2.1.25.2.3.1.5.4:public@localhost:::::2)*4

把两个值分别乘4,结果同样为两个值

二,多级管理

通过include把多个CFG集中成一个,方便查看和管理...

[root@monitor mrtg]# cat important_status.cfg

WorkDir: /var/www/html/mrtg
Language: chinese
Refresh: 300

Include: /etc/mrtg/db1/hacmp.cfg
Include: /etc/mrtg/db1/service_status.cfg
Include: /etc/mrtg/db1/dbvg1-2.cfg
Include: /etc/mrtg/db1/dbvg3-4.cfg

.

.

.

posted on 2008-04-03 15:09  9394952  阅读(126)  评论(0编辑  收藏  举报