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
Display cpu usage and change color icon
Moderators: Developers, Moderators
Display cpu usage and change color icon
- Attachments
-
- > questions1
scenario - 123.png (32.41 KiB) Viewed 1774 times
- > questions1
-
- > questions2
BGP state - 1234.png (22.81 KiB) Viewed 1774 times
- > questions2
Re: Display cpu usage and change color icon
Cpu status:
As for the BGP you can probably do it. Here is an example of how to change the color based on hostup/hostdown.
You probably need something like
You can check more on that here: http://network-weathermap.com/manual/0. ... ctidsstats
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
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
Code: Select all
TARGET rrdfile.rrd:in_ds:out_ds
Re: Display cpu usage and change color icon
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
Vlw
Who is online
Users browsing this forum: No registered users and 0 guests