as long as there is a space between the - and the C:\ of the second target, yes it is.flipflap wrote:TARGET C:/Apache/Apache2/htdocs/cacti/rra/xxx_int_status_528.rrd:int_status:-C:/Apache/Apache2/htdocs/cacti/rra/xxx_int_status_528.rrd:-:int_status
is this the correct syntax? thanks
weathermap to show int status instead of traffic utilization
Moderators: Developers, Moderators
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
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!)
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Sorry, I don't think I explained it well...flipflap wrote: <equipment name>_<data_source>_528.rrd:<data_source>:-
if you want to use the same DS name for the 'in' and 'out'sides of the same LINK, you only need:
Code: Select all
TARGET yourrrdfile.rrd:int_status:int_status
The 528 in your example is the cacti ID for that particular data source, so that will change between links too. Check the filename in the Console..Data Sources section of Cacti. In there you will find the rrd filename for each Data Source that Cacti is monitoring.
Better?
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!)
hi, sorry i'm confused, get ready for many questions :D
you mentioned that this will make the "out" value zero, and will only read the "in" value of the rrd
TARGET C:/Apache/Apache2/htdocs/cacti/rra/xxx_int_status_519.rrd:int_status:-
i'm assuming cause after the "-" there is nothing.
with respect to this diagram and NODE1, if i placed the above target only the "IN" leg of the link will have a value. is that correct?
NODE1 -- OUT --> <-- IN -- NODE2
---------------------------------------------------------------------------
TARGET C:/Apache/Apache2/htdocs/cacti/rra/xxx_int_status_519.rrd:int_status:- C:/Apache/Apache2/htdocs/cacti/rra/xxx_int_status_2339.rrd:-:int_status
with this the 519 will be the value of the "IN" and 2339 will be the value of "OUT". is that correct?
what's the significance of the "-" between this
C:/Apache/Apache2/htdocs/cacti/rra/xxx_int_status_519.rrd:[b]int_status:-[/b]
and
C:/Apache/Apache2/htdocs/cacti/rra/xxx_int_status_2339.rrd:[b]-:int_status[/b]
--------------------------------------------------------------------------
and next if i wanted to use another rrd let's say an rrd with this name
xxx_box_speed_519.rrd
will i put this in the target line like this?
TARGET C:/Apache/Apache2/htdocs/cacti/rra/xxx_box_speed_519.rrd:box_speed
thanks!!!
you mentioned that this will make the "out" value zero, and will only read the "in" value of the rrd
TARGET C:/Apache/Apache2/htdocs/cacti/rra/xxx_int_status_519.rrd:int_status:-
i'm assuming cause after the "-" there is nothing.
with respect to this diagram and NODE1, if i placed the above target only the "IN" leg of the link will have a value. is that correct?
NODE1 -- OUT --> <-- IN -- NODE2
---------------------------------------------------------------------------
TARGET C:/Apache/Apache2/htdocs/cacti/rra/xxx_int_status_519.rrd:int_status:- C:/Apache/Apache2/htdocs/cacti/rra/xxx_int_status_2339.rrd:-:int_status
with this the 519 will be the value of the "IN" and 2339 will be the value of "OUT". is that correct?
what's the significance of the "-" between this
C:/Apache/Apache2/htdocs/cacti/rra/xxx_int_status_519.rrd:[b]int_status:-[/b]
and
C:/Apache/Apache2/htdocs/cacti/rra/xxx_int_status_2339.rrd:[b]-:int_status[/b]
--------------------------------------------------------------------------
and next if i wanted to use another rrd let's say an rrd with this name
xxx_box_speed_519.rrd
will i put this in the target line like this?
TARGET C:/Apache/Apache2/htdocs/cacti/rra/xxx_box_speed_519.rrd:box_speed
thanks!!!
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Yes. The '-' means 'none' for the outgoing data source nameflipflap wrote:hi, sorry i'm confused, get ready for many questions
you mentioned that this will make the "out" value zero, and will only read the "in" value of the rrd
TARGET C:/Apache/Apache2/htdocs/cacti/rra/xxx_int_status_519.rrd:int_status:-
i'm assuming cause after the "-" there is nothing.
That's right.flipflap wrote:
with respect to this diagram and NODE1, if i placed the above target only the "IN" leg of the link will have a value. is that correct?
NODE1 -- OUT --> <-- IN -- NODE2
That's right.flipflap wrote:
---------------------------------------------------------------------------
TARGET C:/Apache/Apache2/htdocs/cacti/rra/xxx_int_status_519.rrd:int_status:- C:/Apache/Apache2/htdocs/cacti/rra/xxx_int_status_2339.rrd:-:int_status
with this the 519 will be the value of the "IN" and 2339 will be the value of "OUT". is that correct?
what's the significance of the "-" between this
As above It tells it not to add anything to the relevant datasource from that rrd.
What is really happening is that the in,out values start at 0,0. Weathermap works though all the clauses in the TARGET line (everything between spaces), and for each one, it evaluates it. Each one *can* (but doesn't have to) add to the in,out totals. This is how you do link aggregation normally, but you have another use for it.
No. You must specify TWO DS names at the end of the filename. Assuming the DS inside the rrd file is called box_speed, you could either doflipflap wrote: C:/Apache/Apache2/htdocs/cacti/rra/xxx_int_status_519.rrd:int_status:-
and
C:/Apache/Apache2/htdocs/cacti/rra/xxx_int_status_2339.rrd:-:int_status
--------------------------------------------------------------------------
and next if i wanted to use another rrd let's say an rrd with this name
xxx_box_speed_519.rrd
will i put this in the target line like this?
TARGET C:/Apache/Apache2/htdocs/cacti/rra/xxx_box_speed_519.rrd:box_speed
thanks!!!
Code: Select all
TARGET C:/Apache/Apache2/htdocs/cacti/rra/xxx_box_speed_519.rrd:box_speed:-
Code: Select all
TARGET C:/Apache/Apache2/htdocs/cacti/rra/xxx_box_speed_519.rrd:box_speed:box_speed
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!)
[quote]No. You must specify TWO DS names at the end of the filename. Assuming the DS inside the rrd file is called box_speed, you could either do
Code:
TARGET C:/Apache/Apache2/htdocs/cacti/rra/xxx_box_speed_519.rrd:box_speed:-
or
Code:
TARGET C:/Apache/Apache2/htdocs/cacti/rra/xxx_box_speed_519.rrd:box_speed:box_speed
Depending on what you want the 'out' side of the link to show.[/quote]
what does this line do "TARGET C:/Apache/Apache2/htdocs/cacti/rra/xxx_box_speed_519.rrd:box_speed:box_speed"
--------------------------------------------------------------
i know that this line "TARGET C:/Apache/Apache2/htdocs/cacti/rra/xxx_box_speed_519.rrd:box_speed:-"
takes the in value and zeroes the out value
does this line "TARGET C:/Apache/Apache2/htdocs/cacti/rra/xxx_box_speed_519.rrd:-:box_speed
take the out value and zeroes the in value?
in summary we have
xxx_box_speed_519.rrd:box_speed:- ===> takes the in value and zeroes the out value
xxx_box_speed_519.rrd:-:box_speed ===> takes the out value and zeroes the in value?
xxx_box_speed_519.rrd:box_speed:box_speed ===> ?
thanks for answering my questions
Code:
TARGET C:/Apache/Apache2/htdocs/cacti/rra/xxx_box_speed_519.rrd:box_speed:-
or
Code:
TARGET C:/Apache/Apache2/htdocs/cacti/rra/xxx_box_speed_519.rrd:box_speed:box_speed
Depending on what you want the 'out' side of the link to show.[/quote]
what does this line do "TARGET C:/Apache/Apache2/htdocs/cacti/rra/xxx_box_speed_519.rrd:box_speed:box_speed"
--------------------------------------------------------------
i know that this line "TARGET C:/Apache/Apache2/htdocs/cacti/rra/xxx_box_speed_519.rrd:box_speed:-"
takes the in value and zeroes the out value
does this line "TARGET C:/Apache/Apache2/htdocs/cacti/rra/xxx_box_speed_519.rrd:-:box_speed
take the out value and zeroes the in value?
in summary we have
xxx_box_speed_519.rrd:box_speed:- ===> takes the in value and zeroes the out value
xxx_box_speed_519.rrd:-:box_speed ===> takes the out value and zeroes the in value?
xxx_box_speed_519.rrd:box_speed:box_speed ===> ?
thanks for answering my questions
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Yes.flipflap wrote: xxx_box_speed_519.rrd:box_speed:- ===> takes the in value and zeroes the out value
Yes.flipflap wrote: xxx_box_speed_519.rrd:-:box_speed ===> takes the out value and zeroes the in value?
Takes the DS called 'box_speed' and uses it for BOTH the in and out values.flipflap wrote: xxx_box_speed_519.rrd:box_speed:box_speed ===> ?
No problemsflipflap wrote: thanks for answering my questions
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!)
-
- Cacti User
- Posts: 117
- Joined: Fri Aug 22, 2014 2:11 pm
Re: weathermap to show int status instead of traffic utiliza
Hey Howie,
Is it possible to have it display the red and green link status, but also have the bandwidth utilization on the label?
Thanks!
Is it possible to have it display the red and green link status, but also have the bandwidth utilization on the label?
Thanks!
-
- Cacti User
- Posts: 117
- Joined: Fri Aug 22, 2014 2:11 pm
Re: weathermap to show int status instead of traffic utiliza
Sorry, I meant the actual bandwidth utilization ... not the 1(up) or 2(down) reading...
-
- Cacti User
- Posts: 117
- Joined: Fri Aug 22, 2014 2:11 pm
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: weathermap to show int status instead of traffic utiliza
Can you draw it? Not sure I follow... the link should change colour with the interface status instead of the bandwidth?
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!)
-
- Cacti User
- Posts: 117
- Joined: Fri Aug 22, 2014 2:11 pm
Re: weathermap to show int status instead of traffic utiliza
Yes, so I think flipflop managed to get the links to change colour based on link status rather than utilization... Which is exactly what I want.. But is it possible to have the labels to show the actual bandwidth utilization instead of the "1" for up and "2" for down status? Does that make sense or am I confusing you still?
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: weathermap to show int status instead of traffic utiliza
OK, you can do that, but you need to have a second node with the other target (the bandwidth). It doesn't have to be visible - you can make it off screen, but then you'd use INBWFORMAT and OUTBWFORMAT to refer to the hidden node's data. Something like this:aftershocks wrote:Yes, so I think flipflop managed to get the links to change colour based on link status rather than utilization... Which is exactly what I want.. But is it possible to have the labels to show the actual bandwidth utilization instead of the "1" for up and "2" for down status? Does that make sense or am I confusing you still?
Code: Select all
NODE secret_node
POSITION 10000 2000
TARGET bandwidth.rrd
LINK a-b
NODES a b
TARGET intstatus.rrd
INBWFORMAT {node:secret_node:bandwidth_in:%.2k}
OUTBWFORMAT {node:secret_node:bandwidth_out:%.2k}
[plus whatever you need to get the int status - at least a USESCALE]
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!)
-
- Cacti User
- Posts: 117
- Joined: Fri Aug 22, 2014 2:11 pm
Re: weathermap to show int status instead of traffic utiliza
Hey Howie,
I think I need your help to get this going... I tried your suggestion but I'm running into issues here... I cannot seem to get the interface status colour to reflect on the link.. The current status is that from partner01 to DG, the link status is DOWN - I should see RED... (1 for UP and 2 for DOWN).. The link between partner01 and WAG is UP.... The bandwidth utilization is displayed between partner01 and WAG is correct and likewise for partner01 and DG... For DG, the bandwidth is of course, 0 since the status is DOWN... I also noticed that when I mouse over the link, it's not clickable so that I can zoom into the traffic... Is there a way to get that clickable?
Here is my code below... Please help to butcher what I'm doing wrong... Thank you!
SCALE DEFAULT 0 0 92 255 92
SCALE DEFAULT 1 1 92 255 92
SCALE DEFAULT 2 2 239 41 50
SET key_hidezero_DEFAULT 1
# End of global section
# TEMPLATE-only NODEs:
NODE DEFAULT
MAXVALUE 100
# TEMPLATE-only LINKs:
LINK DEFAULT
BANDWIDTH 100M
# regular NODEs:
NODE dca-net-partner01
LABEL dca-net-partner01
ICON images/Router.png
LABELOFFSET 0 33
POSITION 277 354
NODE DG
LABEL DG
ICON images/Router.png
LABELOFFSET 0 33
POSITION 538 204
NODE WAG
LABEL WAG
ICON images/Router.png
LABELOFFSET 0 33
POSITION 584 363
NODE secret_node_dg
TARGET /var/lib/cacti/rra/dca-net-partner01_traffic_in_2573.rrd
POSITION 10000 2000
NODE secret_node_wag
TARGET /var/lib/cacti/rra/dca-net-partner01_traffic_in_2572.rrd
POSITION 200 200
# regular LINKs:
LINK dca-net-partner01-DG
INBWFORMAT {node:secret_node_dg:bandwidth_in:%.2k}
OUTBWFORMAT {node:secret_node_dg:bandwidth_out:%.2k}
TARGET gauge:/var/lib/cacti/rra/dca-net-partner01_int_status_25101.rrd:int_status:int_status
NODES dca-net-partner01 DG
BANDWIDTH 16
LINK dca-net-partner01-WAG
INBWFORMAT {node:secret_node_wag:bandwidth_in:%.2k}
OUTBWFORMAT {node:secret_node_wag:bandwidth_out:%.2k}
TARGET gauge:/var/lib/cacti/rra/dca-net-partner01_int_status_25100.rrd:int_status:int_status
NODES dca-net-partner01 WAG
BANDWIDTH 16
I think I need your help to get this going... I tried your suggestion but I'm running into issues here... I cannot seem to get the interface status colour to reflect on the link.. The current status is that from partner01 to DG, the link status is DOWN - I should see RED... (1 for UP and 2 for DOWN).. The link between partner01 and WAG is UP.... The bandwidth utilization is displayed between partner01 and WAG is correct and likewise for partner01 and DG... For DG, the bandwidth is of course, 0 since the status is DOWN... I also noticed that when I mouse over the link, it's not clickable so that I can zoom into the traffic... Is there a way to get that clickable?
Here is my code below... Please help to butcher what I'm doing wrong... Thank you!
SCALE DEFAULT 0 0 92 255 92
SCALE DEFAULT 1 1 92 255 92
SCALE DEFAULT 2 2 239 41 50
SET key_hidezero_DEFAULT 1
# End of global section
# TEMPLATE-only NODEs:
NODE DEFAULT
MAXVALUE 100
# TEMPLATE-only LINKs:
LINK DEFAULT
BANDWIDTH 100M
# regular NODEs:
NODE dca-net-partner01
LABEL dca-net-partner01
ICON images/Router.png
LABELOFFSET 0 33
POSITION 277 354
NODE DG
LABEL DG
ICON images/Router.png
LABELOFFSET 0 33
POSITION 538 204
NODE WAG
LABEL WAG
ICON images/Router.png
LABELOFFSET 0 33
POSITION 584 363
NODE secret_node_dg
TARGET /var/lib/cacti/rra/dca-net-partner01_traffic_in_2573.rrd
POSITION 10000 2000
NODE secret_node_wag
TARGET /var/lib/cacti/rra/dca-net-partner01_traffic_in_2572.rrd
POSITION 200 200
# regular LINKs:
LINK dca-net-partner01-DG
INBWFORMAT {node:secret_node_dg:bandwidth_in:%.2k}
OUTBWFORMAT {node:secret_node_dg:bandwidth_out:%.2k}
TARGET gauge:/var/lib/cacti/rra/dca-net-partner01_int_status_25101.rrd:int_status:int_status
NODES dca-net-partner01 DG
BANDWIDTH 16
LINK dca-net-partner01-WAG
INBWFORMAT {node:secret_node_wag:bandwidth_in:%.2k}
OUTBWFORMAT {node:secret_node_wag:bandwidth_out:%.2k}
TARGET gauge:/var/lib/cacti/rra/dca-net-partner01_int_status_25100.rrd:int_status:int_status
NODES dca-net-partner01 WAG
BANDWIDTH 16
- Attachments
-
- weathermap_int_status.jpg (47.75 KiB) Viewed 3348 times
Who is online
Users browsing this forum: No registered users and 4 guests