[rrd-users] statistic for sendmail

2003-06-11 Thread Viaris
Hi all

I am begining with rrdtool, I need to create statistic for sendmail in mode
graphic, Exist the software mailgraph but this only  works with postfix,
somebody knows some form fast to generate statistics of mailllog with
rrdtool?

I need a guide..

Thanks in Advanced,

Regards.

--
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] Help

2003-06-11 Thread Dave Parrott
When trying to run  make site-perl-install I get the following errors Ive
tried everything i can think of and searched every where else.  Can anyone
please help?

OS: solaris 8

gcc -c -I../src -I../gd1.3  -xO3 -xdepend-DVERSION=\1.000421\ -DXS_VER
SION=\1.000421\  -I/usr/perl5/5.00503/sun4-sola
ris/CORE -DPERLPATCHLEVEL=5 RRDs.c
gcc: language depend not recognized
gcc: RRDs.c: linker input file unused because linking not done
LD_RUN_PATH= cc -o blib/arch/auto/RRDs/RRDs.so  -G
RRDs.o -L../src/.libs/ -lrrd_private -lm
cc: RRDs.o: No such file or directory
make[2]: *** [blib/arch/auto/RRDs/RRDs.so] Error 1
make[2]: Leaving directory
`/export/home/dparrott/rrdtool-1.0.42/perl-shared'
make[1]: *** [perl_shared] Error 2
make[1]: Leaving directory `/export/home/dparrott/rrdtool-1.0.42'
make: *** [all-recursive] Error 1

Thanks,

Dave Parrott

--
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: statistic for sendmail

2003-06-11 Thread Carles Xavier Munyoz Baldó
El Miércoles, 11 de Junio de 2003 02:21, Viaris escribió:
 I am begining with rrdtool, I need to create statistic for sendmail in mode
 graphic, Exist the software mailgraph but this only  works with postfix,
 somebody knows some form fast to generate statistics of mailllog with
 rrdtool?

Hi,
You may use the SMA (SendMail log Analizer) (http://www.klake.org/sma/) and 
use the generated report to create your Sendmail statistics graphs.

For example, I use SMA to analyze the las 5 minutes Sendmail logs and generate 
graps about the number of messages delivered by minute, inbound and outbound 
messages per minute, total of messages every 5 minutes, etc ...

Moveover, I use the CACTI RRDTool frontend 
(http://www.raxnet.net/products/cacti/) for easily manage the graphs and RRD 
databases.

Greetings.
---
Carles Xavier Munyoz Baldó
[EMAIL PROTECTED]
http://www.unlimitedmail.net/
---

--
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] Problems with xport

2003-06-11 Thread Fredrik Wänglund


Im trying to export some data from an RRD with the command

rrdtool xport --step 86400 -s 00:00 01.05.2003 -e 00:00 01.06.2003 
DEF:in=mow-adc-001_net.rrd:IN:AVERAGE XPORT:in

then I get:

1051747.6621124991e+02
1051838.4126503787e+02
1051921.6485886422e+03
1052011.2290595968e+03
1052101.1864865570e+03
1052192.2166506767e+03
1052281.7855245272e+03
1052372.0628251502e+03
1052461.732415e+03

In the output there is 9 seconds (25h) between every row. Why??
What is the correct syntax to get one row from 00:00 every day?

The RRD is created with this command:

rrdtool create mow-adc-001_net.rrd DS:IN:COUNTER:900:0:U 
DS:OUT:COUNTER:900:0:U RRA:AVERAGE:0.5:1:50400 RRA:AVERAGE:0.5:60:43800


/FredrikW





--
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 [bcc][faked-from][mx][bayes]

2003-06-11 Thread Serge Maandag
Your browser won't display it, because it's expecting an image.
So the only place you can find them is the errorlog of your webserver.

You can of course make a errorlog viewer frontend.
In perl you can intercept error messages and tag them with some keyword,
I don't know if you can do that in a shell script. Perhaps
/etc/init.d/functions holds something like that.

serge.

-Original Message-
From: Michael Earls [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 11, 2003 3:30 PM
To: rrd-users@list.ee.ethz.ch
Subject: [rrd-users] rrdtool [bcc][faked-from][mx][bayes]
Importance: Low



Is there a way to debug error messagesd when creating images?  Below is
my sh script/cgi to create the image from rrd data.  My image output is
The image http://mrtg/cgi-bin/isp/inbound-daily.cgi; cannot be
displayed, because it contains errors.

What could case this issue?


#!/bin/sh


echo Content-Type: image/png
echo

rrdtool graph - \
--imgformat PNG \
--interlaced \
--start=-86400 \
--title 'ISP Traffic Inbound' \
--base=1000 \
--width=750 \
--height=200 \
--alt-autoscale-max \
--vertical-label Kilobytes Per Second \
DEF:if=/var/www/mrtg/traffic/isp/fastethernet2_0.rrd:ds0:AVERAGE \
DEF:io=/var/www/mrtg/traffic/isp/atm1_0.91-aal5_layer.rrd:ds0:AVERAGE
\
CDEF:infuse=if,8,* \
CDEF:inoar=io,8,* \
LINE2:infuse#00CF00:isp1 \
GPRINT:inuse:LAST: Current\:%8.2lf %s \
GPRINT:inuse:AVERAGE:Average\:%8.2lf %s \
GPRINT:inuse:MAX:Maximum\:%8.2lf %s\n \
LINE2:inoar#002A97:isp2 \
GPRINT:inoar:LAST:Current\:%8.2lf %s \
GPRINT:inoar:AVERAGE:Average\:%8.2lf %s \
GPRINT:inoar:MAX:Maximum\:%8.2lf %s

Thanks,

michael

--
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

2003-06-11 Thread Michael Earls
mrtg:/usr/lib/cgi-bin/isp# ./inbound-daily.cgi  

Content-Type: image/png

libpng warning: Application was compiled with png.h from libpng-1.0.12
libpng warning: Application  is  running with png.c from libpng-1.2.5
libpng error: Incompatible libpng version in application and library
./inbound-daily.cgi: line 28: 27755 Segmentation fault  rrdtool
graph /var/www/mrtg/traffic/internet/inbound-daily.png --imgformat PNG
--interlaced --start=-86400 --title 'ISP Traffic Inbound'
--base=1000 --width=750 --height=200 --alt-autoscale-max
--vertical-label Kilobytes Per Second
DEF:if=/var/www/mrtg/traffic/fuse.chmcc.org/fuse.chmcc.org_fastethernet2_0.rrd:ds0:AVERAGE
DEF:io=/var/www/mrtg/traffic/oarnet.chmcc.org/oarnet.chmcc.org_atm1_0.91-aal5_layer.rrd:ds0:AVERAGE
CDEF:infuse=if,8,* CDEF:inoar=io,8,* LINE2:infuse#00CF00:Fuse
GPRINT:infuse:LAST: Current\:%8.2lf %s
GPRINT:infuse:AVERAGE:Average\:%8.2lf %s
GPRINT:infuse:MAX:Maximum\:%8.2lf %s\n LINE2:inoar#002A97:Oar.Net
GPRINT:inoar:LAST:Current\:%8.2lf %s
GPRINT:inoar:AVERAGE:Average\:%8.2lf %s
GPRINT:inoar:MAX:Maximum\:%8.2lf %s
mrtg:/usr/lib/cgi-bin/isp# 

replaced 
rdtool graph /dir/isp.png \

 Todd A. Green [EMAIL PROTECTED] 06/11/03
10:00AM 
Replace the - with a file name and run the script from the
commandline.
. 
On Wed, 2003-06-11 at 08:30, Michael Earls wrote:
 Is there a way to debug error messagesd when creating images?  Below
is
 my sh script/cgi to create the image from rrd data.  My image output
is
 The image http://mrtg/cgi-bin/isp/inbound-daily.cgi; cannot be
 displayed, because it contains errors.
 
 What could case this issue?
 
 
 #!/bin/sh
 
 
 echo Content-Type: image/png
 echo
 
 rrdtool graph - \
 --imgformat PNG \
 --interlaced \
 --start=-86400 \
 --title 'ISP Traffic Inbound' \
 --base=1000 \
 --width=750 \
 --height=200 \
 --alt-autoscale-max \
 --vertical-label Kilobytes Per Second \
 DEF:if=/var/www/mrtg/traffic/isp/fastethernet2_0.rrd:ds0:AVERAGE \

DEF:io=/var/www/mrtg/traffic/isp/atm1_0.91-aal5_layer.rrd:ds0:AVERAGE
 \
 CDEF:infuse=if,8,* \
 CDEF:inoar=io,8,* \
 LINE2:infuse#00CF00:isp1 \
 GPRINT:inuse:LAST: Current\:%8.2lf %s \
 GPRINT:inuse:AVERAGE:Average\:%8.2lf %s \
 GPRINT:inuse:MAX:Maximum\:%8.2lf %s\n \
 LINE2:inoar#002A97:isp2 \
 GPRINT:inoar:LAST:Current\:%8.2lf %s \
 GPRINT:inoar:AVERAGE:Average\:%8.2lf %s \
 GPRINT:inoar:MAX:Maximum\:%8.2lf %s
 
 Thanks,
 
 michael
 
 --
 Unsubscribe
mailto:[EMAIL PROTECTED] 
 Helpmailto:[EMAIL PROTECTED] 
 Archive http://www.ee.ethz.ch/~slist/rrd-users 
 WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi 
-- 
Todd A. Green [EMAIL PROTECTED]

--
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

2003-06-11 Thread Todd A. Green
On Wed, 2003-06-11 at 09:13, Michael Earls wrote:

 libpng warning: Application was compiled with png.h from libpng-1.0.12
 libpng warning: Application  is  running with png.c from libpng-1.2.5
 libpng error: Incompatible libpng version in application and library
Thar she blows captain!

Check your libpng installation.  Looks like you've got two difference versions 
installed.  Perhaps one was from an RPM (or such) package and the other from 
source.

 -- 
 Todd A. Green [EMAIL PROTECTED]

--
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

2003-06-11 Thread Dave Parrott
Any Ideas or links where I can find the information?

Thanks in Advance,

dp

- Original Message - 
From: Dave Parrott [EMAIL PROTECTED]
To: rrd-users@list.ee.ethz.ch
Sent: Wednesday, June 11, 2003 12:24 AM
Subject: [rrd-users] Help


 When trying to run  make site-perl-install I get the following errors Ive
 tried everything i can think of and searched every where else.  Can anyone
 please help?

 OS: solaris 8


gcc -c -I../src -I../gd1.3  -xO3 -xdepend-DVERSION=\1.000421\ -DXS_VER
 SION=\1.000421\  -I/usr/perl5/5.00503/sun4-sola
 ris/CORE -DPERLPATCHLEVEL=5 RRDs.c
 gcc: language depend not recognized
 gcc: RRDs.c: linker input file unused because linking not done
 LD_RUN_PATH= cc -o blib/arch/auto/RRDs/RRDs.so  -G
 RRDs.o -L../src/.libs/ -lrrd_private -lm
 cc: RRDs.o: No such file or directory
 make[2]: *** [blib/arch/auto/RRDs/RRDs.so] Error 1
 make[2]: Leaving directory
 `/export/home/dparrott/rrdtool-1.0.42/perl-shared'
 make[1]: *** [perl_shared] Error 2
 make[1]: Leaving directory `/export/home/dparrott/rrdtool-1.0.42'
 make: *** [all-recursive] Error 1

 Thanks,

 Dave Parrott

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

--
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] How to add aditional data into an rrd file ?

2003-06-11 Thread Pablo Luchetti
Hi,
I need to add a new DS into an existing rrd file whithout loosing data.
I think there are 2 ways to do that:

The first, using rrdtool dump, manipulate the xml output and last,
rrdtool restore.

The second (bad solution for me) is to create a new rrd file to put the
aditional data I want to graph.

Is there another way to solve this?

Thanks!
-- 
--- [EMAIL PROTECTED] 
 Pablo Luchetti --

--
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

2003-06-11 Thread Markus Mayer
On Wed, Jun 11, 2003 at 10:48:57AM -0400, Dave Parrott wrote:
 Any Ideas or links where I can find the information?
 
  gcc -c -I../src -I../gd1.3  -xO3 -xdepend [...]

You are using Sun Workshop/Forte compiler-flags with GCC. GCC doesn't
understand -xO3 (it's just -O3) and -xdepend (I don't know of any GCC
equivalent here).

I guess this happens automatically compiling RRD under Solaris (I've never
done that myself, but I know it from compiling other Perl modules). So you
have basically 2 choices if you want to compile RRD yourself:

1) Write a wrapper script for gcc (called 'mycc' or some such) that catches
all Sun compiler flags and converts them to GCC flags (-xO3 - -O3, -KPIC -
-fPIC, etc.) and then calls GCC. Of course the makefile must then call
'mycc' as C compiler.

2) Or you download a demo-version of Sun's compiler from their web-site for
free. It runs for 30 or 60 days (can't remember).

Hope that helps.

Markus

--
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: How to add aditional data into an rrd file ?

2003-06-11 Thread Allan Houston
Hi Pablo,

I reckon your easiest method is to use the add_ds.pl script which came in
your contrib directory when you downloaded the rrd source tarball. I think
there's a batch script too , I can't remember why , but I ended up just
writing my own bash script to do my additions.

The line which does the additions is :

./add_ds.pl 6 0 GAUGE 1200 0 100  dump.xml  out.xml  ( I copied the
script to my rrd directory because I'm lazy..)

In this case I was added 6 new SNR readings, so you then tune the rrd to get
the names for your datasources right etc. In my case the new datasources
started at ds6 upwards, you may need to experiment a bit.

rrdtool tune $file -r ds6:snr0 -r ds7:snr1 -r ds8:snr2 -r ds9:snr3 -r
ds10:snr4 -r ds11:snr5

Also, you need to create a temp folder in the rrd directory - this will
contain a copy of the rrd before modification, just in case ;o)

... and remember to kill your cron job thats doing the data collection or
some of your rrd's may be locked when you're trying to update them.

hth !!

Allan.

-

#!/bin/bash

for file in `ls -1 *.rrd`
do
if [ -f dump.xml ]
then
rm dump.xml
fi

if [ -f out.xml ]
then
rm out.xml
fi

echo Adding DS to $file
rrdtool dump $file  dump.xml
if [ -f dump.xml ]
then
./add_ds.pl 6 0 GAUGE 1200 0 100  dump.xml  out.xml

if [ -f out.xml ]
then

mv $file temp/$file
rrdtool restore out.xml $file

if [ -f $file ]
then
rrdtool tune $file -r ds6:snr0 -r
ds7:snr1 -r ds8:snr2 -r ds9:snr3 -r ds10:snr4 -r ds11:snr5
fi
fi
fi

chown mrtg:users $file
chmod 750 $file
done

- Original Message -
From: Pablo Luchetti [EMAIL PROTECTED]
To: rrd-users@list.ee.ethz.ch
Sent: Wednesday, June 11, 2003 5:11 PM
Subject: [rrd-users] How to add aditional data into an rrd file ?


 Hi,
 I need to add a new DS into an existing rrd file whithout loosing data.
 I think there are 2 ways to do that:

 The first, using rrdtool dump, manipulate the xml output and last,
 rrdtool restore.

 The second (bad solution for me) is to create a new rrd file to put the
 aditional data I want to graph.

 Is there another way to solve this?

 Thanks!
 --
 --- [EMAIL PROTECTED] 
  Pablo Luchetti --

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




--
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] 5 minute average Linux memory usage

2003-06-11 Thread Max Kipness
Anybody know of a way? I know it can be polled via top to standard
output and /proc/meminfo but this would just give the state of memory
usage at that particular moment.
 
Thanks,
Max
 
-- Attached file removed by Ecartis and put at URL below --
-- Type: application/ms-tnef
-- Size: 2k (2648 bytes)
-- URL : http://www.ee.ethz.ch/~slist/p/3EE78E4819264-winmail.dat


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