librenms-plugins / Weathermap

MIT License
64 stars 51 forks source link

How to Diaplay Ping Latency in Weatheramp #47

Closed Majesticops closed 6 years ago

Majesticops commented 6 years ago

Hi

I would like to display ping latency in my maps as shown below. Can someone assist I pointing out I could do this.

Thanks

weathermap2

Majesticops commented 6 years ago

The above was done from cacti I would like to know how do it with Librenms

Majesticops commented 6 years ago

Any one have an idea to do this?

laf commented 6 years ago

Please be patient, no one is here to provide 24/7 support.

This is a weathermap question. You need to find out how you get that data in weathermap first. Once you know that, you can ask again about how you get that data out of Lnms.

Majesticops commented 6 years ago

Okay cool thank you. I have a starting point.

Majesticops commented 6 years ago

Hi

Below is the config im using in a node, Im using the weathermap plugin for Librenms. I have been able to get the OVERLIBGRAPH working I just need to know what TARGET syntax i must use to retrieve the current CPU utilization out of the librenms RRD files. Current the TAGET syntax below is NOT working.

NODE 39 LABEL {node:this:outpercent:%k}% OVERLIBGRAPH http://10.1.35.60/graph.php?id=114&type=processor_usage&height=100&width=512 TARGET gauge:./10.1.254.250/processor-cpm-1.rrd:usage:AVERAGE POSITION 164 228

laf commented 6 years ago

Maybe: TARGET:./10.1.254.250/processor-cpm-1.rrd:usage:usage

Majesticops commented 6 years ago

Great stuff let me give that a try will let you know.

Majesticops commented 6 years ago

Looks like it working the problem now is it says my CPU is 342 %

image

Majesticops commented 6 years ago

Hi Laf

I got it working by doing the following:

NODE node00722 LABEL {node:this:outpercent:%k}% OVERLIBGRAPH http://10.1.35.60/graph.php?id=114&type=processor_usage&height=100&width=512 TARGET gauge:./10.1.254.250/processor-cpm-1.rrd:usage:usage POSITION 164 228

image

This can be closed.

I will see if I can get the ping latency on the wearthermap

Majesticops commented 6 years ago

I got icmp latency working:

NODE node02686 LABEL {node:this:bandwidth_in:%d} ms OVERLIBGRAPH http://10.1.35.60/graph.php?type=device_ping_perf&device=15&height=100&width=512 TARGET gauge:./10.1.255.251/ping-perf.rrd:ping:- POSITION 92 690