How do I display active VPN Sessions on a map?

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
ComtecOps
Posts: 5
Joined: Thu Jun 28, 2012 6:10 am

How do I display active VPN Sessions on a map?

Post by ComtecOps »

Hi All,

I am hoping someone maybe able to help me. I have a weathermap setup displaying my core routers/switches and internet ASA firewall and all is good. However I would like to display the current number of Avtive VPN Session on the firewall. I have a graph showing the current IPSec tunnels, but I don't know how to just have a numeral displayed on the weathermap: i.e:

"Active IPSec VPN Sessions = x" where x is the number of active tunnels.

My graph rrd is:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=1342432151 \
--end=1342518551 \
--title='lonfw01-active - Active VPN Tunnels' \
--base=1000 \
--height=120 \
--width=600 \
--alt-autoscale-max \
--lower-limit='0' \
COMMENT:"From 2012/07/16 10\:49\:11 To 2012/07/17 10\:49\:11\c" \
COMMENT:" \n" \
--vertical-label='Tunnels' \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a="/usr/share/cacti/rra/uk-ln-fwl-pri_ike_tunnels_230.rrd":'ike_tunnels':MAX \
DEF:b="/usr/share/cacti/rra/uk-ln-fwl-pri_ipsec_tunnels_231.rrd":'ipsec_tunnels':MAX \
AREA:a#0000FFFF:"IKE" \
GPRINT:a:LAST:" Current\:%8.0lf" \
GPRINT:a:AVERAGE:"Average\:%8.0lf" \
GPRINT:a:MAX:"Maximum\:%8.0lf\n" \
LINE2:b#00FF00FF:"IPSec" \
GPRINT:b:LAST:"Current\:%8.0lf" \
GPRINT:b:AVERAGE:"Average\:%8.0lf" \
GPRINT:b:MAX:"Maximum\:%8.0lf"

The node I have created for displaying the info is as follows:

NODE FW_VPN
LABEL Active IPSec VPN {node:FW_VPN:ipsec_tunnels:%d} sessions
INFOURL /usr/share/cacti/rra/uk-ln-fwl-pri_ipsec_tunnels_231.rrd":'ipsec_tunnels'
OVERLIBGRAPH /cacti/graph_image.php?rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300&local_graph_id=171
POSITION 482 363

Any help would be appreciated.

Thanks in advance
ComtecOps
Posts: 5
Joined: Thu Jun 28, 2012 6:10 am

[SOLVED] Re: How do I display active VPN Sessions on a map?

Post by ComtecOps »

Have now fixed the problem

Code now used for the node:
NODE FW_VPN
LABEL Active IPSec VPN {node:FW_VPN:bandwidth_in:%d} sessions
INFOURL /usr/share/cacti/rra/uk-ln-fwl-pri_ipsec_tunnels_231.rrd":'ipsec_tunnels'
OVERLIBGRAPH /cacti/graph_image.php?rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300&local_graph_id=171
TARGET rrd:gauge:/usr/share/cacti/rra/uk-ln-fwl-pri_ipsec_tunnels_231.rrd:ipsec_tunnels:-
POSITION 1054 516


I was using the wrong information in the TARGET section. :oops: Needed to specify rrd, tell it to use gauge to avoid the x8 multiplier, and then add a :- at the end of the ds specification part. Not sure why I had to add the -, but I can only presume that it was expecting a second value to be input and not finding one caused it to have problems.

Once this was done, I had to use bandwidth_in in the LABEL section as it is (according to the Manual) 'The raw 'bandwidth' figure for the input side of the item. This isn't always an actual bandwidth figure, especially for NODEs.'

Now I have the information for the VPN connections in the node :D
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests