How to get a Device's Latency on Weathermap

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
davebyrne
Posts: 12
Joined: Tue Jun 13, 2017 3:23 pm

How to get a Device's Latency on Weathermap

Post by davebyrne »

Hey all,

So of course I know all about getting data from graph'd rrd files etc, for device health and traffic flow etc. But Cacti has the devices latency listed in the Device section. This apparently isn't graph'd, and being honest nor do I want it to be. I have SmokePing for that.

BUT... It would be really handy if there was an easy way to pull the Cacti native device latency into a Weathermap as a data point. (Without getting a custom graph template for graphing ping response latency and graphing it).

Any ideas??
Thanks.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: How to get a Device's Latency on Weathermap

Post by Howie »

The cactihost: datasource plugin is your new friend!
http://network-weathermap.com/manual/0. ... #cactihost

You should be able to use

Code: Select all

NODE thing1
   TARGET cactihost:33
  LABEL {node:this:cacti_curtime}ms
  # position etc skipped
(where 33 is the device ID)
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!)
davebyrne
Posts: 12
Joined: Tue Jun 13, 2017 3:23 pm

Re: How to get a Device's Latency on Weathermap

Post by davebyrne »

Howie wrote:The cactihost: datasource plugin is your new friend!
http://network-weathermap.com/manual/0. ... #cactihost

You should be able to use

Code: Select all

NODE thing1
   TARGET cactihost:33
  LABEL {node:this:cacti_curtime}ms
  # position etc skipped
(where 33 is the device ID)
Ooooh, thankyou :)

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

Re: How to get a Device's Latency on Weathermap

Post by Howie »

(You can also read data from your Smokeping rrd files if you wanted, too, if they are visible from the weathermap host)
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!)
CyberTod
Posts: 5
Joined: Mon Jun 28, 2021 12:48 am

Re: How to get a Device's Latency on Weathermap

Post by CyberTod »

I am sorry that I write in such an old thread.
The method is very convenient and it works great.
For some reason I cannot make scale to work correctly.

I have this scale :
SCALE PING 0 0 192 192 192
SCALE PING 0 10 0 255 0
SCALE PING 10 20 255 255 0
SCALE PING 20 100 255 0 0

And I use it in node as absolute.

But it always stays green no matter what the value is.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests