From 9a87531931bbb2f13a7e0a06b21db117de1bc146 Mon Sep 17 00:00:00 2001 From: Robert Sander Date: Tue, 4 Jun 2024 16:50:32 +0200 Subject: [PATCH] adds metric translation for size --- .../postfix_mailq_details-5.2.2.mkp | Bin 3878 -> 0 bytes .../postfix_mailq_details-5.3.0.mkp | Bin 0 -> 3991 bytes .../plugins/metrics/postfix_mailq_details.py | 24 ++++++++++++++++++ 3 files changed, 24 insertions(+) delete mode 100644 postfix_mailq_details/postfix_mailq_details-5.2.2.mkp create mode 100644 postfix_mailq_details/postfix_mailq_details-5.3.0.mkp create mode 100644 postfix_mailq_details/web/plugins/metrics/postfix_mailq_details.py diff --git a/postfix_mailq_details/postfix_mailq_details-5.2.2.mkp b/postfix_mailq_details/postfix_mailq_details-5.2.2.mkp deleted file mode 100644 index bc10407167e241ff9cf308fcea0a1f5f6a8204cc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3878 zcmZvdXEYlO!-lO=n?5MDTZ+b}_THnVHnmEP+MCwi9f{CmREyrIN z7;x_`=Io*Mue%)J;bvNNm6;#Fk&7Pf_=5%2M+wQK`M&7q;RKs+t?Xx^7d=q@`W-23 zLi=&HnWpSs82-K#u@l;1g{=RzcV<*==QjuWrw8fl@2BCu!OV1(Z~**~-7lo(aVE*G z=mfcgw5Sv6A(;&QCZY0ny)gRSSxc^@A1zVh3b?1_^kO&jBT|d9EoPmwe2233wZ%NOFBzyZjivsq5GyHp_$sUB$VXT!$h~oC66B{C+0PltX2p9aVXqUu3FOEc zavBR9*<8r|BO}=5`yu(@Qd{vTS@?aJI+GL9iVP~Sw%{+|WW-)vbd>v4E?9WKa(Ole zF*@}TnG$AnAP|*(=JDbz+6qRKR*RKjmbaObj%t{pP+nMl!dWk4D8X4DG4Zu7j%oEv zPqTPu)kpI`){LJw3oXLxRCt<~b?Ix4Oy`myYHYG{;{*jsa^t+=4be3AJOTNk(`u0! z;d!GDHy1D8B}dci2cOEhKKX(yMXbzOn*E~(g8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y5Nbx5NSN&_a^wcL2<1} zU6O~96mLHZWiU73Smb-ycI8H(uxEt+t&#O@RF&=O$4<8j{eg^jwop;92E?R)SVVNu zaRPomp^P9h29*`|4$AQ|PP#ojPA>VhEKo)D!7Ip%R#qmg;U@Jp*WsKOHi^dWt?bKw(oHHctr4MZ(Ij8}&c%xDuu#^w{ z6;+F&f}8p@o?9{cy7fg{uy+6&V^R5H0_Vi^$rw%o0_OxOD(D zd}?%mri=6RD6Oz(4!?eyBb&M07%)I9uLwsvtD`P&@ebP>jw+zqI_rosRTvvSq`f)% z{nv=1D`VJpb9)~>qnVU7+$2*|2~7ukXI!r&uh>2k>iT@3EL^oNcOl&fe%%_ zcg=E~X&NKk;}k@32^anL_VbZSx9t$C#(-l2YIMLRhuHM5MDjP(iE76c%{*DtDI+b{ zrbpFK=4TEW!I^O7^DlhP3o!j!z_?Px%PSr^<1mAG^!jBJ$?lo{b%cIjweT}WOB=Hs zZDvtLmCsjWQ;5>+qJr4;_J1_s4jAC2w3ulx^aX|m;H7v%TdqhktZto(!A-ZY0_xbFr8(rDv-tB~1cSWugm+-WTp;%cT zQi3C0tp#aVjdjI}$#tJwwyo^UzE6K=7~$x05rRw8|!XoWAk!nLUZ_gi+WO}WdTy-&(IX%akmu5e->M09)~=DZ1w|o zrpeI)FI6)D9K{fqlo$jzH8;H<;dg%BXH&+%b36!`GA1#h!~M`LDi1~8!ioRqoB!kT T|K2VEXyVP0VKm7P5|aM`;rhsh diff --git a/postfix_mailq_details/postfix_mailq_details-5.3.0.mkp b/postfix_mailq_details/postfix_mailq_details-5.3.0.mkp new file mode 100644 index 0000000000000000000000000000000000000000..72fe7c76360a56d04362fe539e1b8a03544dd3b0 GIT binary patch literal 3991 zcmZ|RWl$83x(09>r9)a$LXZ$d=@0}7>5|w*3CSgwX5kNrbV%3IAWKTKfPkccuypSt zv9iQc(%|knXXeiRaPHg>&%Dp~-@G#qcfvh_6k*#BM0hM9#CP=v_2v4_1KD9V?Ie^$ zyG{md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ugins/metrics/postfix_mailq_details.py new file mode 100644 index 00000000..e1c7f537 --- /dev/null +++ b/postfix_mailq_details/web/plugins/metrics/postfix_mailq_details.py @@ -0,0 +1,24 @@ +#!/usr/bin/env python3 +# -*- encoding: utf-8; py-indent-offset: 4 -*- + +# +# (c) 2024 Heinlein Support GmbH +# Robert Sander +# + +# This is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation in version 2. This file is distributed +# in the hope that it will be useful, but WITHOUT ANY WARRANTY; with- +# out even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. See the GNU General Public License for more de- +# ails. You should have received a copy of the GNU General Public +# License along with GNU Make; see the file COPYING. If not, write +# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, +# Boston, MA 02110-1301 USA. + +check_metrics["check_mk-postfix_mailq_details"] = { + "size": { + "name": "total_file_size" + }, +}