[rrd-users] suppressing output when creating graphs

Paul Halliday paul.halliday at gmail.com
Thu Jul 8 13:02:27 CEST 2010


On Wed, Jul 7, 2010 at 5:29 PM, James Nunnerley <james at webit.co.uk> wrote:
> Thing is - that will also suppress any errors... which obviously I'd want to
> see.  The command I'm using is along the lines of:
> /usr/bin/rrdtool graph /var/www/graphs/192.168.43.254.temp-day.png --lazy -s
> -1day -t "Temperature" -g -h 125 -a PNG -v "Degs C"
> DEF:temp1=/etc/rrdtool/192.168.43.254.temp.rrd:temp1:AVERAGE
> LINE2:temp1#ffcc33:"Degs C" \
> DEF:temp2=/etc/rrdtool/192.168.43.254.temp.rrd:temp2:AVERAGE
> LINE2:temp2#ff0000:"Degs C" \
> DEF:temp3=/etc/rrdtool/192.168.43.254.temp.rrd:temp3:AVERAGE
> LINE2:temp3#0000ff:"Degs C" \
> DEF:temp4=/etc/rrdtool/192.168.43.254.temp.rrd:temp4:AVERAGE
> LINE2:temp4#00ff00:"Degs C" \
> DEF:temp5=/etc/rrdtool/192.168.43.254.temp.rrd:temp5:AVERAGE
> LINE2:temp5#990099:"Degs C"
>
> The output is then something like:
> 497x241
>
> Is there a way to stop that as part of the command, so you can then see any
> errors?
>
> Thanks
> James
>
> -----Original Message-----
> From: Paul Halliday [mailto:paul.halliday at gmail.com]
> Sent: 07 July 2010 17:57
> To: James Nunnerley
> Cc: rrd-users at lists.oetiker.ch
> Subject: Re: [rrd-users] suppressing output when creating graphs
>
> On Wed, Jul 7, 2010 at 1:43 PM, James Nunnerley <james at webit.co.uk> wrote:
>> I’ve got a series of shell scripts creating the graphs via a cron, but
> every
>> time the cron runs (15 mins) it creates an output with the image size of
> the
>> graph.  Is there a way to suppress the command? I’ve gone through the
>> options but can’t find one?
>>
>
> */15 * * * * command > /dev/null 2>&1
>


Just use > /dev/null  if you want to see the errors.

Take a look here:

http://tldp.org/LDP/abs/html/io-redirection.html



More information about the rrd-users mailing list