[mrtg] Graph allways "zero"

Lyle Giese lyle at lcrcomputer.net
Fri Jul 9 20:17:37 CEST 2010


You are being impatient.  Run mrtg every five minutes to gather some
data and after 1 hour of gathering, see what the graph shows.


Lyle

Vitor Carlos Flausino wrote:
>
> Hello mrtg at list.
>
>  
>
> I just installed mrgt on my fedora13 as well as all the dependencies
> needed. I am able to run but my graph is a line on "zero".
>
>  
>
> ->details:
>
> mrtg version: mrtg-2.16.2-4.fc12.i686
>
> root crontab: env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --logging
> /var/log/mrtg.log --debug="cfg,dir,base,tarp"
>
>  
>
> ->mrtg.cfg (comments removed):
>
> HtmlDir: /var/www/mrtg
>
> ImageDir: /var/www/mrtg
>
> LogDir: /var/lib/mrtg
>
> ThreshDir: /var/lib/mrtg
>
> Target[azwf]: `/usr/local/bin/df2mrtg /dev/sda1`
>
> Title[azwf]: Disk
>
> MaxBytes[azwf]: 1250000
>
> Colours[azwf]: GREEN#00eb0c,BLUE#1000ff,DARK GREEN#006600,VIOLET#ff00ff
>
>  
>
> ->/usr/local/bin/df2mrtg:
>
> #!/usr/bin/perl
>
>  
>
> print "66\n";
>
> print "70\n";
>
> print "\n";
>
> print "\n";
>
>  
>
> ->head azwf.log
>
> 1278681001 66 70
>
> 1278681001 0 0 0 0
>
> 1278681001 0 0 0 0
>
> 1278681000 0 0 0 0
>
> 1278680700 0 0 0 0
>
>  
>
> ->/var/log/mrtg.log
>
> 2010-07-09 14:10:01 -- Started mrtg with config '/etc/mrtg/mrtg.cfg'
>
> 2010-07-09 14:10:01 -- --base: Creating Lockfiles
> /etc/mrtg/mrtg.cfg_l,/etc/mrtg/mrtg.cfg_l_4919
>
> 2010-07-09 14:10:01 -- --base: Reading Config File: /etc/mrtg/mrtg.cfg
>
> 2010-07-09 14:10:01 -- --cfg: /etc/mrtg/mrtg.cfg[1]:
> ######################################################################
>
> 2010-07-09 14:10:01 -- --cfg: /etc/mrtg/mrtg.cfg[2]: # Multi Router
> Traffic Grapher -- Example Configuration File
>
> 2010-07-09 14:10:01 -- --cfg: /etc/mrtg/mrtg.cfg[3]:
> ######################################################################
>
> 2010-07-09 14:10:01 -- --cfg: /etc/mrtg/mrtg.cfg[4]: # This file is
> for use with mrtg-2.0
>
> 2010-07-09 14:10:01 -- --cfg: /etc/mrtg/mrtg.cfg[5]: #
>
> 2010-07-09 14:10:01 -- --cfg: /etc/mrtg/mrtg.cfg[6]: # Note:
>
> 2010-07-09 14:10:01 -- --cfg: /etc/mrtg/mrtg.cfg[7]: #
>
> 2010-07-09 14:10:01 -- --cfg: /etc/mrtg/mrtg.cfg[8]: # * Keywords must
> start at the begin of a line.
>
> 2010-07-09 14:10:01 -- --cfg: /etc/mrtg/mrtg.cfg[9]: #
>
> 2010-07-09 14:10:01 -- --cfg: /etc/mrtg/mrtg.cfg[10]: # * Lines which
> follow a keyword line which do start
>
> 2010-07-09 14:10:01 -- --cfg: /etc/mrtg/mrtg.cfg[11]: #   with a blank
> are appended to the keyword line
>
> 2010-07-09 14:10:01 -- --cfg: /etc/mrtg/mrtg.cfg[12]: #
>
> 2010-07-09 14:10:01 -- --cfg: /etc/mrtg/mrtg.cfg[13]: # * Empty Lines
> are ignored
>
> 2010-07-09 14:10:01 -- --cfg: /etc/mrtg/mrtg.cfg[14]: #
>
> 2010-07-09 14:10:01 -- --cfg: /etc/mrtg/mrtg.cfg[15]: # * Lines
> starting with a # sign are comments.
>
> 2010-07-09 14:10:01 -- --cfg: /etc/mrtg/mrtg.cfg[16]:
>
> 2010-07-09 14:10:01 -- --cfg: /etc/mrtg/mrtg.cfg[17]: # Where should
> the logfiles, and webpages be created?
>
> 2010-07-09 14:10:01 -- --cfg: /etc/mrtg/mrtg.cfg[18]:
>
> 2010-07-09 14:10:01 -- --cfg: /etc/mrtg/mrtg.cfg[19]: # Minimal mrtg.cfg
>
> 2010-07-09 14:10:01 -- --cfg: /etc/mrtg/mrtg.cfg[20]:
> #--------------------
>
> 2010-07-09 14:10:01 -- --cfg: /etc/mrtg/mrtg.cfg[21]:
>
> 2010-07-09 14:10:01 -- --cfg: /etc/mrtg/mrtg.cfg[22]: HtmlDir:
> /var/www/mrtg
>
> 2010-07-09 14:10:01 -- --cfg: /etc/mrtg/mrtg.cfg[23]: ImageDir:
> /var/www/mrtg
>
> 2010-07-09 14:10:01 -- --cfg: /etc/mrtg/mrtg.cfg[24]: LogDir:
> /var/lib/mrtg
>
> 2010-07-09 14:10:01 -- --cfg: /etc/mrtg/mrtg.cfg[25]: ThreshDir:
> /var/lib/mrtg
>
> 2010-07-09 14:10:01 -- --cfg: /etc/mrtg/mrtg.cfg[26]: #Target[r1]:
> 2:public at myrouter.somplace.edu
>
> 2010-07-09 14:10:01 -- --cfg: /etc/mrtg/mrtg.cfg[27]: #MaxBytes[r1]:
> 1250000
>
> 2010-07-09 14:10:01 -- --cfg: /etc/mrtg/mrtg.cfg[28]: #Title[r1]:
> Traffic Analysis
>
> 2010-07-09 14:10:01 -- --cfg: /etc/mrtg/mrtg.cfg[29]: #PageTop[r1]:
> <H1>Stats for our Ethernet</H1>
>
> 2010-07-09 14:10:01 -- --cfg: /etc/mrtg/mrtg.cfg[30]: Target[azwf]:
> `/usr/local/bin/df2mrtg /dev/sda1`
>
> 2010-07-09 14:10:01 -- --cfg: /etc/mrtg/mrtg.cfg[31]: Title[azwf]: Disk
>
> 2010-07-09 14:10:01 -- --cfg: /etc/mrtg/mrtg.cfg[32]: MaxBytes[azwf]:
> 1250000
>
> 2010-07-09 14:10:01 -- --cfg: /etc/mrtg/mrtg.cfg[33]: Colours[azwf]:
> GREEN#00eb0c,BLUE#1000ff,DARK GREEN#006600,VIOLET#ff00ff
>
> 2010-07-09 14:10:01 -- --base: Reading Interface Config cache
>
> 2010-07-09 14:10:01 -- --base: Checking Config File
>
> 2010-07-09 14:10:01 -- --dir: ensure path IN:  '/var/lib/mrtg'
>
> 2010-07-09 14:10:01 -- --dir: ensure path OUT: '/var/lib/mrtg/'
>
> 2010-07-09 14:10:01 -- --dir: ensure path IN:  '/var/www/mrtg'
>
> 2010-07-09 14:10:01 -- --dir: ensure path OUT: '/var/www/mrtg/'
>
> 2010-07-09 14:10:01 -- --dir: ensure path IN:  '/var/www/mrtg'
>
> 2010-07-09 14:10:01 -- --dir: ensure path OUT: '/var/www/mrtg/'
>
> 2010-07-09 14:10:01 -- --dir: imagehtml =
>
> 2010-07-09 14:10:01 -- --tarp: Starting azwf ->
> `/usr/local/bin/df2mrtg /dev/sda1`
>
> 2010-07-09 14:10:01 -- --tarp: New program target [0]
> '/usr/local/bin/df2mrtg /dev/sda1'
>
> 2010-07-09 14:10:01 -- --tarp: &targparser external done: '
> $target->[0]{$mode} '
>
> 2010-07-09 14:10:01 -- --tarp: &targparser complex done: '
> $target->[0]{$mode} '
>
> 2010-07-09 14:10:01 -- --tarp: &targparser simple done: '
> $target->[0]{$mode} '
>
> 2010-07-09 14:10:01 -- --tarp: &targparser returning: unique = 0
>
> 2010-07-09 14:10:01 -- --base: Loading default Locale
>
> 2010-07-09 14:10:01 -- --base: Starting main Loop
>
> 2010-07-09 14:10:01 -- --base: Populate Target object by polling SNMP
> and external Datasources
>
> 2010-07-09 14:10:01 -- --base: Act on Router/Target azwf
>
> 2010-07-09 14:10:01 -- --base: Get Current values: in:66, out:70, up:,
> name:, time:1278681001
>
> 2010-07-09 14:10:01 -- --base: Create Graphics
>
> 2010-07-09 14:10:01 -- --base: Check for Thresholds
>
> 2010-07-09 14:10:01 -- --dir: ensure path IN:  '/var/lib/mrtg'
>
> 2010-07-09 14:10:01 -- --dir: ensure path OUT: '/var/lib/mrtg/'
>
> 2010-07-09 14:10:01 -- --base: Check for Write HTML Pages
>
> 2010-07-09 14:10:01 -- --base: Exit main Loop
>
> 2010-07-09 14:10:01 -- --base: Remove Lock Files
>
> 2010-07-09 14:10:01 -- --base: Store Interface Config Cache
>
>  
>
> Can someone help me understand (and give me the solution?) for this?
>
>  
>
> TIA,
>
> -vcf
>
> ------------------------------------------------------------------------
> Aviso Legal:
> Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
> informação confidencial ou legalmente protegida. A incorrecta
> transmissão desta mensagem não significa a perca de confidencialidade.
> Se esta mensagem for recebida por engano, por favor envie-a de volta
> para o remetente e apague-a do seu sistema de imediato. É proibido a
> qualquer pessoa que não o destinatário de usar, revelar ou distribuir
> qualquer parte desta mensagem.
>
> Disclaimer:
> This message is destined exclusively to the intended receiver. It may
> contain confidential or legally protected information. The incorrect
> transmission of this message does not mean the loss of its
> confidentiality. If this message is received by mistake, please send
> it back to the sender and delete it from your system immediately. It
> is forbidden to any person who is not the intended receiver to use,
> distribute or copy any part of this message.
> ------------------------------------------------------------------------
>
> _______________________________________________
> mrtg mailing list
> mrtg at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20100709/d84824e1/attachment.htm 


More information about the mrtg mailing list