From a33decfeb2916441b8780fbead4f043cab890bb5 Mon Sep 17 00:00:00 2001
From: Thl CMK <thl-cmk@outlook.com>
Date: Sun, 7 Jun 2020 21:53:58 +0200
Subject: [PATCH] changed form checkpoint_connections to
 checkpoint_fw_connections

---
 checkman/checkpoint_connections               |  45 ------
 checkpoint_connections.mkp                    | Bin 3013 -> 0 bytes
 packages/checkpoint_connections               |  12 --
 web/plugins/metrics/checkpoint_connections.py | 135 ------------------
 4 files changed, 192 deletions(-)
 delete mode 100644 checkman/checkpoint_connections
 delete mode 100644 checkpoint_connections.mkp
 delete mode 100644 packages/checkpoint_connections
 delete mode 100644 web/plugins/metrics/checkpoint_connections.py

diff --git a/checkman/checkpoint_connections b/checkman/checkpoint_connections
deleted file mode 100644
index 08ef898..0000000
--- a/checkman/checkpoint_connections
+++ /dev/null
@@ -1,45 +0,0 @@
-title: Dummy check man page - used as template for new check manuals
-agents: linux, windows, aix, solaris, hpux, vms, freebsd, snmp
-catalog: see modules/catalog.py for possible values
-license: GPL
-distribution: check_mk
-description:
- Describe here: (1) what the check actually does, (2) under which
- circumstances it goes warning/critical, (3) which devices are supported
- by the check, (4) if the check requires a separated plugin or
- tool or separate configuration on the target host.
-
-item:
- Describe the syntax and meaning of the check's item here. Provide all
- information one needs if coding a manual check with {checks +=} in {main.mk}.
- Give an example.  If the check uses {None} as sole item,
- then leave out this section.
-
-examples:
- # Give examples for configuration in {main.mk} here. If the check has
- # configuration variable, then give example for them here.
-
- # set default levels to 40 and 60 percent:
- foo_default_values = (40, 60)
-
- # another configuration variable here:
- inventory_foo_filter = [ "superfoo", "superfoo2" ]
-
-perfdata:
- Describe precisely the number and meaning of performance variables
- the check sends. If it outputs no performance data, then leave out this
- section.
-
-inventory:
- Describe how the inventory for the check works. Which items
- will it find? Describe the influence of check specific
- configuration parameters to the inventory.
-
-[parameters]
-foofirst(int): describe the first parameter here (if parameters are grouped
-        as tuple)
-fooother(string): describe another parameter here.
-
-[configuration]
-foo_default_levels(int, int): Describe global configuration variable of
-    foo here. Important: also tell the user how they are preset.
diff --git a/checkpoint_connections.mkp b/checkpoint_connections.mkp
deleted file mode 100644
index 67cf02bf942a1dfaa6c5ecbda0a5feeee9942142..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 3013
zcmV;$3p(^4iwFozMBQEj|6^!nV{344X>N31V{dM5Wn*+{Z*FrfGB7eQFg7qZE_N<3
zE-)@KE^TXY0PP%WZ`(%FpAGmwY!w6)uM$O4vYgXF1zP9YGn%AE;@o|31c4@37Hhta
zTv{~(|M#2OB_)y~Ey=Ro=CG4Ql$JBIv%B-y$86kS79Kn^=m5jPfIk7MPs8jF4vhYA
zcw!Dr!vH)(*H82Vq942fqzSWPLY}0N#m0Rj@Kv!=HV<QEL{jBquD#Ppo6Wth?cZEl
zY!ar-3&WdBCu9>l^i`#ENEC-AcI-yX4FgX0J`7wI#^iKP?Hh6)x&b3UyD?o@o=5C3
z2&j#?1bUje33Kg4`x1N!KGH?(GD^Z3VRLxI?zJ0OK!I!k<44D#4vA<yb1Y_&8PpI_
z>!!dlAy(j!i_`NC`TQ0>&Q9OMX9(P4{)UCjDoGGqjD873Bf>@Cg_bi-V-H%P%o&T4
zQLmRZUYmyz3$-x5=GZgWqY0pWRk(Ec^-_F|u({LOVp<SOnE=fSlm)%w1d*3Q6O*1#
zSq#0<Yh<8BcS?!Hl2y)PVX^RG`pG>C9#}rb<`qzjf^wA9pXTlBV*zuSNBPJWNA$Ep
zc1z<#Xn<nsCRn(BqTOmb{4tB~HQx=UG5v1}3gIBKp_$s7t2ZT_$g*#&>-_yd)1&?y
z<^Djzvx5u%U;8}?gFn&#8$+|={|$X0{r}7O{}wm>7Pz(+xG8vEwsvt-tqy5z?UPy)
zz!naaSJa5x0_R0qbshxhTA2sIs?oh+QN4RZ3=!TCXLEEzeD3@Zy}|b(PBC^MYGdr+
zBIfS3h3<9Ls@&&^773r%TD`~Os$b=GuYxb4d~30{CB6Dz3WPOk-~<0G|8EZPd&U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`Pi_E1!yND$6vhp;pCXocz!`;O5o1Uhlin(nKBH?j#>4Njt^7IS+^i00hx1v=x
zBMUPp`%G^2D9c*PJbBi$Q~##BA%iLFnKgflcjjv@p>J~29dh5PV~H;F5iCXOW<5*p
z^&Y`9OY5v>Dje4%xaKLJ^=#4iJc6mn1+8Vtox<)cvy93j%d+ur&9Y2ZVp+7@ZTXcm
zS?_b(d=|@`hYK{w>)49sXrj+J-Qjg`XP2jd)_K;tId3rnfQ%%e&^OM?!)2C^iC#y=
zEZtpfRe?p6eY51b69-|M`*6q%aUT}B)$PMW7@6Y1MEFq*GLtGZn4kiyPp1JQj_ot}
zWdqx}xm9ylte9G*=86PF+w!b<H?1tO9${`W@P|&}-_*y-IKrG`!H9oT*N5hL7gZSh
zyI~iGipI|t^|6wWS5Z>2wlE0lU|yhT_SaQ6D(o)e4%rK@E$HOA@7hYCn=|#=H3SqG
z%q?#=<yqXo#NhiynqEYpe?(y*uH~6oc^*KXLC}h^KP2c@Vop@hpTETZ-^TyD<7xJP
zYxe(iv%mWPzx07|e4v~9N&iId|H=KoUH1P>y{iwqy4e4V>9w1nGZV`fek%u^ThbQB
zm!wzxrot5b9EfO%`w&NkYZ&!c7X-!@fp!_u-nzWNitpM-g_|qXhn`Hvh2SRQQq3)=
zP8o+>q>)G4N9#$?d>$|c;ogZ$+qeq{PW1{Vec_C(I1&p)x}~)X@DenMxrDQT(Q6vF
zmo@(f#0RAz7S1t9e#L|P#j&_GjSK2A-<S{+5ds|-E~eCv*xmSN%S&jjD7CenLPz24
zzuM}|eX5(N)#7&fs@M|^N<bIIVd%ZoK)mcYJkc=Zlf%4>-;5VueT&)iDMtCR;(*2B
z_^9%9SAqly5+q2FAVGoz2@)hokRU;V1PKx(NRS{wf&>W?BuJ1TL4pJc|IhG0>+^ZU
H0C)fZrb5=O

diff --git a/packages/checkpoint_connections b/packages/checkpoint_connections
deleted file mode 100644
index 4862016..0000000
--- a/packages/checkpoint_connections
+++ /dev/null
@@ -1,12 +0,0 @@
-{'author': u'Th.L. (thl-cmk[at]outlook[dot]com)',
- 'description': u'Monitor Check Point Firewall connection statistics.\n\nRewrite of the original check.\nAdded perfdata for peak connections and TCP, UDP, ICMP, other and total connection rate\n',
- 'download_url': 'https://thl-cmk.hopto.org',
- 'files': {'checks': ['checkpoint_fw_connections'],
-           'web': ['plugins/metrics/checkpoint_fw_connections.py',
-                   'plugins/wato/checkpoint_fw_connections.py']},
- 'name': 'checkpoint_connections',
- 'num_files': 3,
- 'title': u'Check Point Connections',
- 'version': '20200607.v.0.0.2',
- 'version.min_required': '1.2.8b8',
- 'version.packaged': '1.4.0p38'}
\ No newline at end of file
diff --git a/web/plugins/metrics/checkpoint_connections.py b/web/plugins/metrics/checkpoint_connections.py
deleted file mode 100644
index 58ea7ce..0000000
--- a/web/plugins/metrics/checkpoint_connections.py
+++ /dev/null
@@ -1,135 +0,0 @@
-#!/usr/bin/python
-# -*- encoding: utf-8; py-indent-offset: 4 -*-
-#
-# Check Point Firewall connections metrics plugins
-# checkpoint_connections
-
-#
-# Author: Th.L.
-# Date  : 2018-03-17
-#
-
-#####################################################################################################################
-#
-# define units for perfdata
-#
-#####################################################################################################################
-
-#####################################################################################################################
-#
-# define metrics for perfdata
-#
-#####################################################################################################################
-
-metric_info['checkpoint_connections_fwconnectionstcp'] = {
-    'title': _('TCP connections'),
-    'unit': '1/s',
-    'color': '11/a',
-}
-metric_info['checkpoint_connections_fwconnectionsudp'] = {
-    'title': _('UDP connections'),
-    'unit': '1/s',
-    'color': '21/a',
-}
-metric_info['checkpoint_connections_fwconnectionsicmp'] = {
-    'title': _('ICMP connections'),
-    'unit': '1/s',
-    'color': '31/a',
-}
-metric_info['checkpoint_connections_fwconnectionsother'] = {
-    'title': _('Other connections'),
-    'unit': '1/s',
-    'color': '41/a',
-}
-metric_info['checkpoint_connections_fwconnections'] = {
-    'title': _('Total connections'),
-    'unit': '1/s',
-    'color': '32/a',
-}
-metric_info['checkpoint_connections_fwconnectionrate'] = {
-    'title': _('Connections rate'),
-    'unit': '1/s',
-    'color': '42/a',
-}
-
-metric_info['checkpoint_connections_connections'] = {
-    'title': _('Current connections'),
-    'unit': 'count',
-    'color': '13/a',
-}
-metric_info['checkpoint_connections_fwpeaknumconn'] = {
-    'title': _('Peak Connections'),
-    'unit': 'count',
-    'color': '23/a',
-}
-
-
-######################################################################################################################
-#
-# map perfdata to metric
-#
-######################################################################################################################
-
-
-check_metrics['check_mk-checkpoint_connections'] = {
-    'fwconnectionstcp': {'name': 'checkpoint_connections_fwconnectionstcp', },
-    'fwconnectionsudp': {'name': 'checkpoint_connections_fwconnectionsudp', },
-    'fwconnectionsicmp': {'name': 'checkpoint_connections_fwconnectionsicmp', },
-    'fwconnectionsother': {'name': 'checkpoint_connections_fwconnectionsother', },
-    'fwconnections': {'name': 'checkpoint_connections_fwconnections', },
-    'fwconnectionrate': {'name': 'checkpoint_connections_fwconnectionrate', },
-    'connections': {'name': 'checkpoint_connections_connections', },
-    'fwpeaknumconn': {'name': 'checkpoint_connections_fwpeaknumconn', },
-}
-
-######################################################################################################################
-#
-# how to graph perdata
-#
-######################################################################################################################
-
-graph_info.append({
-    'title': _('Check Point Firewall Connections per second'),
-    'metrics': [
-        ('checkpoint_connections_fwconnectionsother', 'stack'),
-        ('checkpoint_connections_fwconnectionsicmp', 'stack'),
-        ('checkpoint_connections_fwconnectionsudp', 'stack'),
-        ('checkpoint_connections_fwconnectionstcp', 'stack'),
-        ('checkpoint_connections_fwconnections', 'line'),
-    ],
-})
-
-graph_info.append({
-    'title': _('Check Point Firewall Connections count'),
-    'metrics': [
-        ('checkpoint_connections_fwpeaknumconn', 'line'),
-        ('checkpoint_connections_connections', 'line'),
-    ],
-    'scalars': [
-        ('checkpoint_connections_connections:crit', _('crit')),
-        ('checkpoint_connections_connections:warn', _('warn')),
-    ],
-})
-
-
-######################################################################################################################
-#
-# define perf-o-meter
-#
-######################################################################################################################
-
-
-perfometer_info.append(('stacked', [
-    {
-        'type': 'logarithmic',
-        'metric': 'checkpoint_connections_connections',
-        'half_value': 100000.0,
-        'exponent': 2,
-    },
-    {
-        'type': 'logarithmic',
-        'metric': 'checkpoint_connections_fwconnections',
-        'half_value': 1000.0,
-        'exponent': 2,
-    },
-]))
-- 
GitLab