[mrtg] Re: Trying to config mrtg-ping-pro to track more than 1 device
Greg.Volk at edwardjones.com
Greg.Volk at edwardjones.com
Fri Oct 25 22:49:41 MEST 2002
Nothing in the second target jumps out as being incorrect, however I
will say that you're doing a lot of avoidable work for a ping-probe
config file. For instance, take a look at my ping-probe.cfg file...
##Begin ping-probe.cfg
WorkDir: /opt/mrtg/public_html
WithPeak[_]: wmy
IconDir: /images/
RunAsDaemon:Yes
Interval:5
LogFormat:rrdtool
LibAdd:/opt/rrdtl/lib/perl/
PathAdd:/opt/rrdtl/bin
XSize[_]:600 # apply this directive to every target via the _
YSize[_]:150 # another directive that gets applied to all
targets
Directory[_]:ping-probe # another one
Options[_]: growright, gauge, nopercent # again
Legend1[_]: Maximum Round Trip Time in ms # again
Legend2[_]: Minimum Round Trip Time in ms # again
Legend3[_]: Maximal 5 Minute Maximum Round Trip Time in ms #again
Legend4[_]: Maximal 5 Minute Minimum Round Trip Time in ms #again
LegendI[_]: Max: #again
LegendO[_]: Min: #again
YLegend[_]: milliseconds #again
ShortLegend[_]: ms #again
MaxBytes[_]: 1000 #again
#### Since I used the [_] special target above, now my per target
#### configs are only three lines long....
Target[uk-core1]: `/opt/mrtg/bin/mrtg-ping-probe.sh uk-core1`
Title[uk-core1]: uk-core1
PageTop[uk-core1]: <H1>Round Trip Time Analysis for uk-core1</H1>
Target[rthejsw1]: `/opt/mrtg/bin/mrtg-ping-probe.sh rthejsw1`
Title[rthejsw1]: RTH switch 1 (rthejsw1)
PageTop[rthejsw1]: <H1>Round Trip Time Analysis for rthejsw1</H1>
Target[caatm1]: `/opt/EJnmrtg/bin/mrtg-ping-probe.sh caatm1a`
Title[caatm1]: caatm1a
PageTop[caatm1]: <H1>Round Trip Time Analysis for caatm1a </H1>
Target[att]: `/opt/EJnmrtg/bin/mrtg-ping-probe.sh 192.168.2.1`
Title[att]: AT&T Connection (192.168.2.1)
PageTop[att]: <H1>Round Trip Time Analysis for AT&T Connection
(192.168.2.1</H1>
##End ping-probe.cfg
Keep in mind that everything AFTER the [_] directives will use those
settings, so unless you have a seperate ping-probe.cfg file then you'll
want to do this stuff at the end of your current config file.
-- Attached file removed by Ecartis and put at URL below --
-- Type: application/ms-tnef
-- Size: 2k (2202 bytes)
-- URL : http://www.ee.ethz.ch/~slist/pantomime/23-WINMAIL.DAT
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list