В данном примере рассмотрена проверка отклика от пяти узлов.
Для проверки используется ping.sh, подробнее о котором написано тут.
nano -w /etc/mrtg/ping.cfg
WorkDir: /var/www/localhost/htdocs/mrtg
Options[_]: growright,unknaszero,nopercent,pngdate,noinfo,nobanner,gauge
MaxBytes[_]: 2000
LegendI[_]: Pkt loss %
LegendO[_]: Avg RTT (ms)
YLegend[_]: RTT (ms)
Title[localhost.ping]: Ping for Provider DNS(123.4.5.67)
PageTop[localhost.ping]: <H1>Ping for Provider DNS(123.4.5.67)</H1>
Target[localhost.ping]: `/etc/mrtg/ping.sh "123.4.5.67"`
Title[localhost.ping2]: Ping for Relay1 (172.30.30.1) Dobr
PageTop[localhost.ping2]: <H1>Ping for Relay1 (172.30.30.1)</H1>
Target[localhost.ping2]: `/etc/mrtg/ping.sh "172.30.30.1"`
Title[localhost.ping3]: Ping for Relay2 (192.168.1.101)
PageTop[localhost.ping3]: <H1>Ping for Relay2 (192.168.1.101)<&/H1>
Target[localhost.ping3]: `/etc/mrtg/ping.sh "192.168.1.101"`
Title[localhost.ping5]: Ping for Relay3 (192.168.0.117)
PageTop[localhost.ping5]: <H1>Ping for Relay3 (192.168.0.117)</H1>
Target[localhost.ping5]: `/etc/mrtg/ping.sh "192.168.0.117"`
Title[localhost.ping4]: Ping for Relay4 (192.168.0.112)
PageTop[localhost.ping4]: <H1>Ping for Relay4 (192.168.0.112)</H1>
Target[localhost.ping4]: `/etc/mrtg/ping.sh "192.168.0.112"`
Options[_]: growright,unknaszero,nopercent,pngdate,noinfo,nobanner,gauge
MaxBytes[_]: 2000
LegendI[_]: Pkt loss %
LegendO[_]: Avg RTT (ms)
YLegend[_]: RTT (ms)
Title[localhost.ping]: Ping for Provider DNS(123.4.5.67)
PageTop[localhost.ping]: <H1>Ping for Provider DNS(123.4.5.67)</H1>
Target[localhost.ping]: `/etc/mrtg/ping.sh "123.4.5.67"`
Title[localhost.ping2]: Ping for Relay1 (172.30.30.1) Dobr
PageTop[localhost.ping2]: <H1>Ping for Relay1 (172.30.30.1)</H1>
Target[localhost.ping2]: `/etc/mrtg/ping.sh "172.30.30.1"`
Title[localhost.ping3]: Ping for Relay2 (192.168.1.101)
PageTop[localhost.ping3]: <H1>Ping for Relay2 (192.168.1.101)<&/H1>
Target[localhost.ping3]: `/etc/mrtg/ping.sh "192.168.1.101"`
Title[localhost.ping5]: Ping for Relay3 (192.168.0.117)
PageTop[localhost.ping5]: <H1>Ping for Relay3 (192.168.0.117)</H1>
Target[localhost.ping5]: `/etc/mrtg/ping.sh "192.168.0.117"`
Title[localhost.ping4]: Ping for Relay4 (192.168.0.112)
PageTop[localhost.ping4]: <H1>Ping for Relay4 (192.168.0.112)</H1>
Target[localhost.ping4]: `/etc/mrtg/ping.sh "192.168.0.112"`
Комментариев нет:
Отправить комментарий