Collection of CheckMK checks (see https://checkmk.com/). All checks and plugins are provided as is. Absolutely no warranty. Send any comments to thl-cmk[at]outlook[dot]com

Skip to content
Snippets Groups Projects
Commit 2d55e4fc authored by thl-cmk's avatar thl-cmk :flag_na:
Browse files

update project

parent 03a86074
No related branches found
No related tags found
No related merge requests found
......@@ -2,9 +2,11 @@
# -*- encoding: utf-8; py-indent-offset: 4 -*-
#
# created by Th.L.:
#
# Monitors Cisco ASA connection count
# works with Cisco ASA 55xx and later
# tested witch 5506W and 5512-X, 5585-SSP2
#
# works with Cisco ASA 55xx and later, tested witch 5506W and 5512-X, 5585-SSP2
#
# 24.03.2016: changed "snmp_scan_function" from ".1.3.6.1.2.1.1.2.0" to ".1.3.6.1.2.1.1.1.0"
# 02.07.2016: fixed crit/warn to >=
# 09.01.2018: some fine tuning (changed infotext)
......@@ -15,11 +17,14 @@
# .1.3.6.1.4.1.9.9.147.1.2.2.2.1.5.40.6 = Gauge32: 4987
# .1.3.6.1.4.1.9.9.147.1.2.2.2.1.5.40.7 = Gauge32: 17517
#
# CISCO-FIREWALL-MIB::cfwConnectionStatValue.protoIp.currentInUse = Gauge32: 4987
# CISCO-FIREWALL-MIB::cfwConnectionStatValue.protoIp.high = Gauge32: 17517
#
# sample info
#
# [[u'4987', u'17517']]
#
# connection levels (war,crit,minimum)
# connection levels (warn,crit,minimum)
cisco_asa_connections_default_levels = (3000, 5000,100)
......@@ -33,7 +38,9 @@ def check_cisco_asa_connections(_no_item, params, info):
warn, crit, minimum = params
current_connections = int(info[0][0])
max_connections = int(info[0][1])
perfdata = [('current_connections', current_connections, warn, crit, '', ''), ('max_connections', max_connections)]
# label value warn crit min max
perfdata = [('current_connections', current_connections, warn, crit, 1000, 2000),
('max_connections', max_connections)]
infotext = ''
if current_connections >= crit:
......
No preview for this file type
......@@ -9,33 +9,33 @@
#####################################################################################################################
#
# define units for cisco_asa_connections perfdata
# define units
#
#####################################################################################################################
#####################################################################################################################
#
# define metrics for cisco_asa_connections perfdata
# define metrics
#
#####################################################################################################################
metric_info['cisco_asa_connections_current_connections'] = {
'title': _('current conections'),
'unit': 'count',
'color': '11/a',
'color': '26/a',
}
metric_info['cisco_asa_connections_max_connections'] = {
'title': _('max conections'),
'unit': 'count',
'color': '21/a',
'color': '11/a',
}
######################################################################################################################
#
# map cisco_asa_connections perfdata to metric, not really necessary but makes sure to use the right metrics
# map perfdata to metric
#
######################################################################################################################
......@@ -46,15 +46,15 @@ check_metrics['check_mk-cisco_asa_connections'] = {
######################################################################################################################
#
# how to graph perdata for cisco_asa_connections
# how to graph perdata
#
######################################################################################################################
graph_info.append({
'title': _('connections'),
'metrics': [
('cisco_asa_connections_current_connections', 'line'),
('cisco_asa_connections_max_connections', 'line'),
('cisco_asa_connections_current_connections', 'area'),
],
'scalars': [
('cisco_asa_connections_current_connections:crit', _('crit level')),
......@@ -64,7 +64,7 @@ graph_info.append({
######################################################################################################################
#
# define perf-o-meter for cisco_asa_connections rpm
# define perf-o-meter
#
######################################################################################################################
......
......@@ -3,7 +3,7 @@
#
# Author : Th.L.
# Content: wato plugin for snmp check 'cisco_asa_connections'
# to configure waring/critical levels
# to configure waring/critical/minimum levels
#
#
register_check_parameters(
......@@ -13,9 +13,9 @@ register_check_parameters(
Tuple(
title=_('Cisco ASA current connections'),
elements=[
Integer(title=_('warning at'), unit=_(' connections'), default_value=3000),
Integer(title=_('critical at'), unit=_(' connections'), default_value=5000),
Integer(title=_('minimum'), unit=_(' connections'), default_value=100),
Integer(title=_('warning at'), unit=_('connections'), default_value=3000),
Integer(title=_('critical at'), unit=_('connections'), default_value=5000),
Integer(title=_('minimum'), unit=_('connections'), default_value=100),
]
),
None, None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment