Re: [rrd-users] Confusion about VDEF total and graph values

2016-10-14 Thread Pavel Ruzicka
Hi Arjan,

> but from a functional point of view I don't think it
> matters. It would help on some I/O, CPU and in the end probably will make
> my SD Card in the raspberry PI live longer (the rrd file is being allocated
> in advance  so the gas value will be written at the same location on the SD
> Card many times per hour in my case, right?).

Most of new SD cards use "wear leveling" that if your system will write to 
same place on the filesystem that controller in the card wrote data everytime 
to another place.
For bigger lifetime it is a good idea to have Flash not full.

Also it is a good idea to use "Industrial grade" SD card which use SLC chips 
instead MLC or TLC chips at normal flash cards and have much bigger number of 
writes to cells.

Best regards,

Pavel

___
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users


[rrd-users] Re: Better many .rrd files vs. many DSs per file ?

2006-11-15 Thread Pavel Ruzicka
Hello,

> I will be doing some performance testing and will need to update
> 176 DS's at least every 10 seconds, maybe every 2 seconds at a
> time.
> If this all works for one server, I will want to do it for the
> 4 servers in my cluster so the number of DS could go over 700.
>
> Suggestions ?

Big problem can be disk performance. You must have enough of RAM
for cache. You can enable feature dir_index on ext2/ext3 filesystem.
If this is not enough, you can try to setup RAMDISK and work with
RRD files in a RAMDISK. For backup you can periodically copy RRD files
on a harddisk every few minutes or hours.

Best regards,

Pavel Ruzicka

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://lists.ee.ethz.ch/rrd-users
WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi



[rrd-users] Re: gif support

2006-10-16 Thread Pavel Ruzicka
Hello,

> > For an image you can use  to
> > get the filename showing up when placing the mouse cursor over the
> > picture.
>
> Erhm, that would be the alt=""  attribute :)
>
> 
>
> The title method is preferable and more compatible with all browsers:
> http://www.cs.tut.fi/~jkorpela/html/alt.html#tooltip

This is true. "alt" works only in Microwave Exploder, but "Title" works
similar in all Browsers IE, Firefox, Konqueror, Opera.
In HTML4, XHTML and maybe others is "alt" tag required.
It is useful in text Browsers (Links, Lynx) or in speech browsers
for Blind men.

Right method is to use both "alt" for alternate text AND "title" for POPUP.
HTML4 example: 

Best regards,

Pavel Ruzicka

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://lists.ee.ethz.ch/rrd-users
WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi



[rrd-users] Re: horizontal line

2006-05-22 Thread Pavel Ruzicka
Hello,

> > I want to create bandwidth graph with additional horizontal line, which
> > presents Max possible speed. RRD files are from MRTG.
> > I tried this in my PERL script, but without success:
> > ($maxbytes is previously computed value from more RRD files.)
> > 
> > push @args, "CDEF:maxbw=${maxbytes},8,*";
> > push @args, "LINE1:maxbw#00:Max speed  ${maxbytes}\\l";
>
> Try HRULE.

Thanks, this works for me:
push @args, "HRULE:${maxbits}#FF:Max speed  ${maxbitsleg}\\l";

> Alternatively, use an existing ds-name and discard it right away,
> using POP.

I tried it, but it doesn't works for me:
push @args, "CDEF:maxbw=fin,POP,$maxbytes,*,8,/";
push @args, "LINE1:maxbw#00:Max speed  ${maxbytes}\\l";

I get this error: RPN stack underflow.

I don't know what now, because HRULE is marked like (deprecated).

Best regards,

Pavel Ruzicka

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://lists.ee.ethz.ch/rrd-users
WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi


[rrd-users] horizontal line

2006-05-22 Thread Pavel Ruzicka
Hello,

I want to create bandwidth graph with additional horizontal line, which
presents Max possible speed. RRD files are from MRTG.
I tried this in my PERL script, but without success:
($maxbytes is previously computed value from more RRD files.)

push @args, "CDEF:maxbw=${maxbytes},8,*";
push @args, "LINE1:maxbw#00:Max speed  ${maxbytes}\\l";

I get this error: rpn expressions without variables are not supported
I use rrdtool-1.0.48.

Thanks,

Pavel Ruzicka

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://lists.ee.ethz.ch/rrd-users
WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi


[rrd-users] Re: Graph Problems

2005-07-21 Thread Pavel Ruzicka
Hi,

> Everything is working fine, BUT, my graphs are showing the time 2
> hours ahead, since RRD cant travel through time and preview my traffic
> ( LOL) theres something wrong, and I cant find it, so I'm asking you
> guys for help.

There can be problem with system Timezone. What says command date?
On my system I have 10:18:26 CEST 2005 which is 2 hours from GMT.
(GMT +1 and + summer time).

Best regards,

Pavel Ruzicka

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://lists.ee.ethz.ch/rrd-users
WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi


[rrd-users] Re: Good Colours to use on graphs?

2005-03-22 Thread Pavel Ruzicka
Hi,

> I'm struggling a bit with something so simple and stupid, but something
> that is integral to the whole idea... what colours to use?

I experimentally created colors which looks good for me. They are in contrast
and BW printer friendly. I use brighter values for + and darker for -.
If I need more than 8 colors, I use them again.

There is piece of my perl code with HEX RGB values:

my @colorsin = (
'30FC30',
'3096FC',
'FFC930',
'FF3030',
'30CC30',
'3030CC',
'00',
'CC3030'
);
my @colorsout = (
'00CC00',
'0066CC',
'FF9900',
'CC',
    '009900',
'99',
'00',
'99'
);

Best regards,

Pavel Ruzicka

PS. You can use Color scheme generator for experimenting with colors:
http://wellstyled.com/tools/colorscheme2/index-en.html

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: Problem with counter wrap

2005-01-21 Thread Pavel Ruzicka
Hello,

>Is there a different way to
> get the data from the routers instead of snmp commands (snmpget
> snmpwalk) ? Can I get the values from a 64-bit counter ?

MRTG doesn't have problem with 64bit counters. You must use right options.
For example I create configuration automatically with cfgmaker. I call
cfgmaker with this option: "--snmp-options=:::2::2". Options are described
here: http://people.ee.ethz.ch/~oetiker/webtools/mrtg/cfgmaker.html
When 64 bit counters are not available (for slow interfaces), that cfgmaker 
reverts to 32bit counters.

If you create configuration manually, it will look like this:
Target[router.xxx.cz_POS1_0]: \POS1/0:[EMAIL PROTECTED]:::2::2
...

With 2 on the end mrtg will use SNMP version 2 and "ifhcinoctets" on place
"ifinoctets". 

Best regards,

Pavel Ruzicka

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: a few graphs crazy with --alt-y-mrtg

2004-09-01 Thread Pavel Ruzicka
Hello,

> Thanks.
>
> It works in 1.0.46.
> 1.0.4[789] are broken.

1.0.46 and older are broken too, but in other situations.

Best regards,

Pavel Ruzicka

> The problem is probably around these entries in CHANGES:
>
> - 2004/01/11 -- Milan Obuch <[EMAIL PROTECTED]>
>   improved mrtg alt scale
>   improved ascii output spacing in rrdtool cli (port from FreeBSD)
>   fixed error in month parsing in parsetime (port from FreeBSD)
>
> = 1.0.46 2004/01/04 -- Tobi
>

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: a few graphs crazy with --alt-y-mrtg

2004-09-01 Thread Pavel Ruzicka
Hello,

> I recently upgraded to rrdtool 1.0.49.
> Using mrtg 2.9.17 as backend and my14all.cgi as frontend.
> The upgrade made option --alt-y-mrtg available, so the other day I enabled
> it in the my14all frontend. Everything seems OK, but a few graphs show
> values between -2 and +6 (approx) instead of 0 to 100. (These are CPU
> graphs.)

I was problems with --alt-y-mrtg option in 1.0.46 and older.
Y axis was moved down in some situations.

There was changes in 1.0.47, which resolved this math bug.
Maybe this change makes some other problem.
You can try 1.0.46 version of RRDTool.

Best regards,

Pavel Ruzicka

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: Off Setting Graph time

2004-08-12 Thread Pavel Ruzicka
> Does anyone know how I can off set the graph by one hour.  For example,
> if I am collecting data at 9:00, I want to be able to show it at 8:00.

Maybe you can try to play with Timezone por graphing script.
I don't know, if it is possible.

Best regards,

Pavel Ruzicka

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: 14all.cgi broken with rrdtool-1.0.47?

2004-08-04 Thread Pavel Ruzicka
Hello,

>   I apologize if this has been covered.  I attempted to search the 
> archives
> before posting.  Anyway, ever since I upgraded rrdtool to 1.0.47, the
> y-axis of my 14all.cgi-generated graphs is goofed up.  I read another post
> that suggested that this might be due to changes in --alt-y-mrtg & -o?  I
> tried contacting the author of 14all.cgi, but I didn't get a response. 
> Does anyone have a fix for this behavior? You can view the borked graphs at
> http://www.howsyournetwork.com/14all/

Some older version of 14all.cgi doesn't use --alt-y-mrtg option.
You can try to remove this option from 14all.cgi.
In RRDTool versions to 1.0.46 --alt-y-mrtg option generates Y Axis moved
UP in some situations. This was fixed in 1.0.47.
Now I use MRTG 2.10.14 with RRDTool 1.0.48 and 14all.cgi v1.1p25 for few
months without visible problems.

Best regards,

Pavel Ruzicka

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: updating rrd

2004-07-26 Thread Pavel Ruzicka
Hello,

> ERROR while updating gbackup.rrd : illegal attempt to update using time
> 1090822313 when last update time is 1090822313 (minimum one second step)

This is because you have two RRD updates immediately one by one.
Probably you must make update of all parameters in one RRD update.

Best regards,

Pavel Ruzicka

PS. Please change your comment at RRD Create from update to create...

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: --alt-y-mrtg & -o

2004-07-09 Thread Pavel Ruzicka
Hello,

there was some fixations of alt-y-mrtg in version 1.0.47.
See changelog: http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/CHANGES

--alt-y-mrtg works badly in older version.
This option works great for me now. But I use this without
logarithmic -o option.
Please test version 1.0.46 or older.

Best regards,

Pavel Ruzicka

> The --alt-y-mrtg and -o options result in graphs with incorrect unit
> ranges on the y-axis. Specifically the y-axis will consist of negative
> numbers with no apparent relation to the values graphed - I seem to
> usually see a range between -118.0 and -122.0. The graph contents appear
> correctly.
>
> --alt-y-grid and -o work as expected with the y-axis ranging from 1e+00 to
> 1e+04 (as opposed to the values indicated above).
>
> --alt-y-mrtg without -o works as expected.
>
> This occurs on a FreeBSD 4.10-STABLE system with rrdtool-1.0.47 installed
> from ports or rrdtool-1.0.48 installed from source.

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: Graphs showing broken lines?

2004-07-08 Thread Pavel Ruzicka
Hello,

> I've got rrd graphing many different cisco and Alcatel switches and for
> some reason many of my graphs show broken lines (spaces with no data)...can

If you have spaces in your graph, that probably was not measured data.
Maybe some overload of your system (Memory, CPU load) or connectivity
problem or DNS resolving problem. Look at some logs, what is wrong.

Best regards,

Pavel Ruzicka

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: multiple graphs

2004-06-16 Thread Pavel Ruzicka
Hello,

> time|mail|spam|virus
> xx10|  15 | 4  |  2
> xx20| 14   | 3  |  6
>
> files tilmeline is drawn normally, - all lines are visible,
> but the second line is bad, because, 'virus' line is drawn over the
> 'spam' line, because its bigger, and I can't see 'spam'.
> Is there any other solution, or i will have to make unfilled 'spam' and
> 'virus' lines?

If your data are from one source (mail + spam + virus = all mails) you
can use "stack" for graphing these values. On top, you can graph 1px
line, which will look pretty.
1st value - AREA
2nd value - STACK
3rd value - STACK
4th value (1+2+3) - LINE

I use this mechanism for graphing number of ports.
AREA-Free, STACK-Used, LINE-All.

Best regards,

Pavel Ruzicka

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: Y Axis Label Precision Question

2004-06-16 Thread Pavel Ruzicka
Hello,

> Thanks, but I've already tried that and it's not quite the fix I'm
> looking for.

you can try options "--alt-y-grid" or "--alt-y-mrtg", which computes Y axis
automatically in other way.

If it is not enough, you can try to play with option "--y-grid".
Parameters for this option are documented in --x-grid option.
Documentation is here:
http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/manual/rrdgraph.html

Look at option "--alt-autoscale" too.

Best regards,

Pavel Ruzicka

>
> With (or without) that option specified the *range* of values on the Y
> axis is correct but the labels will be displayed as 2.0 or 1.5 depending
> on the actual range of values and the number of divisions on the axis.
> So the values are correct, but they're just not being displayed as
> integers.
>
> Here are the options that I'm currently using -
>
> --vertical-label "Files Retrieved per Hour" \
> --title "Hourly TFTP System Statistics" \
> --units-exponent 0 \
> --start -93600 \
> --end -300 \
> --width 695 \
> --height 292 \
> --step 3600 \
> --lower-limit 0 \
> --imgformat PNG \
> --color BACK#EEF1E0 \
> --color SHADEA#EEF1E0 \
> --color SHADEB#EEF1E0 \
> --color ARROW#00 \
> --no-minor \
>
> Regards,
>
> Steve Robb
>

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: R: Re: RRDTOOL - SNMP & System Resources

2004-06-08 Thread Pavel Ruzicka
Hello,

> BTW I cannot give me an answer how the memory is changing so quickly and
> why the allocated memory from the scripts cannot change to free at the end
> of the process.

On my system kernel gets a much of free RAM for cache.
I use Linux kernel 2.6.5.

Best regards,

Pavel Ruzicka

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: Using MRTG with RRDTOOL

2004-06-07 Thread Pavel Ruzicka
Hi,

>  I have some doubts about the rrdtool.
>  I am using MRTH with RRDTOOL and I want create a graph in an especifc day.
>  How can I do that?
>  I am using the 14all.cgi script.

You can use lynx for getting right picture started from cron.
One line example:
---
/usr/bin/lynx -dump 
"http://mrtg.domain.cz/mrtg-cgi/14all.cgi?log=as-data&cfg=static-mrtg.cfg&png=daily";
 
>/tmp/assadedaily.png
---

I use this for getting few pictures, creating MIME message with "metasend"
and sending to my boss ;-)

Best regards,

Pavel Ruzicka

PS. Probably you can use wget or run script locally from shell.

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: [mrtg] Pre-generate graphs with MRTG/RRD setup

2004-06-03 Thread Pavel Ruzicka
Hello,

> I am running MRTG with RRD integration as described at
> http://people.ee.ethz.ch/~oetiker/webtools/mrtg/mrtg-rrd.html because I
> need to graph values higher than what MRTG can handle. I have about 200
> targets and I have an indexing script that calls 14all to generate the
> graphs for subsets of the targets. These pages can contain up to 100 graphs
> from various targets. With MRTG only, this was very fast because MRTG would
> create the graphs every five minutes. Now that I have RRD integrated, the
> graphs are generated by the 14all script instead, which is very slow.
>
> Is there any way to get MRTG/RRD to automatically generate the graphs every
> five minutes like MRTG does on its own? Is there a recommended method?

I have MRTG with RRDTool and about 7000 targets. I have my own indexmaker, 
which generates HTML pages with targets, one page per device. On html pages
I have links to 14all.cgi script which generates pages with 4 graphs for one 
target.
I have simple CGI script which can search "string" in html pages.

Generating of graphs is very fast. In past I was problems with speed of 
generating graphs.

There are few critical things:
--
It's important to use modPERL in Apache.

There are performance problem, when kernel updates rrdfiles from cache
to disk.

You need enough of RAM for running MRTG and caching of all rrd files.
On linux you can look for free ram with "top" command. It's better, when swap
is not much used. Newer kernels (2.6) have better memory management.

Other thing is speed of harddrive. One 1rpm SCSI Ultra320 harddrive
is enough ;-)

Processor speed is not critical. 500MHz to 1GHz is enough.

With more targets you can tune filesystem. For example you can enable
for ext2 and ext3 filesystem directory caching.

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: MRTG performance

2004-05-12 Thread Pavel Ruzicka
Hi,

> oh I see what is hititng you ... you use reference names for
> accessing targets and because they do not resolve, mrtg tries to
> repopulate the cache ... in that case it does currently NOT detect
> dead hosts ... will look into it ...
>
> cheers
> tobi

It's great information. I will be very grateful, when you implement this
function ;-)

Best regards,

Pavel Ruzicka

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: MRTG performance

2004-05-12 Thread Pavel Ruzicka
Hello,

> oh I see what is hititng you ... you use reference names for
> accessing targets and because they do not resolve, mrtg tries to
> repopulate the cache ... in that case it does currently NOT detect
> dead hosts ... will look into it ...

I don't understand exactly what you mean.
Did you mean "FastEthernet0/1" with reference name?

Or did you mean with reference name "router" which is in my situation
standard domain name in DNS with reverse. In past I was problem 
with DNS timeouts, but now I'am running caching DNS locally.
I haven't problems with DNS timeouts now.

For this host I use cfgmaker with these additional parameters:
--ifref=descr   --show-op-down  --snmp-options=:::2::2

Best regards,

Pavel Ruzicka

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: MRTG performance

2004-05-12 Thread Pavel Ruzicka
Hello,

> > It's possible to have some deadhost detection?
>
> well mrtg does detect dead hosts, it sends only one request and
> then disables th host until the next round ...

Detecting of dead host doesn't work on my server.

I made experiment:
Create access-list on switch with 26 targets which denied traffic from MRTG 
machine.
MRTG runs for about 10 minutes (normally for about 30 seconds).
Log says this:
-
SNMP Error:
no response received
SNMPv2c_Session (remote host: "router" [192.168.1.34].161)
   community: "community"
  request ID: 1785253648
 PDU bufsize: 8000 bytes
 timeout: 2s
 retries: 2
 backoff: 1)
 at /usr/local/mrtg/bin/../lib/mrtg2/SNMP_util.pm line 487
SNMPGET Problem for ifDescr.2 ifHCInOctets.2 ifDescr.2 ifHCOutOctets.2 on 
[EMAIL PROTECTED]:::2::2:v4only
 at /usr/local/mrtg/bin/mrtg line 1835

WARNING: Could not match host:'[EMAIL PROTECTED]:::2::2' ref:'Descr' 
key:'FastEthernet0/1'
...repeated for every target...

ERROR: Target[router_fastethernet0_1][_IN_] ' $target->[2644]{$mode} ' did not 
eval into defined data
...repeated for every target...
-

Here I have few conclusions:
1. Deadhost doesn't work on my machine.
2. SNMP timeouts doesn't work how expected. 26 targets with 3 tries and 2s 
timeouts are 156 seconds from me and not 10 minutes.

I look in to mrtg perl program, search "dead" and found piece with
this message: "Skipping further queries for Host".
But this message is nowhere in my log.

Can somebody help me with this problem?

> > I have MRTG 2.10.13, linux kernel 2.6.5, perl 5.8.0,
> > two processors 2.4GHz Xeon, 3Gigabytes of ram.

Best regards,

Pavel Ruzicka

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] MRTG performance

2004-05-12 Thread Pavel Ruzicka
Hello,

I use MRTG for measuring about 150 routers and switches and about 7000
targets. When some device is dead, I have holes in graphs.
I have some optimizations - 20 forks, shorter SNMP timeouts, but this is not 
enough.
It's possible to have some deadhost detection?
I use "Includes" - one file, one router.

It's possible to run MRTG independently on files?
But with some precompilation or sharing code.

I have MRTG 2.10.13, linux kernel 2.6.5, perl 5.8.0,
two processors 2.4GHz Xeon, 3Gigabytes of ram.

Best regards,

Pavel Ruzicka

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: --rigid broken?

2004-04-22 Thread Pavel Ruzicka
Hello,

> Yes, i used --alt-y-grid, and when i unset this option graph
> generated correctly.
> Thanks.
>
> But in RRDtool 1.0.45 i use --alt-y-grid and --rigid together without
> problem, although --alt-y-grid not necessary for me.

There are some fixations in options --alt-y-grid and --alt-y-mrtg
in version 1.0.48. You can try this version.

Best regards,

Pavel Ruzicka

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: RRD graph creation

2004-03-28 Thread Pavel Ruzicka
Hello,
> OK, I'm going to play devil's advocate here: WHY is it not a good idea?
>   Rateup would create the graphs all the time anyway.  By switching to
> rrdtool, I get more disk IO efficiency because of the database format.

1. This is not a good idea, because you need much processor time for graph
generating. For example, I have 6500 targets * four graphs = 26000 
pictures/5min.
2. 14all is a PERL script. I use modPerl in Apache. Without something like
modperl you've got bad performance.
3. This is double work probably.

> I was looking for an example of the exact call to "rrdtool graph", not
> ANOTHER pointer to use the CGI.

OK at attachment (If mailing list doesn't break it) I send you debug from 
14all.cgi script.

> get into production).  So, I'd like to migrate to RRDTool for logging
> with graphs created always, and then migrate to RRDTool with cgi-based
> graph creation.

I was write my own html index maker, which I run every 24 hours after
cfgmaker. Next I have small stupid PERL CGI script, which make possible
pattern search from HTML pages. For example descriptions from router
interfaces. 

> I too have one config per router.  But at nearly 200KB and over 4000
> lines, I will probably still have a slow-to-read configuration.

Some my configs have about 400kB and graphs are generated to 1 second.
My greates problem was harddisk performance, but now I'am happy with
SCSI Ultra320 controller with 64MB cache and harddisk with 15000RPM.

Best regards,

Pavel Ruzicka


-- Attached file removed by Ecartis and put at URL below --
-- Type: text/plain
-- Size: 4k (4432 bytes)
-- URL : http://www.ee.ethz.ch/~slist/p/14log.txt


--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: RRD graph creation

2004-03-28 Thread Pavel Ruzicka
Hello,

> As an intermediate step, I'd like to switch to a log format of rrdtool
> but still have all of the graphs created.

You can call cgi script for generating graphs from your script on command 
line, but it's not a good idea...

> If not, does anyone have a sample of how they call rrdtool to do the
> graphing to mimic the intervals of MRTG's four typical graphs?

You can look at RRDTool integration page:
http://people.ee.ethz.ch/~oetiker/webtools/mrtg/mrtg-rrd.html
There are scripts 14all.cgi and mrtg-rrd which generates html page with graph 
in MRTG-like style.

I use 14all.cgi, which is called on demand from Apache.

Link to script looks like this:
http://mrtg.isp.xx/mrtg-cgi/14all.cgi?log=gw1.router.xx_serial4_0_24&cfg=gw1.router.xx.cfg

I have MRTG configuration in more included files (1 router = 1 file), because, 
when you have thousands target, that generating of graphs is slow due to 
parsing MRTG config file. Script is called with parameter for included cfg 
file.

Best regards,

Pavel Ruzicka

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: Inaccurate graphs

2004-03-24 Thread Pavel Ruzicka
Hello,

> It still is graphing the 215GB value in the wrong location (around 225G).
> 215G should be just above the 210G mark. I have attached a graph that I
> configured to have a Y size of 1000 to show more detail.
> Is there something about large values that RRD can't graph properly?

It is long-term bug in RRDTool. This bug is in math function and is visible
with options --alt-y-mrtg and --alt-y-grid in RRDGRAPH function.

Solution is to edit 14all.cgi, find and remove --alt-y-mrtg option from it.

Best regards,

Pavel Ruzicka

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: help with graph issue

2004-02-27 Thread Pavel Ruzicka
Hello,

> But  would like the graphs it produces to be filled in below , like MRTG
> graphs are.

You must use AREA (and STACK) on place LINE.

See http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/manual/rrdgraph.html

> I thought the setting '--alt-y-mrtg' did that but I seem to get an error
> when thats placed in the 'rrdtool graph' command line.

This option only alternatively computes Y axis.
This option is relatively new and was not in older RRDTool versions.

Best regards,

Pavel Ruzicka

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: rrd_graph(): ERROR: STACK must follow AREA, LINE or STACK

2004-01-27 Thread Pavel Ruzicka
Hi,

> does anybody know what i have to do to get rrd_graph started without the
> following error?
> rrd_graph(): ERROR: STACK must follow AREA, LINE or STACK

You must use first AREA or LINE from baseline of graph.

This is discribed in man page:
http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/manual/rrdgraph.html

In this part: "STACK:vname[#rrggbb[:legend]]".
There are this line:
---
This obviously implies that the first STACK must be preceded by an AREA or 
LINE? -- you need something to stack something onto in the first place ;)
---

Best regards,

Pavouk

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: Graph without values......newbie needs help please

2004-01-16 Thread Pavel Ruzicka
Hello,

> # now create the graph
> rrdtool graph ${PIC1} --start ${STARTGRAPH} --end ${NOWTIME}
> --vertical-label "Temperatur [°C]" \ DEF:mytmp=${DBASE}:temp:LAST
> LINE2:mytmp:#FF:Uhrzeit --title "Temperatur USV svr_01" \

you can try to add these options, when you creating graph:

--units-exponent 0
Disable K, M on label...

--lower-limit 0
0 will be always visible in left-down corner.

--alt-autoscale-max
Autoscale Y axis

--alt-y-grid
Alternative grid computing.
You can try --alt-y-mrtg too.

Behavior of some combinations is not correct, but you can find
functional combination for you. For example displaying of Zero
is different with other options. This is maybe changed in last
version, but I don't test it.

Pavouk

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: mrtg/rrdtool problem

2004-01-02 Thread Pavel Ruzicka
> On Wed, Dec 31, 2003 at 01:54:58PM -0600, Lester, Hiram wrote:
> > ERROR: Target[10.72.19.1_1][_IN_] ' $target->[0]{$mode} ' did not eval
> > into defined data
> > ERROR: Target[10.72.19.1_1][_OUT_] ' $target->[0]{$mode} ' did not eval
> > into defined data
> >
> > If someone can give me some idea what to try next to get this working,
> > I'd appreciate it. Thanks.

I have some problem with 2.10.11. Version 2.10.5 works great.
Probably some PERL incompatibily with your and my version of PERL.

> The problem seems to be in MRTG.  Search the archives, perhaps the problem
> is already known and can be solved by running another version or giving
> different options (unknown_as_zero comes to mind).

No this is unambiguously bug. Solution is to use older MRTG or maybe upgrade
of your PERL or repair problematic code in mrtg perl program.

Pavouk

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: RRDtool lying about data values

2004-01-02 Thread Pavel Ruzicka
> I appreciate the quick response, but I don't believe that to be inline
> with what I've read. As I understand it, the MRTG 5 minute limitation only
> applies if one is using MRTG to store the data. I've heard that once you
> apply the logformat command, you can set it as low as one minute.
>
> Can anyone corroborate this and if so, what would be the cause of the
> inconsistency?

I was this problem too. This is bug in --alt-y-mrtg option in RRDTool.
This bug is in --alt-y-grid option too, but there are not much visible.
This bug is in all versions of rrdtool (tested to 1.0.45) where this command
is implemented. With some values is problem visible more, with other values
is visible less, but it's still here.

Solution of this problem is to edit 14all.cgi script and remove from them
"--alt-y-mrtg" option in rrdtool calling.
Best solution is to repair computing routines in RRDTool code and sending
patch to author, but I'am not programmer :-(

I report this before few months, but nobody have time to repair it :-(

Pavouk

> -Jon Hartman
>
> MRTG 2.9.17-3
> RRDtool 1.0.45
> 14all.cgi
>
> I had started using MRTG alone, then converted to rrdtool and 14all.cgi. I
> also dropped my polling interval from 5 minutes to 1. When I look at the
> graphs, the values listed under them don't mesh with the data points on
> the curve. As one can see in the example:
> http://home1.gte.net/jodih/graph.png. The maximum out is stated to be
> 113.028Mbps, while the graph clearly shows it to be more about 150Mbps.
>
> Is there some sort of math error here?

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] MRTG 2.10.5 to 2.10.11 upgrade problem

2003-12-17 Thread Pavel Ruzicka
Hello,

I was upgraded MRTG 2.10.5 to 2.10.11 and I have problem, that MRTG says on 
ALL targets these errors:
--
ERROR: Target[gw3.router.cz_serial4_3_15][_IN_] ' $target->[3738]{$mode} ' did 
not eval into defined data
ERROR: Target[gw3.router.cz_serial4_3_15][_OUT_] ' $target->[3738]{$mode} ' 
did not eval into defined data
--

When I change "mrtg" in bin directory to older version 2.10.5, everything is 
OK. Included perl libs I can leave new from 2.10.11.

I have old linux machine with RedHat6.2.
There are PERL 5.005_03.
Maybe there are problem with PERL incompatibility.

Have somebody some ideas?

Thanks, Pavel Ruzicka

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: Faster tool to generate graphs using RRD files

2003-11-13 Thread Pavel Ruzicka
Hi,

> Now I have aproximately 11000 targets and rrdtool continues being fine to
> poll the variables in this targets. But unafortunately another problem
> appears:

I have about 6500 targets and I found some problematic parts.
For faster graphing is needed modperl in Apache.

Problem is with writing 6500 files. MRTG gets targets, system (linux) caches
data to RAM and after few seconds kernel tries flush buffers on to disk.
Now begins hell for interactive applications. System is totally dead for
about 1 minute. I have idea, that on this helps more RAM (I have 512MB),
faster SCSI disk 15000RPM (I have 7200RPM) and maybe RAID SCSI controller
with huge cache. Processor speed is not too important (I have 2x 400MHz).

I use 14all.cgi.

Best regards,

Pavel Ruzicka

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: alt-autoscale

2003-10-24 Thread Pavel Ruzicka
Hi,

> Thanks v. much for the reply and the help.
>
> I just tried what you suggested - and I initially thought that it had
> worked. However on closer inspection of the created graph, I notice that
> the y-scale now has 2 "1.0k" lines. Pretty strange if you ask me.

you can use "--units-exponent 0" option, which write "1000" than 1k
on the Y axis.

I use these options for similar graph:
--units-exponent 0 --lower-limit 0 --alt-autoscale-max --alt-y-grid

> > Try --alt-y-grid. It should give you nice grid
> >
> > Regards, Sasha

Yes this works right.
Other option is to use "--alt-y-mrtg", but on some values graph doesn't match
Y grid. This is maybe bug in "--alt-y-mrtg" option.

> > > There seems to be a problem because when I use the -A command, my y-axis
> > > scale disappears - making it impossible to read the values on the graph. 

I know, this is possible bug (or feature?) in RRDTool graph function.

Best regards,

Pavel Ruzicka

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] rrdgraph possible bugs

2003-10-07 Thread Pavel Ruzicka
When I use option "--units-exponent 0", then Y axis completely disappear.

When I use option "--units-exponent 0" together with "--lower-limit 0", then
Y axis disappear, but zero is visible as "-0.0".

When I use option "--units-exponent 0" together with "--lower-limit 0"
and "--alt-y-grid", then Y axis is displayed correctly and zero
is displayed as "0", what is OK.

When I use option "--units-exponent 0" together with "--lower-limit 0"
and "--alt-y-mrtg", then Y axis is displayed correctly and zero
is displayed as "0", what is OK.

Can somebody tell me, if I don't understand something, or is this BUG in 
rrdtool?

Thanks for reply,

Pavel Ruzicka

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi