Displaying CPU ETC on node

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
RMonitor
Posts: 3
Joined: Wed Sep 23, 2015 4:47 am

Displaying CPU ETC on node

Post by RMonitor »

Hello,

Sorry for this being my first post, I've lost my account from last year.

I've been reading and trying different configs for 24 hours but haven't been successful. Here's an example of two nodes.

Code: Select all

NODE asa5min_cpu
	LABEL CPU USAGE{node:this:bandwidth_out:%d}
	ICON images/PAD.png
	TARGET gauge:/var/www/cacti/rra/core_2_asa_memused_28.rrd
	POSITION 101 377

NODE node03652
	LABEL Node {node:this:bandwidth_out:%d}
	MAXVALUE 100
	POSITION 280 377
    TARGET /var/www/cacti/rra/core_2_5min_cpu_19.rrd 
    USESCALE none in
I've tried lots of different versions after node:this.

I've also read that in 2010 ds had to be added as a gauge but I'm not sure if that's still applicable.

Code: Select all


ds[5min_cpu].type = "GAUGE"
ds[5min_cpu].minimal_heartbeat = 600
ds[5min_cpu].min = 0.0000000000e+00
ds[5min_cpu].max = 1.0000000000e+02
ds[5min_cpu].last_ds = "8"
ds[5min_cpu].value = 8.0000000000e+00
ds[5min_cpu].unknown_sec = 0

I want to make lots of weathermaps just can't work out the formula for this. Sorry if I'm missing something rather obvious.

Thanks in advance.
User avatar
XTech
Cacti User
Posts: 59
Joined: Sat May 26, 2012 9:25 pm

Re: Displaying CPU ETC on node

Post by XTech »

The example below works for me:

Code: Select all

NODE cpu_temp-1
        LABEL {node:this:bandwidth_in:%d}
        LABELFONT 3
        LABELOUTLINECOLOR 0 0 0
        TARGET gauge:/usr/share/cacti/rra/183/5406.rrd:cpu0_temp:-
Note the name of parameter in rrd file
RMonitor
Posts: 3
Joined: Wed Sep 23, 2015 4:47 am

Re: Displaying CPU ETC on node

Post by RMonitor »

Thank you for your response.

Still getting DS not found even though there's valid data.

RRDTool shows

Code: Select all

last_update = 1443086102
ds[5min_cpu].type = "GAUGE"
ds[5min_cpu].minimal_heartbeat = 600
ds[5min_cpu].min = 0.0000000000e+00
ds[5min_cpu].max = 1.0000000000e+02
ds[5min_cpu].last_ds = "9"
ds[5min_cpu].value = 1.8000000000e+01
ds[5min_cpu].unknown_sec = 0
Have no idea how to work out the values.

Does anyone have any other ideas which could help please?
RMonitor
Posts: 3
Joined: Wed Sep 23, 2015 4:47 am

Re: Displaying CPU ETC on node

Post by RMonitor »

For anyone still curios, the line showed:

Code: Select all

RRD ReadData: At least one of your DS names (last_ds and -) were not found, even though there was a valid data line. Maybe they are wrong? Valid DS names in this file are: 5min_cpu,[WMRRD06]
Changed it to:

Code: Select all

TARGET gauge:/var/www/cacti/rra/core_2_5min_cpu_19.rrd:5min_cpu:-
tos3rhn
Posts: 3
Joined: Wed Dec 05, 2007 9:07 am

Re: Displaying CPU ETC on node

Post by tos3rhn »

Your output from rrdtool shows that the datasource is 5min_cpu so you need to use this in your target:

TARGET gauge:/var/www/cacti/rra/core_2_asa_memused_28.rrd:5min_cpu:-
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests