Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 04 May 2017 13:39:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 219068] net-mgmt/nagios-plugins: check_swap returns always CRITICAL
Message-ID:  <bug-219068-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219068

            Bug ID: 219068
           Summary: net-mgmt/nagios-plugins: check_swap returns always
                    CRITICAL
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: mat@FreeBSD.org
          Reporter: mwennrich@gmail.com
          Assignee: mat@FreeBSD.org
             Flags: maintainer-feedback?(mat@FreeBSD.org)

Created attachment 182299
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D182299&action=
=3Dedit
patch for files/patch-configure

With nagios-plugins-2.2.1,1 check_swap returns always CRITICAL:

  /usr/local/libexec/nagios/check_swap -w 20 -c 10
  SWAP CRITICAL - 100% free (0 MB out of 0 MB) |swap=3D0MB;0;0;0;0

The cause is a wrong SWAP_FORMAT from configure:

  ac_cv_swap_format=3D"%*s %f %*d %f"

These have to be doubles now:

  ac_cv_swap_format=3D"%*s %lf %*d %lf"

(Upstream-commit
https://github.com/nagios-plugins/nagios-plugins/commit/39c5e4ed595cfbda7cf=
f566575fc5a53252f09b5
)

After the patch:

  /usr/local/libexec/nagios/check_swap -w 20 -c 10
  SWAP OK - 82% free (3346 MB out of 4096 MB) |swap=3D3346MB;0;0;0;4096

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-219068-13>