Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hi!
I've been trying to overcome a problem (with me) all morning. I"ve read
the docs (tuts and mans), and I've yet to figure out why i'm so stupid.
I'm trying to agregate nagios data into an rrd, so the timestamps fom
the logfile are used to update, and the performance data variables are
used for data.
For example, we have a machine called zeus, which has the following
output for the ping service check:
1084108512 zeus Ping loss=3D0%;;;0;100 rta=3D569us;150000000;500=
000000;0
1084108632 zeus Ping loss=3D0%;;;0;100 rta=3D619us;150000000;500=
000000;0
1084108752 zeus Ping loss=3D0%;;;0;100 rta=3D530us;150000000;500=
000000;0
1084108872 zeus Ping loss=3D0%;;;0;100 rta=3D579us;150000000;500=
000000;0
So I pipe
create zeus.Ping.rrd --step 300 --start 1084108262 DS:rta:GAUGE:300:U:U DS:=
loss:GAUGE:300:U:U RRA:AVERAGE:0.5:2:100 RRA:MAX:0.5:10:100
update zeus.Ping.rrd -t loss:rta 1084108512:0:0.569
update zeus.Ping.rrd -t loss:rta 1084108632:0:0.619
update zeus.Ping.rrd -t loss:rta 1084108752:0:0.530
update zeus.Ping.rrd -t loss:rta 1084108872:0:0.579
to
rrdtool -
But when I do rrdtool dump all I get out is data like this:
NaN NaN =
NaN NaN =
NaN NaN =
NaN NaN =
which I can't use.
Attached is a sample output log from nagios, and the perl script that runs =
on it.
Data is generated by running tail -f | perl perf.pl | rrdtool -.
--=20
() Yuval Kogman 0xEBD27418 perl hacker &
/\ kung foo master: Crackers, lick the furniture: neeyah!!!!!!!!!!!!!
-- Attached file removed by Ecartis and put at URL below --
-- Type: text/plain
-- Size: 859 bytes
-- URL : http://www.ee.ethz.ch/~slist/p/perf.pl
-- Attached file removed by Ecartis and put at URL below --
-- Type: text/plain
-- Size: 5k (6100 bytes)
-- URL : http://www.ee.ethz.ch/~slist/p/zeus.perfdata
-- Binary/unsupported file stripped by Ecartis --
-- Err : No filename to use for decode, file stripped.
-- Type: application/pgp-signature
--
Unsubscribe mailto:rrd-users-request@list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request@list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi