[rrd-users] Re: RRD Tutorial - Question -Real World Example
Alex Kourafas
Alex.Kourafas at ciwave.com
Fri Mar 1 20:08:27 MET 2002
Can anyone tell me why the command below runs but returns nothing to the
screen and I dont have a
command prompt?
Is this correct? If so how do I run it in the backround?
Thanks
#!/bin/sh
while (true)
do
input=` snmpwalk server public
interfaces.ifTable.ifEntry.ifInOctets.1 | awk -- ' BEGIN { FS = " " }
{print
$2 } '`
output=` snmpwalk server public
interfaces.ifTable.ifEntry.ifOutOctets.1 | awk -- ' BEGIN { FS = " " }
print $2 } '`
DATE=`date +%s`
/usr/local/rrdtool-1.0.33/bin/./rrdtool update myrouter.rrd
$DATE:$input:outp
ut
echo $DATE - $input - $output
sleep 5
done
----- Original Message -----
From: "Alex Kourafas" <Alex.Kourafas at ciwave.com>
To: "Administrador" <admin at alsernet.es>
Sent: Friday, March 01, 2002 1:59 PM
Subject: Re: [rrd-users] Re: RRD Tutorial - Question -Real World Example
> Hola to you :-)
>
> Can you tell me why the command runs but returns nothing and I dont have a
> command prompt?
> Is this correct? Run it in the backround? -B
>
>
> #!/bin/sh
> while (true)
> do
> input=` snmpwalk server public
> interfaces.ifTable.ifEntry.ifInOctets.1 | awk -- ' BEGIN { FS = " " }
> {print
> $2 } '`
> output=` snmpwalk server public
> interfaces.ifTable.ifEntry.ifOutOctets.1 | awk -- ' BEGIN { FS = " " }
> print $2 } '`
> DATE=`date +%s`
>
> /usr/local/rrdtool-1.0.33/bin/./rrdtool update myrouter.rrd
> $DATE:$input:outp
> ut
> echo $DATE - $input - $output
> sleep 5
> done
>
> ----- Original Message -----
> From: "Administrador" <admin at alsernet.es>
> To: "Alex Kourafas" <Alex.Kourafas at ciwave.com>
> Sent: Friday, March 01, 2002 1:31 PM
> Subject: Re: [rrd-users] Re: RRD Tutorial - Question -Real World Example
>
>
> > Hola Alex,
> >
> > Friday, March 01, 2002, 7:29:46 PM, escribió:
> >
> >
> > AK> Newbie here:
> >
> > AK> I saw the script below and I am trying to make it work.
> >
> > AK> I would like to know what the DS: would look like for the Date +%s
> command
> > AK> when creating the database.
> > AK> When I run the command on my redhat box it says 1015006357
> >
> > It's ok, this number is seconds.
> >
> > Try the script.
> >
> > --
> > Administrador Técnico
> > Alsernet 2000
> > http://www.alsernet.es
> >
>
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-users
mailing list