Re: graph question

Steve Shipway <[email protected]> Sun, 22 Nov 2015 23:55:59 +0000
Newsgroups gmane.comp.db.rrdtool.user
Message-ID <5820DC553954E44FA1A36C78323AD148A3FAEAB1@uxcn10-6.UoA.auckland.ac.nz>
> rrdtool info templog.rrd
...
> ds[internal].type = "GAUGE"
> ds[internal].min = -1.0000000000e+01
> ds[internal].max = 5.0000000000e+01
...
> ds[external].type = "GAUGE"
> ds[external].min = -2.0000000000e+01
> ds[external].max = 5.0000000000e+01

OK, so your RRD file is correctly configured to allow from -20 to +50 as valid values for the internal/external DS.

> And when i try to fetch info, i have this:
> sudo bash ./rrdtoolFetch.sh
>                        internal            external
> 1448221500: nan nan
> 1448221800: nan nan
> 1448222100: nan nan
> 1448222400: nan nan
> 1448222700: nan nan
> 1448223000: nan nan
> 1448223300: nan nan
> 1448223600: nan nan
> 1448223900: nan nan
> 1448224200: 2.1682617188e+01 9.7062734375e+00
> 1448224500: 2.1899166667e+01 9.8750000000e+00
> 1448224800: 2.2098750000e+01 9.0352300000e+00
> 1448225100: nan nan

So, your database holds values with internal between 21 and 23, and external between 9 and 10.  All positive.  The unknown values are before and after this.

>From this, I would say your next step should be verifying your data collection and storage step.

When you collect this data and push it into the RRD, do you log any errors?  Can you write a line of text to a log file like "Just retrieved value 19 and 9", and "Wrote values to RRD"?  When you call "rrdtool update", are you logging any error output?

I have not seen the script you are using for collection and storage, so it may well be erroring and you don’t notice it.

Steve


Steve Shipway
T: +64 9 3737 599 ext 86487
E: [email protected]

_______________________________________________
rrd-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
smime.p7s (application/pkcs7-signature, 5.2 KB) - not displayed