I have this little script that outputs somthing like:
[root@kalki tmp]# tlstats.pl 10.10.12.80 10.10.12.81
tlmem1:24967 tlmem2:22854 tlcpu1:89 tlcpu2:89
I can see Cacti inserting these numbers into the RRA:
11/03/2005 08:16:56 AM - CMDPHP: Poller[0] Host[0] CMD: /usr/local/bin/tlstats.pl 10.10.12.80 10.10.12.81, output: tlmem1:249
67 tlmem2:22854 tlcpu1:89 tlcpu2:89
11/03/2005 08:16:57 AM - POLLER: Poller[0] Parsed MULTI output field 'tlmem1:24967' [map tlmem1->tlmem1]
11/03/2005 08:16:57 AM - POLLER: Poller[0] Parsed MULTI output field 'tlmem2:22854' [map tlmem2->tlmem2]
11/03/2005 08:16:57 AM - POLLER: Poller[0] Parsed MULTI output field 'tlcpu1:89' [map tlcpu1->tlcpu1]
11/03/2005 08:16:57 AM - POLLER: Poller[0] Parsed MULTI output field 'tlcpu2:89' [map tlcpu2->tlcpu2]
11/03/2005 08:16:57 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/html/cacti/rra/tlcpu1_307.rrd --templa
te tlmem1:tlmem2:tlcpu1:tlcpu2 113102370122854:89:89
But when I check the RRA, I can only see the CPU numbers - not the memory numbers:
[root@kalki tmp]# rrdtool fetch /var/www/html/cacti/rra/tlcpu1_307.rrd AVERAGE | tail -2
1131023700: 8.9000000000e+01 8.9000000000e+01 nan nan
1131024000: nan nan nan nan
[root@kalki tmp]# date '+%s'
1131023985
So while I have a perfectly working CPU graph, I do not have one for memory usage.
Can anyone please tell me why the memory usage is entered as "nan" in the RRA? I can supply additional details if needed.
TIA,
Binand
Cacti updates only two out of four values
Moderators: Developers, Moderators
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Double check you definitions for the rrdfile, max and min. If the rrdtool file existed and you updated the definition in cacti after it was created, cacti will not update the rrdtool file. You have to update the rrdtool file or delete and let cacti recreate it.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Who is online
Users browsing this forum: No registered users and 3 guests