From nobody Thu May 26 09:15:17 2022 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id AE8081B4B32E for ; Thu, 26 May 2022 09:15:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4L82Mp0KfZz4qQQ for ; Thu, 26 May 2022 09:15:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DFEE03297 for ; Thu, 26 May 2022 09:15:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 24Q9FHkc077269 for ; Thu, 26 May 2022 09:15:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 24Q9FHPx077268 for ports-bugs@FreeBSD.org; Thu, 26 May 2022 09:15:17 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 264252] net-mgmt/nagios-plugins: check_swap reports double swap size if swap file is added Date: Thu, 26 May 2022 09:15:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: edgar.wiesmann@rif-ev.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: mat@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653556518; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kynDcZMhg5miRtZZb2jnaJ+cul01OLXFJalByax26xQ=; b=G3nbqEGchOLr1LZyaKrpoO/O2Za6zImYed64xylqzH91ySGJGLr++4W4eaq4QS5TRMC7a5 E42Aoz3AltmXP0EeROXZ41zxF4h5Vojo4rF53GNa9N0tznU2fy4ZCmHsTXD+uiEWqAf5Z8 ETGnohYyBm1I7zcul6KySX9y3i50dTs4U+HOfrXGj+OgriP3m272BsRsQJyW844VZGbtzK FacSvYWeM3isi0rH8Ilz2zYqb+U55CQ3t5kAqeP6bGxcJlZZX0T/TN2aOjqQ90SJz6OjMG 7Wiu4djdlGEAzL7OWLg2mPGTstVS7kmu5jD00HHGegiDCVsxUtyQfAEg4tJmmw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1653556518; a=rsa-sha256; cv=none; b=Io3zyl9TfQ/SWYxbS2cA9ox4b9X/4Zh5XimYUUbduh54Y1JlSVWACv1gJMQHh2hLTGUGxB KhGF6skKoN49CRSu5/qkjb31t09Bp/de/zM3OUpNYbZv542yrr++UPr3GotdxMlYxcf1Jq k3023X1YQ8Zj8efhQZdSt4vQd+pdMT7y1oT9dSyZNOo8BE5ZoONdUjDvrTsQyyQktjyhRz HvJ53NB0xtp37XevwDDw/WAMeQrzS++tMsdPqte24tr2CoX/R6VUKlGPvyxOHTNdFWVzAU av+pcYycr5UkeJ8ElS3Z2/iYbjGJ+jSCJnJ40FzoiDmDz2eBi88fHAej+Y0ulg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264252 Bug ID: 264252 Summary: net-mgmt/nagios-plugins: check_swap reports double swap size if swap file is added Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: mat@FreeBSD.org Reporter: edgar.wiesmann@rif-ev.de Flags: maintainer-feedback?(mat@FreeBSD.org) Assignee: mat@FreeBSD.org Created attachment 234225 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D234225&action= =3Dedit output of "sysctl -a | egrep -i ^hw." with nagios-plugins-2.4.0,1 check_swap returns always DOUBLE the size of sw= ap, if an additional swap file ist added create a swap file as shown at https://www.freebsdnews.com/2015/07/03/add-swap-file-freebsd-10-1/ cat /etc/fstab # Device Mountpoint FStype Options=20=20= =20=20=20=20=20=20 Dump Pass# /dev/da0p2 / ufs rw = 1=20=20 1 /dev/da0p3 none swap sw = 0=20=20 0 /dev/da1p1 /usr/local/poudriere ufs rw = 0=20=20 0 /dev/cd0 /media/cdrom cd9660 ro,noauto = 0=20=20 0 linproc /compat/linux/proc linprocfs rw,late = 0=20=20 0 md43 none swap sw,file=3D/usr/local/poudriere/swapfile_1G = 0=20=20 0 swapctl -l Device: 1024-blocks Used: /dev/da0p3 838656 0 /dev/md43 1048576 0 /usr/local/libexec/nagios/check_swap -w 30% -c 10% SWAP OK - 100% free (3686 MB out of 3686 MB) |swap=3D3686MB;1105;368;0;= 3686 swapoff /dev/md43 swapctl -l Device: 1024-blocks Used: /dev/da0p3 838656 0 /usr/local/libexec/nagios/check_swap -w 30% -c 10% SWAP OK - 100% free (819 MB out of 819 MB) |swap=3D819MB;245;81;0;819 swapon /dev/md43 /usr/local/libexec/nagios/check_swap -w 30% -c 10% SWAP OK - 100% free (3686 MB out of 3686 MB) |swap=3D3686MB;1105;368;0;= 3686 top (top: version FreeBSD) and htop (3.2.0) allways show the correct size uname -a FreeBSD xxx 13.0-RELEASE-p11 FreeBSD 13.0-RELEASE-p11 #0: Tue Apr 5 18:54:= 35 UTC 2022=20=20=20=20 root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC= =20 amd64 --=20 You are receiving this mail because: You are the assignee for the bug.=