MRTG PRoblem

MRTG PRoblem

Post by NeCrO » Fri, 12 Mar 2004 03:10:37



I'm installing ping-probe.When I execute mrtg get next errors :

WARNING: Problem with External get '/usr/local/mrtg-
2/share/contrib/ping-probe -t 42 -p loss/loss 194.179.1.100':
   Expected a Number for 'in' but nothing'

WARNING: Problem with External get '/usr/local/mrtg-
2/share/contrib/ping-probe -t 42 -p loss/loss 194.179.1.100':
   Expected a Number for 'out' but nothing'

ERROR: Target[lo][_IN_] ' $target->[0]{$mode}             $target->[1]
{$mode} ' (warn): (Missing operator before              $target?)
ERROR: Target[lo][_OUT_] ' $target->[0]{$mode}             $target->[1]
{$mode} ' (warn): (Missing operator before              $target?)
Argument "" isn't numeric in sprintf at /usr/local/mrtg-2/bin/mrtg line
489.
Argument "" isn't numeric in sprintf at /usr/local/mrtg-2/bin/mrtg line
489.
ERROR: Target[rubycon.loss][_IN_] ' $target->[6]{$mode} ' did not eval
into defined data
ERROR: Target[rubycon.loss][_OUT_] ' $target->[6]{$mode} ' did not eval
into defined data

Why ???

Section ping-probe mrtg.cfg file :

Title[rubycon.ping]: Round Trip Time Analysis
        for 256k FrameRelay link between Cupertino and Munich
PageTop[rubycon.ping]: <H1>Round Trip Time Analysis for CUP/MUC link
</H1>
        <P>Actually we are measuring the ping time between our web
        server and rubycon.  Both are lightly loaded Sun workstations.

##################################################################
# We set MaxBytes to the time in ms that we consider "normal" for
# an unused link, so that the per-cent values show how much you
# are off when the line is used more heavily.  you also have to
# set AbsMax, otherwise values greate than MaxBytes would be
# ignored.

MaxBytes[rubycon.ping]: 180
AbsMax[rubycon.ping]: 10000

Target[rubycon.ping]: `/usr/local/mrtg-2/share/contrib/ping-probe -o -n
194.179.1.100`
##################################################################
# We have to change all labels of the graph.
#
YLegend[rubycon.ping]: round trip time
ShortLegend[rubycon.ping]: ms
Legend1[rubycon.ping]: Maximum Round Trip Time in ms
Legend2[rubycon.ping]: Minimum Round Trip Time in ms
Legend3[rubycon.ping]: Maximal 5 Minute Maximum Round Trip Time in ms
Legend4[rubycon.ping]: Maximal 5 Minute Minimum Round Trip Time in ms
LegendI[rubycon.ping]: &nbsp;Max:
LegendO[rubycon.ping]: &nbsp;Min:

##################################################################
# You might want to include Peaks or not.
WithPeak[rubycon.ping]: ymwd

##################################################################
# Sample entry to monitor packet loss
Target[rubycon.loss]: `/usr/local/mrtg-2/share/contrib/ping-probe -t 42
-p loss/loss 194.179.1.100`
Title[rubycon.loss]: Packet Loss Analysis
PageTop[rubycon.loss]: <H1>Packet Loss Analysis</H1>
MaxBytes[rubycon.loss]: 100
AbsMax[rubycon.loss]: 101
WithPeak[rubycon.loss]: ymwd
Options[rubycon.loss]: gauge
Unscaled[rubycon.loss]: dwmy
YLegend[rubycon.loss]: % Packet Loss
ShortLegend[rubycon.loss]: %
Legend1[rubycon.loss]: % Packet Loss
Legend2[rubycon.loss]: % Packet Loss
Legend3[rubycon.loss]: Maximal 5 Minute % Packet Loss
Legend4[rubycon.loss]: Maximal 5 Minute % Packet Loss
LegendI[rubycon.loss]: &nbsp;% loss:
LegendO[rubycon.loss]: &nbsp;% loss:

--
--------------------------
 FreE wOrlD = FrEe cOdE
 By NeCrOS.
 -------------------------
 ---------------------
 ------------------
 ---------------
 ------------
 --------
 -----
 --

 
 
 

1. mrtg-Problem with ISDN-Line

Hi,
i am runnning mrtg-2.9.6 on RH 7. it works on all ethernet-interfaces
without any problem.but i can't get any data from my ISDN-Line.
i think the snmpd is working correctly.

i have tried to create a mrtg.cfg with:


--output=test.txt

this will create following section for ippp0 in the test.txt file:

### Interface 4 >> Descr: 'ippp0' | Name: '' | Ip: 'xx.xx.xx.xx' | Eth:
'fc-fc-00-00-00-00' ###
### The following interface is commented out because:
### * has a speed of 0 which makes no sense

# SetEnv[localhost_4]: MRTG_INT_IP="xxx.xx.xx.x" MRTG_INT_DESCR="ippp0"
# MaxBytes[localhost_4]: 0

any idea?

  thanks
   thorsten

2. recognizing spaces in sed script

3. Mrtg Problem

4. EIDE PCI boards.. which, if it matters?

5. MRTG - libgd - rateup problem

6. X Windows Development Tools - libraries..

7. MRTG installation problem (SNMP Error) Help

8. SSH2 Client for Win32?

9. GD and MRTG? what's the problem?

10. mrtg/snmp problem

11. MRTG 2.7.5 problems

12. MRTG: Where is the problem? GD or snmpd?

13. graphical interface for MRTG