下面是一个配置文件的例子 :
[root@monitor db1]# cat service_status.cfg
Target[service_status]: `su - n7css -c "ssh as1 /home/n7css/monitor/get_service_status.sh"`
Directory[service_status]:db1/service_status
Options[service_status]: growright,noinfo,gauge,nopercent,nolegend
#BodyTag[service_status]:
SetEnv[service_status]: MRTG_INT_IP="172.17.64.11" MRTG_INT_DESCR=""
MaxBytes[service_status]: 1
Ytics[service_status]: 1
Unscaled[service_status]: d
Title[service_status]: service status
kmg[service_status]:
YLegend[service_status]: Oracle & Veritas
ShortLegend[service_status]: ¡ù¡ö
LegendI[service_status]: Oracle ·þÎñ״̬
LegendO[service_status]: Veritas ·þÎñ״̬
ThreshMinI[service_status]: 1
#ThreshMaxI[service_status]:
ThreshMinO[service_status]: 1
#ThreshMaxO[service_status]:
ThreshProgI[service_status]: /etc/mrtg/send_input_alert.sh
ThreshProgO[service_status]: /etc/mrtg/send_output_alert.sh
PageTop[service_status]: <H1><p align=center><font color="blue" face="Trebuchet MS" size=6 >¼à²â Oracle ºÍ Vertias ·þÎñÔËÐÐ
<TABLE cellspacing=2 cellpadding=0>
<TR><TD width=220 ><font face="Trebuchet MS" size=4>ϵͳÃû³Æ : | [ DB1 in GZNAP ] |
<TR><TD width=220 ><font face="Trebuchet MS" size=4>ά»¤ÈËÔ± :[ ailms@263.net ] |
</TABLE>
[root@monitor db1]
下面是另外一个例子,Target 为 SNMP 的方式 :[root@monitor as1]# cat eth0.cfg
Target[as1_eth0]: 2:n7css@172.17.64.11:::::1
Directory[as1_eth0]:as1/eth0
Options[as1_eth0]: growright,bits,noinfo,nolegend
#BodyTag[as1_eth0]:
PageFoot[as1_eth0]:
SetEnv[as1_eth0]: MRTG_INT_IP="172.17.64.11" MRTG_INT_DESCR=""
MaxBytes[as1_eth0]: 12500000
#Unscaled[as1_eth0]: d
Title[as1_eth0]: as1:eth0
kmg[as1_eth0]: b,K,M
PageTop[as1_eth0]: <H1><p align=center><font color="blue" face="Trebuchet MS" size=6>Ö÷Ó¦Ó÷þÎñÆ÷ AS1 µÄ eth0 ½Ó¿ÚÁ÷Á¿
<TABLE cellspacing=2 cellpadding=0>
<TR><TD width=110 align=center><font face="Trebuchet MS" size=4>ϵͳÃû³Æ : | [ as1 in GZNAP ] |
<TR><TD width=110 align=center><font face="Trebuchet MS" size=4>ά»¤ÈËÔ± :[ ailms@263.net ] |
<TR><TD width=110 align=center><font face="Trebuchet MS" size=4>ÃèÊöÐÅÏ¢ :[ eth0 ] |
<TR><TD width=110 align=center><font face="Trebuchet MS" size=4>½Ó¿ÚÀàÐÍ :[ ethernetCsmacd (6) ] |
<TR><TD width=110 align=center><font face="Trebuchet MS" size=4>½Ó¿ÚÃû³Æ :[ eth0 ] |
<TR><TD width=110 align=center><font face="Trebuchet MS" size=4>×î´óËÙÂÊ :[ 100Mbit/s ] |
<TR><TD width=110 align=center><font face="Trebuchet MS" size=4>½Ó¿ÚµØÖ· :[ 172.17.64.11 (as1.local) ] |
</TABLE>
[root@monitor as1]
阅读(672) | 评论(0) | 转发(0) |