[Help] Label with temperature OID from graph

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
felippedeabreu
Posts: 4
Joined: Wed Aug 02, 2017 7:11 am

[Help] Label with temperature OID from graph

Post by felippedeabreu »

Hello, I'm new here and I'm having trouble putting a value inside a tag in weathermap and I'm not getting it.

I created a chart collecting the temperature of a change through the MIB and I would like the collected value to appear inside this label but I have already tried everything and I can not at all.

What I want to do is put the collected temperature value inside a label!
Any light?
Attachments
temp2.JPG
temp2.JPG (77.32 KiB) Viewed 1415 times
temp1.JPG
temp1.JPG (23.96 KiB) Viewed 1415 times
User avatar
Pucho
Cacti User
Posts: 185
Joined: Wed Jul 20, 2016 8:00 pm

Re: [Help] Label with temperature OID from graph

Post by Pucho »

You could start by showing your weathermap config what result are you getting.
Cacti - 1.2.15
Poller Type - Spine
Weathermap 0.98a
Server Info - Linux 3.10.0 - Centos 7
Web Server - Apache/2.4.6 PHP 5.4.16
MySQL - 5.5 ;RRDTool - 1.4.8 ;SNMP - 5.7.2
Religion - Anti forum pets
felippedeabreu
Posts: 4
Joined: Wed Aug 02, 2017 7:11 am

Re: [Help] Label with temperature OID from graph

Post by felippedeabreu »

Pucho wrote:You could start by showing your weathermap config what result are you getting.


OK sorry!

Well, I created a graph via the "data templates", using the OID I need to reach the device. I created a graphic through this template and that's it, the graphics is being done.

I'm currently using weathermap 0.98, but even in 0.97 it was not working.


What I needed is that in the weathermap the current temperature value of the device appears inside the label.
I've tried several ways that I found in the forums, and the ones that I came closest was this:

NODE G
LABEL G
TARGET snmp:un03st3ro:10.10.92.32:.1.3.6.1.4.1.1916.1.1.1.8.0:-
POSITION 587 109
// this turns blue, which in my table would be 25 to 40% (which is correct, but the number does not appear)


The result I want to appear is "28" inside the label. . . Not just the color, according to the snmpwalk.


root@gerenciamento:~# snmpwalk -O n -c un03st3ro -v1 10.10.92.32 .1.3.6.1.4.1.1916.1.1.1.8.0 | Cut -d: -f 2
 28

or



root@gerenciamento:~# snmpwalk -O n -c un03st3ro -v1 10.10.92.32 .1.3.6.1.4.1.1916.1.1.1.8.0
.1.3.6.1.4.1.1916.1.1.1.8.0 = INTEGER: 28

I have attached an image that is the configuration of data templates
Attachments
a.JPG
a.JPG (16.64 KiB) Viewed 1354 times
a.JPG
a.JPG (157.94 KiB) Viewed 1355 times
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: [Help] Label with temperature OID from graph

Post by Howie »

You haven't asked weathermap to add any value to your label.

Code: Select all

NODE G
    LABEL G {node:this:bandwidth_in}
    TARGET snmp:un03st3ro:10.10.92.32:.1.3.6.1.4.1.1916.1.1.1.8.0:-
    POSITION 587 109
That will add the value collected for the "input bandwidth" of your node to the end of the label text.
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!)
felippedeabreu
Posts: 4
Joined: Wed Aug 02, 2017 7:11 am

Re: [Help] Label with temperature OID from graph

Post by felippedeabreu »

Howie wrote:You haven't asked weathermap to add any value to your label.

Code: Select all

NODE G
    LABEL G {node:this:bandwidth_in}
    TARGET snmp:un03st3ro:10.10.92.32:.1.3.6.1.4.1.1916.1.1.1.8.0:-
    POSITION 587 109
That will add the value collected for the "input bandwidth" of your node to the end of the label text.
:o :o
ops, "I tried everything" LESS THAN :roll:

Thank you very much!

A simple thing that made me disperceived
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests