Label presentation in Node

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
mercolino
Posts: 25
Joined: Wed Aug 29, 2007 6:14 pm

Label presentation in Node

Post by mercolino »

Hi to all, It is possible to do a mathematical operation in the label of a node, for example, I am using this label in a node:

LABEL PDU1 Load: {node:this:bandwidth_in:%.d}A

But the data stored in the rrd file is multiply by ten, so I need to divide by ten the otput of the variable of the label.

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

Re: Label presentation in Node

Post by Howie »

mercolino wrote:Hi to all, It is possible to do a mathematical operation in the label of a node, for example, I am using this label in a node:

LABEL PDU1 Load: {node:this:bandwidth_in:%.d}A

But the data stored in the rrd file is multiply by ten, so I need to divide by ten the otput of the variable of the label.
No, it's not possible. However, I was in a similar situation today (Brocade FiberChannel switches report throughput in 32-bit words/sec, and I want bits/sec), so I might think some more about a nice solution :-)

I want to try and avoid having to implement a whole expression parser in Weathermap if I can...
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!)
mercolino
Posts: 25
Joined: Wed Aug 29, 2007 6:14 pm

Re: Label presentation in Node

Post by mercolino »

Howie wrote:
mercolino wrote:Hi to all, It is possible to do a mathematical operation in the label of a node, for example, I am using this label in a node:

LABEL PDU1 Load: {node:this:bandwidth_in:%.d}A

But the data stored in the rrd file is multiply by ten, so I need to divide by ten the otput of the variable of the label.
No, it's not possible. However, I was in a similar situation today (Brocade FiberChannel switches report throughput in 32-bit words/sec, and I want bits/sec), so I might think some more about a nice solution :-)

I want to try and avoid having to implement a whole expression parser in Weathermap if I can...
Thanks
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

0.93 will have a new variation on the gauge: TARGET type called scale: which multiplies by any factor.

Code: Select all

TARGET scale:0.1:myrrdfile.rrd
I have just added this in my dev code.

So I now have a useful weathermap showing our backup network and SAN :-) If only I could get SCSI stats from somewhere, it would be complete.
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!)
mercolino
Posts: 25
Joined: Wed Aug 29, 2007 6:14 pm

Post by mercolino »

Howie wrote:0.93 will have a new variation on the gauge: TARGET type called scale: which multiplies by any factor.

Code: Select all

TARGET scale:0.1:myrrdfile.rrd
I have just added this in my dev code.

So I now have a useful weathermap showing our backup network and SAN :-) If only I could get SCSI stats from somewhere, it would be complete.
Thanks a lot Howie, I am monitoring with this plugin everything in our network, WAN Infrastructure, LAN Infrastructure, We have 2 asterisk PBX and I create scripts to monitor Calls in the IVR, Calls to our CallCentre, SIP, ZAp, IAX2, ZAP channels, Agents Logged, paused and Idle, etc... I am monitoring our UPS's and PDU's in our Datacenter. It's awesome.

So Thanks for this really cool plugin, keep the good work!!!!!

mercolino
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests