Perhaps you have defined your data as gauge, but it should be a counter. Perhaps you're counters are wrapping, then you will need to use snmp v2.
This could have a lot of causes. The only way to find out is by debugging Run your script from the console and have it output the values you are fetching. Do a few updates and use rrdtool dump to see if your rrd is set up like you expect and whether the values are what you expect them to be, based on your updates. Serge. -----Original Message----- From: Mohamed Eldesoky [mailto:[EMAIL PROTECTED] Sent: Sunday, March 09, 2003 9:41 AM To: Serge Maandag Cc: RRD List Subject: Re: [rrd-users] Re: Numbers in RRD Sorry Serge for the late reply, I was away. Well, It is working, I mean it is graphing, but the numbers are and the graph are so strange. I mean, look at the attached photos. RRDTool and Cacti give strange numbers and the graph looks really different than that generated by MRTG, and the graph doesn't look good at all !! I run the script that I have sent every 5 minutes through cron. Regards Mohamed Eldesoky On Friday 07 March 2003 12:03 am, Serge Maandag wrote: > Well you are if you give such little information. > What do you mean with "it is working, but giving strange results" ? > > Serge. > > -----Original Message----- > From: Mohamed Eldesoky [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 05, 2003 1:44 PM > To: Serge Maandag > Subject: Re: [rrd-users] Re: Numbers in RRD > > > Serge, thanks alot for the help > It is working, but giving strange results !!! > I am attaching my script, if you have time to look at it. > Sorry if I am asking alot. > > Regards > Mohamed Eldesoky > > On Monday 03 March 2003 6:48 pm, Serge Maandag wrote: > > Well first of all, rrdtool fetch --start now returns something like > > this: > > > > ds0 ds1 > > > > 1046709000: 0.0000000000e+00 6.9906300000e+03 > > 1046709300: nan nan > > > > The first two lines are descriptive, the third line holds the value and > > the last value always is NaN by design. > > > > therefore, try: > > > > int0_pre=`rrdtool fetch $ourfile AVERAGE --start now | head -3 | tail -1 > > | awk '{print $2}'` > > > > secondly, > > > > there's a problem with quotes, double qoutes and stuff. variables do not > > get expanded if they're enclosed in single quotes. Try: > > > > int0=`perl -e "print scalar \"$int0_pre\" + 0"` > > > > Thirdly, you probably should write som code to handle nan's. > > > > Serge. > > > > -----Original Message----- > > From: Mohamed Eldesoky [mailto:[EMAIL PROTECTED] > > Sent: Monday, March 03, 2003 2:28 PM > > To: Serge Maandag; RRD List > > Subject: Re: [rrd-users] Re: Numbers in RRD > > > > > > I tried it, and it works. > > But I can't use it inside my bash script > > Here is what I tried, with no success > > > > _______________________ > > ourfile="$int".rrd > > if [[ -e $ourfile ]]; then > > int0_pre=`rrdtool fetch $ourfile AVERAGE --start now|tail -1|awk '{print > > $2}'` > > int0=`perl -e 'print scalar $int0_pre + 0'` > > int1_pre=`rrdtool fetch $ourfile AVERAGE --start now|tail -1|awk '{print > > $3}'` > > int1=`perl -e 'print scalar $int1_pre + 0'` > > ________________________ > > > > > > -- > > Unsubscribe mailto:[EMAIL PROTECTED] > > Help mailto:[EMAIL PROTECTED] > > Archive http://www.ee.ethz.ch/~slist/rrd-users > > WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi -- Person who say it cannot be done should not interrupt person doing it. --Chinese Proverb -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi