Display cpu usage and change color icon

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
Igo
Posts: 4
Joined: Thu Jan 28, 2016 1:02 pm
Location: Brazil

Display cpu usage and change color icon

Post by Igo »

hi, I have set the Cactiez server (version 0.8.8b) and wathermap (Version 0.97a). Can generate all graphics, create maps, captions, link's. More'm one doubts / questions:

> I have some equipment and would make a label showing CPU usage, can generate the graphs usually a percentage of use. More'm not managing to place to stay in aparesento Weathermap.

>>Another doubt was wondering how do / if possible, to change the color of a "node" according to the legend up / donw. I am monitoring BGP sessions and wanted to change the icon color according to the status of Graphic and configured in the legend.

Follow two annexes of ceanrio and state of the BGP connection. I appreciate the help
Attachments
&gt; questions1<br />scenario
> questions1
scenario
123.png (32.41 KiB) Viewed 1772 times
&gt; questions2<br />BGP state
> questions2
BGP state
1234.png (22.81 KiB) Viewed 1772 times
User avatar
micke2k
Cacti User
Posts: 261
Joined: Wed Feb 03, 2016 3:38 pm

Re: Display cpu usage and change color icon

Post by micke2k »

Cpu status:

Code: Select all

NODE LINUX-CLIENT
	LABEL CLIENT-LINUX
	ICON images/uptime_laptop.png
	POSITION 405 859

NODE linuxclientload
	LABEL CPU {node:this:bandwidth_in:}
	TARGET gauge:/var/www/html/cacti/rra/pa-vm_cpu_429.rrd:cpu:-
	POSITION LINUX-CLIENT 0 17
	MAXVALUE 100
As for the BGP you can probably do it. Here is an example of how to change the color based on hostup/hostdown.

Code: Select all

SCALE cactiupdown 0 0.5 192 192 192
SCALE cactiupdown 0.5 1.5 255 0 0
SCALE cactiupdown 1.5 2.5 0 0 255
SCALE cactiupdown 2.5 3.5 0 255 0

NODE SRX-INTERNET2
	LABEL RTR-INET2
	TARGET cactihost:11
	USESCALE cactiupdown
	ICON images/uptime_router.png
	POSITION 534 165

You probably need something like

Code: Select all

TARGET rrdfile.rrd:in_ds:out_ds
You can check more on that here: http://network-weathermap.com/manual/0. ... ctidsstats
Igo
Posts: 4
Joined: Thu Jan 28, 2016 1:02 pm
Location: Brazil

Re: Display cpu usage and change color icon

Post by Igo »

Thanks mice2k, was putting the wrong code here appears 0.0% and not work now this. And the BGP had done creating the legend more also not funciova, following cpu hint and now work. Now try to implement some more.
Vlw
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests