Refresh weathermap with up and down devices and links

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
bencac
Posts: 25
Joined: Fri Jan 30, 2009 3:53 am

Refresh weathermap with up and down devices and links

Post by bencac »

I have a problem with the refresh of my map with device up and down status.

When my device is unreachable, the weathermap( cacti) waits 2 poller time to change my device status on my map.

In cacti, I have a look on the device status and it changes only after 2 poller time and I think it's the source of my problem because weathermap looks status variable.


Can we change the timeout of this variable which is based on event count I think. I want to put my device status down on the first next polling.


I search a stuff to view link failure on my weathermap with color. My first idea is to put a color for the bandwith usage beetween 0 and 0.00001 % per example. This method works with problem. Per exemple when I cut a link the device goes down after 2 polling time and my link goes down after 3 polling time. I want that the link goes down on the same polling time as the device goes down.

Have you got another method?


Thanks
bencac
Posts: 25
Joined: Fri Jan 30, 2009 3:53 am

Post by bencac »

I solved my first problem: In the settings-> poller at the bottom we can change the value in poller time to put a device down and to put the device up after it recovers.


But my problem with my lonk state is today true.


I search a method to view a link failure on my map ?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

I don't see why it would take 3 poller cycles to show 0 traffic on a link. Especially if you are using poller_output. Perhaps 2 cycles.

If the link goes down halfway through a period then there is traffic for that period, so the next period will have 0 traffic.

You could look at using either the ifStatus polling stuff that people have on here, or polling ifStatus with the weathermap SNMP target. That doesn't help if the local link stays up on your devices (e.g. ethernet over MPLS).

Those are all basic facts of Cacti however, so the only way I can see to make cacti see things quicker is to poll more often. That has it's own problems.
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!)
bencac
Posts: 25
Joined: Fri Jan 30, 2009 3:53 am

Post by bencac »

I think I will try to use ifstatus which is polled by snmp Interfaces statistics.

In my data query, I have each interfaces for a device with an index number .

My idea is to put a node with a target and scale to change the label color with the ifstatus. It's the same thing as a device status.
But my problem is what is the target for the data query ?

For a device is TARGET cactihost:number of the device
With a dataquery, it's a command like this TARGET "dataquery":10017
and after i apply a scale.

Can we make this ?

thanks
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

bencac wrote:I think I will try to use ifstatus which is polled by snmp Interfaces statistics.

In my data query, I have each interfaces for a device with an index number .

My idea is to put a node with a target and scale to change the label color with the ifstatus. It's the same thing as a device status.
But my problem is what is the target for the data query ?

For a device is TARGET cactihost:number of the device
With a dataquery, it's a command like this TARGET "dataquery":10017
and after i apply a scale.

Can we make this ?

thanks
Huh? No... the target is the rrd file. Cacti is saving that data to an rrd file, right?
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!)
bencac
Posts: 25
Joined: Fri Jan 30, 2009 3:53 am

Post by bencac »

I'm near the goal.

My label color change evenif my link is failure but I want the icon change.
I saw in a thread that we use a scale.

This is my configuration

scale linkupdown_tag 0 1.5 0 255 0 up.png
scale linkupdown_tag 1.5 2.5 255 0 0 down.png

Pictures are created

In my node I have

ICON images/{node:this:inscaletag}
LABEL test
USESCALE linkupdown_tag in
POSITION 90 214


But in my map I haven't any ICON

Do you see a problem in my config file ?
bencac
Posts: 25
Joined: Fri Jan 30, 2009 3:53 am

Post by bencac »

My problem is solved. I have just shutdown my link and after this feature works.

But in weathermap editor we don't see this (it's normal) it's a beta feature.

Another thing, I want to put a node without a label and with just an icon if the link is down.

It's possible ? delete the label and just put 1 picture for the down state and no picture for the up state in the scale?

Or we must put 2 pictures with one transparent?


thanks
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

bencac wrote:My problem is solved. I have just shutdown my link and after this feature works.

But in weathermap editor we don't see this (it's normal) it's a beta feature.

Another thing, I want to put a node without a label and with just an icon if the link is down.

It's possible ? delete the label and just put 1 picture for the down state and no picture for the up state in the scale?

Or we must put 2 pictures with one transparent?


thanks
You would need 2 pictures. One can be a 1x1 pixels white or transparent dot though.
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!)
bencac
Posts: 25
Joined: Fri Jan 30, 2009 3:53 am

Post by bencac »

Thanks for your answer I test this tomorrow
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest