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
Label presentation in Node
Moderators: Developers, Moderators
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: Label presentation in Node
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 solutionmercolino 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.
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!)
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!)
Re: Label presentation in Node
ThanksHowie wrote: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 solutionmercolino 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.
I want to try and avoid having to implement a whole expression parser in Weathermap if I can...
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
0.93 will have a new variation on the gauge: TARGET type called scale: which multiplies by any factor.
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.
Code: Select all
TARGET scale:0.1:myrrdfile.rrd
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!)
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!)
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.Howie wrote:0.93 will have a new variation on the gauge: TARGET type called scale: which multiplies by any factor.I have just added this in my dev code.Code: Select all
TARGET scale:0.1:myrrdfile.rrd
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.
So Thanks for this really cool plugin, keep the good work!!!!!
mercolino
Who is online
Users browsing this forum: No registered users and 2 guests