CactiEZ v0.7 and Weathermaps 0.97a

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

ukzerosniper
Cacti User
Posts: 118
Joined: Wed Oct 03, 2012 5:51 pm

Re: CactiEZ v0.7 and Weathermaps 0.97a

Post by ukzerosniper »

Hi Howie,

I know this is a massive ask, but could you edit my example to be correct. I am struggling to figure this out and have been working at it for a few hours. Once I get this right, hopefully I can replicate this to all links on the network.

Thanks a ton for all your input thus far.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: CactiEZ v0.7 and Weathermaps 0.97a

Post by Howie »

Code: Select all

KEYPOS DEFAULT 1755 96 Traffic Load
KEYTEXTCOLOR 0 0 0
KEYOUTLINECOLOR 0 0 0
KEYBGCOLOR 255 255 255
BGCOLOR 255 255 255
TITLECOLOR 0 0 0
TIMECOLOR 0 0 0
SCALE DEFAULT 0 0 255 0 0 
SCALE DEFAULT 0 100 0 240 0 

SET key_hidezero_DEFAULT 1
# NOTE: This next line will probably need to change
SET community public

# End of global section

# TEMPLATE-only NODEs:
NODE DEFAULT
   MAXVALUE 100

# TEMPLATE-only LINKs:
LINK DEFAULT
   BANDWIDTH 100M

# regular NODEs:
NODE mcswitch
   LABEL MC Switch
   ICON images/aaaSwitchSmall.png
   POSITION 191 198

NODE trswitch
   LABEL TR Switch
   ICON images/aaaSwitchSmall.png
   POSITION 547 198

# regular LINKs:
LINK mcswitch-trswitch
   SET ip 172.16.172.89
   SET interface 4
   TARGET snmp:{map:community}:{link:this:ip}:.1.3.6.1.2.1.2.2.1.8.{link:this:interface}:-
   NODES mcswitch trswitch
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
ukzerosniper
Cacti User
Posts: 118
Joined: Wed Oct 03, 2012 5:51 pm

Re: CactiEZ v0.7 and Weathermaps 0.97a

Post by ukzerosniper »

Awesome.

I will test that tomorrow morning and let you know how it goes.

Thanks a bunch :)
ukzerosniper
Cacti User
Posts: 118
Joined: Wed Oct 03, 2012 5:51 pm

Re: CactiEZ v0.7 and Weathermaps 0.97a

Post by ukzerosniper »

Hi Howie,

I used the config you editied. It appears to be one step closer, however, its not 100% correct.

It only shows one side of the link up. How do I add the other side of the link?

Attached is a screen shot of the output.
MC - TR Switch.jpg
MC - TR Switch.jpg (40.53 KiB) Viewed 1247 times
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: CactiEZ v0.7 and Weathermaps 0.97a

Post by Howie »

ukzerosniper wrote:Hi Howie,

I used the config you editied. It appears to be one step closer, however, its not 100% correct.

It only shows one side of the link up. How do I add the other side of the link?
That depends - do you want it to show the state of the other interface, or the same interface state on both sides?

(it's not a silly question - if there is an MPLS service between the two, for example, you can have one interface up and one down. Worse, you can have both interfaces up and a hole somewhere in the middle, but this would never show that)

For the first one (this just sets the 'out' data value to the same SNMP OID value):

Code: Select all

LINK mcswitch-trswitch
   SET ip 172.16.172.89
   SET interface 4
   TARGET snmp:{map:community}:{link:this:ip}:.1.3.6.1.2.1.2.2.1.8.{link:this:interface}:.1.3.6.1.2.1.2.2.1.8.{link:this:interface}
   NODES mcswitch trswitch
For the second one, you'll need more variables. This takes the in value from one switch, and adds the out value from the other switch.

Code: Select all

LINK mcswitch-trswitch
   SET ip 172.16.172.89
   SET interface 4
   SET ip2 172.16.172.11
   SET interface2 5
   TARGET snmp:{map:community}:{link:this:ip}:.1.3.6.1.2.1.2.2.1.8.{link:this:interface}:- snmp:{map:community}:{link:this:ip2}:-:.1.3.6.1.2.1.2.2.1.8.{link:this:interface2}
   NODES mcswitch trswitch
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
ukzerosniper
Cacti User
Posts: 118
Joined: Wed Oct 03, 2012 5:51 pm

Re: CactiEZ v0.7 and Weathermaps 0.97a

Post by ukzerosniper »

Hi Howie,

This is my current test map. I have a few issues. As described and shown above, I have one side of the link showing down and one up. The side which shows down is the one we are polling? It however is actually up.

Also, I would like to include a key which shows the status of the link as Disabled, Down, Recovering or UP (as shown in KEYSTYLE in the weathermap documentation). I have been unsuccessful in figuring out how to do this.

Any help you can provide would be gratefully received.

Thanks.

Code: Select all

HTMLSTYLE overlib

KEYPOS DEFAULT 13 12 Link Status
KEYSTYLE TAGS
KEYTEXTCOLOR 0 0 0
KEYOUTLINECOLOR 0 0 0
KEYBGCOLOR 255 255 255
BGCOLOR 255 255 255
TITLECOLOR 0 0 0
TIMECOLOR 0 0 0
SCALE DEFAULT 0    0    255   0   0  DOWN
SCALE DEFAULT 0    100    0 240   0  UP

SET key_hidezero_DEFAULT 1
SET key_hidepercent_DEFAULT 1
SET community public

# End of global section


# TEMPLATE-only NODEs:
NODE DEFAULT
	MAXVALUE 100


# TEMPLATE-only LINKs:
LINK DEFAULT
	BWLABEL none
	BANDWIDTH 100M


# regular NODEs:
NODE mcswitch
	LABEL MC Switch
	ICON images/aaaSwitchSmall.png
	POSITION 191 198

NODE trswitch
	LABEL TR Switch
	ICON images/aaaSwitchSmall.png
	POSITION 547 198


# regular LINKs:
LINK mcswitch-trswitch
	TARGET snmp:{map:community}:{link:this:ip}:.1.3.6.1.2.1.2.2.1.8.{link:this:interface}:-
	NODES mcswitch trswitch
	SET ip 172.16.172.89
	SET interface 4
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: CactiEZ v0.7 and Weathermaps 0.97a

Post by Howie »

Your scale is incorrect, 0 does no mean down.

http://www.alvestrand.no/objectid/1.3.6 ... 2.1.8.html

"up(1),
down(2),
testing(3)"

0 would mean no data. So you want something like

Code: Select all

# red for down, green for up, grey for anything else - testing, no data, something wierd
SCALE DEFAULT 1 1    0 255 0 UP
SCALE DEFAULT 2 2    255 0 0 DOWN
SCALE DEFAULT 0 100 128 128 128 UNKNOWN


Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests