Template for Cisco ASA Cacti 1.x

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
basamo55
Posts: 1
Joined: Tue Jan 22, 2019 11:22 am

Template for Cisco ASA Cacti 1.x

Post by basamo55 »

Hi, I am a new Cacti user and recently installed version 1.2 on a Windows 2016 VM server. Everything worked fine with the standard templates for routers and switches, but I also need to monitor VPN connections and interfaces on a Cisco ASA 5525x firewall. I downloaded the asa 8.8 template from the website (cacti_host_template_cisco_asa_-_security_appliance.xml0. I saw the warning that importing older templates may change existing templates, so I did a preview (see below) before importing. Not surprisingly after the import there were changes to some of the existing graphs. I reverted to a previous VM snapshot and reimported the template after removing the graph templates that noted changes. I did not change some things, notably sequence numbers for the snmp_query_table. Basically still worked but some strange things were happening (extra graphs appearing, sometimes the scaling tools disappear). Also, the 7th graph gave an "Unknown RDTtool error". Some of this may just be due to my lack of familiarity with Cacti. I would like to know if the changes that I have made will have any adverse affects, and if anyone has any suggestions for this template (or could post a template fully compatible with 1.x) Thanks.

Cacti would make the following changes if the Template was imported:

CDEF

[preview] Turn Bytes into Bits [unchanged]
GPRINT Preset

[preview] Normal [unchanged]
[preview] Exact Numbers [unchanged]
Data Template

[preview] Cisco ASA - Current Connections [new]
[preview] Cisco ASA - IPsec Tunnels [new]
[preview] Cisco ASA - AnyConnect Tunnels [new]
[preview] Cisco ASA - WebVPN Tunnels [new]
[preview] Cisco ASA - IPsec L2L Tunnels [new]
[preview] Cisco ASA - IKE Dropped Packets - dropped_in [new]
[preview] Cisco ASA - IKE Dropped Packets - dropped_out [new]
[preview] Cisco ASA - IKE Traffic - traffic_out [new]
[preview] Cisco ASA - IKE Traffic - traffic_in [new]
[preview] Cisco ASA - Memory Free [new]
[preview] Cisco ASA - Memory Used [new]
[preview] Cisco ASA - 5 Minute CPU [new]
[preview] Interface - Traffic [updated]
Table: data_template_rrd, Column: rrd_maximum, New Value: 100000000, Old Value: 100000000000
Table: data_template_rrd, Column: rrd_maximum, New Value: 100000000, Old Value: 100000000000
[preview] Interface - Errors/Discards [unchanged]
[preview] Interface - Unicast Packets [unchanged]
[preview] Interface - Non-Unicast Packets [unchanged]
[preview] Interface - Multicast Packets [new]
Graph Template

[preview] Cisco ASA - Current Connections [new]
[preview] Cisco ASA - Active VPN Tunnels [new]
[preview] Cisco ASA - IKE Dropped Packets [new]
[preview] Cisco ASA - IKE Traffic (bits/sec) [new]
[preview] Cisco ASA - RAS Sessions [new]
[preview] Cisco ASA - Memory Usage [new]
[preview] Cisco ASA - 5 Minute CPU Usage [new]

STARTED DELETING FROM XML FILE FOR THESE TEMPLATES

[preview] Interface - Traffic (bits/sec) [updated]
Found Orphaned Graph Items, Type: LINE1, Text Format: , Value:
Found Orphaned Graph Items, Type: LINE1, Text Format: , Value:
Table: graph_templates_graph, Column: height, New Value: 120, Old Value: 200
Table: graph_templates_graph, Column: width, New Value: 500, Old Value: 700
Table: graph_templates_item, Column: alpha, New Value: FF, Old Value: 7F
Table: graph_templates_item, Column: sequence, New Value: 1, Old Value: 2
Table: graph_templates_item, Column: sequence, New Value: 2, Old Value: 3
Table: graph_templates_item, Column: sequence, New Value: 3, Old Value: 4
Table: graph_templates_item, Column: sequence, New Value: 4, Old Value: 5
Table: graph_templates_item, Column: graph_type_id, New Value: 4, Old Value: 7
Table: graph_templates_item, Column: alpha, New Value: FF, Old Value: 7F
Table: graph_templates_item, Column: sequence, New Value: 5, Old Value: 7
Table: graph_templates_item, Column: sequence, New Value: 6, Old Value: 8
Table: graph_templates_item, Column: sequence, New Value: 7, Old Value: 9
Table: graph_templates_item, Column: hard_return, New Value: , Old Value: on
Table: graph_templates_item, Column: sequence, New Value: 8, Old Value: 10
[preview] Interface - Errors/Discards [updated]
New Graph Items, Type: COMMENT, Text Format: Graph Last Updated:|date_time|, Value:
Table: graph_templates_graph, Column: height, New Value: 120, Old Value: 200
Table: graph_templates_graph, Column: width, New Value: 500, Old Value: 700
[preview] Interface - Unicast Packets [updated]
Found Orphaned Graph Items, Type: LINE1, Text Format: , Value:
Found Orphaned Graph Items, Type: LINE1, Text Format: , Value:
New Graph Items, Type: COMMENT, Text Format: Graph Last Updated:|date_time|, Value:
Table: graph_templates_graph, Column: height, New Value: 120, Old Value: 200
Table: graph_templates_graph, Column: width, New Value: 500, Old Value: 700
Table: graph_templates_item, Column: alpha, New Value: FF, Old Value: 7F
Table: graph_templates_item, Column: graph_type_id, New Value: 4, Old Value: 7
Table: graph_templates_item, Column: alpha, New Value: FF, Old Value: 7F
[preview] Interface - Non-Unicast Packets [updated]
Found Orphaned Graph Items, Type: LINE1, Text Format: , Value:
Found Orphaned Graph Items, Type: LINE1, Text Format: , Value:
New Graph Items, Type: COMMENT, Text Format: Graph Last Updated:|date_time|, Value:
Table: graph_templates_graph, Column: height, New Value: 120, Old Value: 200
Table: graph_templates_graph, Column: width, New Value: 500, Old Value: 700
Table: graph_templates_item, Column: alpha, New Value: FF, Old Value: 7F
Table: graph_templates_item, Column: graph_type_id, New Value: 4, Old Value: 7
Table: graph_templates_item, Column: alpha, New Value: FF, Old Value: 7F
[preview] Interface - Traffic (bytes/sec) [updated]
Found Orphaned Graph Items, Type: LINE1, Text Format: , Value:
Found Orphaned Graph Items, Type: LINE1, Text Format: , Value:
Table: graph_templates_graph, Column: height, New Value: 120, Old Value: 200
Table: graph_templates_graph, Column: width, New Value: 500, Old Value: 700
Table: graph_templates_item, Column: alpha, New Value: FF, Old Value: 7F
Table: graph_templates_item, Column: sequence, New Value: 1, Old Value: 2
Table: graph_templates_item, Column: sequence, New Value: 2, Old Value: 3
Table: graph_templates_item, Column: sequence, New Value: 3, Old Value: 4
Table: graph_templates_item, Column: sequence, New Value: 4, Old Value: 5
Table: graph_templates_item, Column: alpha, New Value: FF, Old Value: 7F
Table: graph_templates_item, Column: sequence, New Value: 5, Old Value: 7
Table: graph_templates_item, Column: sequence, New Value: 6, Old Value: 8
Table: graph_templates_item, Column: sequence, New Value: 7, Old Value: 9
Table: graph_templates_item, Column: hard_return, New Value: , Old Value: on
Table: graph_templates_item, Column: sequence, New Value: 8, Old Value: 10
[preview] Interface - Traffic (bits/sec, 95th Percentile) [updated]
Found Orphaned Graph Items, Type: LINE1, Text Format: , Value:
Found Orphaned Graph Items, Type: LINE1, Text Format: , Value:
Table: graph_templates_graph, Column: height, New Value: 120, Old Value: 200
Table: graph_templates_graph, Column: width, New Value: 500, Old Value: 700
Table: graph_templates_item, Column: alpha, New Value: FF, Old Value: 7F
Table: graph_templates_item, Column: sequence, New Value: 1, Old Value: 2
Table: graph_templates_item, Column: sequence, New Value: 2, Old Value: 3
Table: graph_templates_item, Column: sequence, New Value: 3, Old Value: 4
Table: graph_templates_item, Column: sequence, New Value: 4, Old Value: 5
Table: graph_templates_item, Column: graph_type_id, New Value: 4, Old Value: 7
Table: graph_templates_item, Column: alpha, New Value: FF, Old Value: 7F
Table: graph_templates_item, Column: sequence, New Value: 5, Old Value: 7
Table: graph_templates_item, Column: sequence, New Value: 6, Old Value: 8
Table: graph_templates_item, Column: sequence, New Value: 7, Old Value: 9
Table: graph_templates_item, Column: sequence, New Value: 8, Old Value: 10
Table: graph_templates_item, Column: sequence, New Value: 9, Old Value: 11
Table: graph_templates_item, Column: sequence, New Value: 10, Old Value: 12
Table: graph_templates_item, Column: sequence, New Value: 11, Old Value: 13
[preview] Interface - Traffic (bits/sec, Total Bandwidth) [updated]
Found Orphaned Graph Items, Type: LINE1, Text Format: , Value:
Found Orphaned Graph Items, Type: LINE1, Text Format: , Value:
New Graph Items, Type: COMMENT, Text Format: Description: |query_ifAlias|, Value:
New Graph Items, Type: COMMENT, Text Format: Graph Last Updated:|date_time|, Value:
Table: graph_templates_graph, Column: height, New Value: 120, Old Value: 200
Table: graph_templates_graph, Column: width, New Value: 500, Old Value: 700
Table: graph_templates_item, Column: alpha, New Value: FF, Old Value: 7F
Table: graph_templates_item, Column: sequence, New Value: 1, Old Value: 2
Table: graph_templates_item, Column: sequence, New Value: 2, Old Value: 3
Table: graph_templates_item, Column: sequence, New Value: 3, Old Value: 4
Table: graph_templates_item, Column: sequence, New Value: 4, Old Value: 5
Table: graph_templates_item, Column: sequence, New Value: 5, Old Value: 6
Table: graph_templates_item, Column: graph_type_id, New Value: 4, Old Value: 7
Table: graph_templates_item, Column: alpha, New Value: FF, Old Value: 7F
Table: graph_templates_item, Column: sequence, New Value: 6, Old Value: 8
Table: graph_templates_item, Column: sequence, New Value: 7, Old Value: 9
Table: graph_templates_item, Column: sequence, New Value: 8, Old Value: 10
Table: graph_templates_item, Column: hard_return, New Value: , Old Value: on
[preview] Interface - Traffic (bytes/sec, Total Bandwidth) [updated]
Found Orphaned Graph Items, Type: LINE1, Text Format: , Value:
Found Orphaned Graph Items, Type: LINE1, Text Format: , Value:
Table: graph_templates_graph, Column: height, New Value: 120, Old Value: 200
Table: graph_templates_graph, Column: width, New Value: 500, Old Value: 700
Table: graph_templates_item, Column: alpha, New Value: FF, Old Value: 7F
Table: graph_templates_item, Column: sequence, New Value: 1, Old Value: 2
Table: graph_templates_item, Column: sequence, New Value: 2, Old Value: 3
Table: graph_templates_item, Column: sequence, New Value: 3, Old Value: 4
Table: graph_templates_item, Column: sequence, New Value: 4, Old Value: 5
Table: graph_templates_item, Column: sequence, New Value: 5, Old Value: 6
Table: graph_templates_item, Column: graph_type_id, New Value: 4, Old Value: 7
Table: graph_templates_item, Column: alpha, New Value: FF, Old Value: 7F
Table: graph_templates_item, Column: sequence, New Value: 6, Old Value: 8
Table: graph_templates_item, Column: sequence, New Value: 7, Old Value: 9
Table: graph_templates_item, Column: sequence, New Value: 8, Old Value: 10
Table: graph_templates_item, Column: hard_return, New Value: , Old Value: on

END OF DELETIONS

[preview] Interface - Multicast Packets [new]
Data Query

[preview] SNMP - Interface Statistics [updated]
Table: snmp_query_graph_sv, Column: sequence, New Value: 1, Old Value: 2
Table: snmp_query_graph_sv, Column: sequence, New Value: 2, Old Value: 3
Table: snmp_query_graph_sv, Column: sequence, New Value: 3, Old Value: 4
Table: snmp_query_graph_rrd_sv, Column: text, New Value: |host_description| - Errors - |query_ifIP| - |query_ifName| (In), Old Value: |host_description| - Errors - |query_ifIP| - |query_ifName|
Table: snmp_query_graph_rrd_sv, Column: text, New Value: |host_description| - Errors - |query_ifName| (In), Old Value: |host_description| - Errors - |query_ifName|
Table: snmp_query_graph_rrd_sv, Column: text, New Value: |host_description| - Errors - |query_ifIP|/|query_ifDescr| (In), Old Value: |host_description| - Errors - |query_ifIP|/|query_ifDescr|
Table: snmp_query_graph_rrd_sv, Column: text, New Value: |host_description| - Errors - |query_ifDescr| (In), Old Value: |host_description| - Errors - |query_ifDescr|
Table: snmp_query_graph_sv, Column: sequence, New Value: 1, Old Value: 2
Table: snmp_query_graph_sv, Column: sequence, New Value: 2, Old Value: 3
Table: snmp_query_graph_sv, Column: sequence, New Value: 3, Old Value: 4
Table: snmp_query_graph_sv, Column: sequence, New Value: 1, Old Value: 2
Table: snmp_query_graph_sv, Column: sequence, New Value: 2, Old Value: 3
Table: snmp_query_graph_sv, Column: sequence, New Value: 3, Old Value: 4
Table: snmp_query_graph_sv, Column: sequence, New Value: 1, Old Value: 2
Table: snmp_query_graph_sv, Column: sequence, New Value: 2, Old Value: 3
Table: snmp_query_graph_sv, Column: sequence, New Value: 3, Old Value: 4
Table: snmp_query_graph_sv, Column: sequence, New Value: 1, Old Value: 5
Table: snmp_query_graph_sv, Column: sequence, New Value: 2, Old Value: 3
Table: snmp_query_graph_sv, Column: sequence, New Value: 3, Old Value: 4
Table: snmp_query_graph_sv, Column: sequence, New Value: 2, Old Value: 4
Table: snmp_query_graph_sv, Column: sequence, New Value: 3, Old Value: 2
Table: snmp_query_graph_sv, Column: sequence, New Value: 1, Old Value: 2
Table: snmp_query_graph_sv, Column: sequence, New Value: 2, Old Value: 3
Table: snmp_query_graph_sv, Column: sequence, New Value: 3, Old Value: 4
Table: snmp_query_graph_sv, Column: sequence, New Value: 1, Old Value: 2
Table: snmp_query_graph_sv, Column: sequence, New Value: 2, Old Value: 3
Table: snmp_query_graph_sv, Column: sequence, New Value: 3, Old Value: 4
Table: snmp_query_graph_sv, Column: sequence, New Value: 1, Old Value: 2
Table: snmp_query_graph_sv, Column: sequence, New Value: 2, Old Value: 3
Table: snmp_query_graph_sv, Column: sequence, New Value: 3, Old Value: 4
Table: snmp_query_graph_sv, Column: sequence, New Value: 1, Old Value: 2
Table: snmp_query_graph_sv, Column: sequence, New Value: 2, Old Value: 3
Table: snmp_query_graph_sv, Column: sequence, New Value: 3, Old Value: 4
Device Template

[preview] Cisco ASA - Security Appliance [new]
riversdev0
Posts: 10
Joined: Sat Apr 25, 2020 10:53 am
Location: MN, USA

Re: Template for Cisco ASA Cacti 1.x

Post by riversdev0 »

I'm new to Cacti, and I'm running a clean install of 1.2.10. I've been trying to monitor my ASA firewalls, too, and have been reluctant to install the older ASA template for the reason that it modifies all kinds of existing templates. So, I set out to dig into how Cacti performs its job, and I've put together a template that is working for me so far. I'm sharing it here to help others, as well as to get feedback on things that might be missing or not completely accurate. I would welcome any feedback.
Attachments
cacti_host_template_cisco_asa.xml
(250.87 KiB) Downloaded 1084 times
aseelye
Posts: 1
Joined: Thu May 14, 2020 10:06 am

Re: Template for Cisco ASA Cacti 1.x

Post by aseelye »

Thank you! I hadn't been able to find a template that worked prior to this. Huge help!
marachcr
Posts: 8
Joined: Thu Nov 02, 2017 4:42 pm

Re: Template for Cisco ASA Cacti 1.x

Post by marachcr »

Hi friends.

I downloaded the template but couldn't import it. You will have some advice to install it. my version is 1.2.16
riversdev0
Posts: 10
Joined: Sat Apr 25, 2020 10:53 am
Location: MN, USA

Re: Template for Cisco ASA Cacti 1.x

Post by riversdev0 »

Can you share any error messages or problems that you see? I just performed a fresh installation of 1.2.16 and the template imported totally fine.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests