Mladen Tsvetkov | 1 Feb 2008 11:20
Favicon

log files quiestion

Hi,

 

Would you please help me on this?

 

I have MRTG installed and the data is logged in log files, not in RRD.

 

The configuration file for the managed device contains the line:

 

Options[_]: bits

 

so the y axis on the graphs is shown in bits/s.

 

The question is if the data in the log file is stored in bits/s or in bytes/s?

 

The interface monitored is Ethernet 10mbps and configuration file contains the line:

 

MaxBytes[XXXXX]: 1250000

 

The question is if MRTG correctly compares the MaxBytes value which is in bytes and the y axis, which is in bits/s?

 

Regards,

 

Mladen

_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
Daniel | 1 Feb 2008 12:21
Picon

Re: 95/5 traffic accouting

Guten Tag Steve Shipway,

that sounds realy cool. I will test this way ;)

Thx

am Donnerstag, 31. Januar 2008 um 02:24 schrieben Sie:

> I believe the 95/5 method is '95th percentile of 5-min average'. 
> Since MRTG normally polls at 5-min intervals this is possible.
>  
> If you use MRTG/RRDTool with the routers2 frontend, then you get
> the 95th Percentile calculations automatically, just add the 'percentile = yes' option in the
> routers2.conf.  You may also want to run rrd archiving (see the
> routers2 documentation) to keep a record if your billing is
> calculated at a specific time point every
> month.
>  
> There are also a couple of other utilities which will calcualte the
> 95th Percentile directly from .log or .rrd files (see the MRTG website)
>  
> Steve

> ________________________________

> From: mrtg-bounces <at> lists.oetiker.ch on behalf of Daniel

> all big provider are billing with a 95/5 method.
> Is there any way to implement this to mrtg graphs?

--

-- 
Mit freundlichen Grüßen
Daniel
mailto:daniel <at> ipv6-network.de
Garon Ashby | 1 Feb 2008 15:28

Setting up RRD Tools.

I'm really a complete novice with MRTG. 
 
I wanted to know if there was away to monitor multiple devices? I'm running this on a windows XP system, I have no exp. with Pearl so I'm having a problem getting RRDTools to work in XP.
 
I need to way to read multiple devices and also if possible change the time from 5 mins to 30 seconds, etc.
 
 
Thanks.
 
 







Garon Ashby
Network Specialist
Kansas City Kansas Community College
913 288-7431
gashby <at> kckcc.edu
_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
Daniel J McDonald | 1 Feb 2008 16:09
Favicon

Re: Setting up RRD Tools.


On Fri, 2008-02-01 at 08:28 -0600, Garon Ashby wrote:
> I'm really a complete novice with MRTG.  
>  
> I wanted to know if there was away to monitor multiple devices? I'm
> running this on a windows XP system, I have no exp. with Pearl so I'm
> having a problem getting RRDTools to work in XP. 

If you are a novice, why make it harder on yourself by running Windows?
MRTG runs very easily under linux, as does rrdtool.  Trying to run
server-class software on a workstation class O/S is never terribly easy.

>  
> I need to way to read multiple devices 

There are three ways:
1. append the cfgmaker output from the second device to the first .cfg
file.  This is the least scalable method.
2.  run a separate instance of mrtg for every device.  This is
reasonably unscalable, but might be necessary under non-threaded O/S's
like Windows.
3.  Create separate files for each device using cfgmaker.  Create a
"wrapper" config that has Include: statements for every file.  This is
the recommended scalable method that integrates well with front-ends
such as routers2.cgi.

> and also if possible change the time from 5 mins to 30 seconds, etc. 

I doubt you really want 30 second data, but you would need to be running
rrdtool.  Then use the Interval: directive with a value of 00:30

> 
--

-- 
Daniel J McDonald, CCIE #2495, CISSP #78281, CNX
Austin Energy
http://www.austinenergy.com
Steve Shipway | 1 Feb 2008 21:32
Picon
Picon
Favicon

Re: Setting up RRD Tools.

If you are a complete novice, then you might consider installing the 'MRTG Bundle' from Open Innovations.  This installs all the required software in one package, including schedulers and things to create the configuration files for multiple devices easily.
 
Although this runs at 5min interval by default, MRTG can cope with a 1-min interval easily by adding 'Interval:1' to the config file (but remember that you should do this for ALL files handled by that instance of MRTG).
 
Steve

From: mrtg-bounces <at> lists.oetiker.ch on behalf of Garon Ashby
Sent: Sat 02-Feb-08 3:28 a.m.
To: mrtg <at> lists.oetiker.ch
Subject: [mrtg] Setting up RRD Tools.

I'm really a complete novice with MRTG. 
 
I wanted to know if there was away to monitor multiple devices? I'm running this on a windows XP system, I have no exp. with Pearl so I'm having a problem getting RRDTools to work in XP.
 
I need to way to read multiple devices and also if possible change the time from 5 mins to 30 seconds, etc.
 
 
Thanks.
 
 







Garon Ashby
Network Specialist
Kansas City Kansas Community College
913 288-7431
gashby <at> kckcc.edu
_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
Steve Shipway | 1 Feb 2008 21:44
Picon
Picon
Favicon

Re: log files quiestion

The data is stored in bytes (IE, the value reported by the SNMP).  The 'bits' option only affects display of the data, not retrieval or storage.  Thus, the maxbytes value is compared with the retrieved value, and so for a 10Mbit connection, MaxBytes is 1280000.  The MaxBytes thresholding is done at data retrieval, the y-axis labels done at data display:
 
1. Retrieve data (in bytes), do any Target[] line calculations, THEN compare to MaxBytes and AbsMax
2. Store data (in RRD or LOG files)
3. Display data, doing any calculations for Factor[] or Options[]:bits
 
If using RRD files, then step 3 can be done by any other external program, of course.
 
Note that other options, such as 'aspercent' and 'dorelpercent' also are done at step 3, not affecting how the data is stored, so you can change your display options at a later time without problem.  If you make calculations on the Target[] line, though, then there are 'permanent' as the data is stored *after* claculating.
 
HTH,
 
Steve
 

From: mrtg-bounces <at> lists.oetiker.ch on behalf of Mladen Tsvetkov
Sent: Fri 01-Feb-08 11:20 p.m.
To: mrtg <at> lists.oetiker.ch
Subject: [mrtg] log files quiestion

Hi,

 

Would you please help me on this?

 

I have MRTG installed and the data is logged in log files, not in RRD.

 

The configuration file for the managed device contains the line:

 

Options[_]: bits

 

so the y axis on the graphs is shown in bits/s.

 

The question is if the data in the log file is stored in bits/s or in bytes/s?

 

The interface monitored is Ethernet 10mbps and configuration file contains the line:

 

MaxBytes[XXXXX]: 1250000

 

The question is if MRTG correctly compares the MaxBytes value which is in bytes and the y axis, which is in bits/s?

 

Regards,

 

Mladen

_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
Steve Shipway | 1 Feb 2008 21:45
Picon
Picon
Favicon

Re: WARNING: Could not match host

WARNING: Could not match host:'public <at> <IP>:::2' ref:'Descr' key:'ATM3/0'
This means that MRTG, when using the SNMP2 community string 'public' on the device <IP>, could not find an interface with a description of 'ATM3/0' as specified in your MRTG .cfg file.
 
This might be because this interface description does not exist, or the community string is wrong, or your host does not have access to query the device.
 
MRTG can try to identify which interface to retrieve statistics on in a number of different ways. You have specified (in the cfg file) to do it by attempting to match Interface Description, so if you change these descriptions in any way (EG by adding or removing interface boards)  then the configuration may no longer work.
 
Steve
_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
Daniel | 2 Feb 2008 08:56
Picon

rateup segfaults

Hi!

I have this in my mrtg.cfg:

EnableIPv6: no
enablesnmpv3: yes
options[_]: growright
LoadMIBs: /usr/local/share/snmp/mibs/UCD-SNMP-MIB.txt

Target[host_mem]:.1.3.6.1.4.1.2021.4.6.0&.1.3.6.1.4.1.2021.4.6.0:public <at> host:::::3
SnmpOptions[host_mem]: 
authkey=>'asd',authprotocol=>'sha',privprotocol=>'aescfb128',username=>'
asd',privkey=>'asd'
Options[host_mem]: nopercent,growright,gauge,noinfo
Title[host_mem]: Free Memory
PageTop[host_mem]: Free Memory
MaxBytes[host_mem]: 1000000
kMG[host_mem]: k,M,G,T,P,X
YLegend[host_mem]: bytes
ShortLegend[host_mem]: bytes
LegendI[host_mem]:  Free Memory:
LegendO[host_mem]:
Legend1[host_mem]: Free memory, not including swap, in bytes

btw, this is from the net-snmp.sf.net's examples.

When running mrtg with:
mrtg --user mrtg --group stats --lock-file /tmp/mrtg.lock /etc/mrtg.cfg
it says:
ERROR: Skipping webupdates because rateup did not return anything 
sensible
WARNING: rateup died from Signal 11
 with Exit Value 0 when doing router 'host_mem'
 Signal was 11, Returncode was 0

And got a core file, on which I did a 'bt full', which wasn't very 
helpful,
#0  0x1c001f98 in image ()
No symbol table info available.
#1  0x1c00a4e1 in main ()
No symbol table info available.

although I have a not-stripped rateup :\

What could be the problem?

Thanks!

Daniel
Niall O'Reilly | 2 Feb 2008 13:27
Picon
Favicon

Re: Setting up RRD Tools.


On 1 Feb 2008, at 15:09, Daniel J McDonald wrote:

> 1. append the cfgmaker output from the second device to the first .cfg
> file.  This is the least scalable method.
>
> [ ... ]
>
> 3.  Create separate files for each device using cfgmaker.  Create a
> "wrapper" config that has Include: statements for every file.  This is
> the recommended scalable method that integrates well with front-ends
> such as routers2.cgi.

	Would you care to explain how '3' has a scalability advantage
	over ''1'?

	/Niall

_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
PAUL WILLIAMSON | 2 Feb 2008 13:54

Re: Setting up RRD Tools.

>>> "Niall O'Reilly" <Niall.oReilly <at> ucd.ie> 2/2/2008 7:27 AM >>>
> Would you care to explain how '3' has a scalability advantage
> over ''1'?
Because trying to maintain one file is a huge PITA.
 
I've been running RRDTool for almost 9 years now, and
I've found that the best way to do it is to create a config
file for each device.  I'm sure there are other ways,
but with this method, you can have a very manageable
master config file, and when a device changes, you
just create an individual configs with an "Include"
statement for each in the master.
 
Paul
 

************************************
This email may contain privileged and/or confidential information that is intended solely for the use of the addressee. If you are not the intended recipient or entity, you are strictly prohibited from disclosing, copying, distributing or using any of the information contained in the transmission. If you received this communication in error, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. This communication may contain nonpublic personal information about consumers subject to the restrictions of the Gramm-Leach-Bliley Act and the Sarbanes-Oxley Act. You may not directly or indirectly reuse or disclose such information for any purpose other than to provide the services for which you are receiving the information.
There are risks associated with the use of electronic transmission. The sender of this information does not control the method of transmittal or service providers and assumes no duty or obligation for the security, receipt, or third party interception of this transmission.
************************************

_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

Gmane