[Bug 219068] net-mgmt/nagios-plugins: check_swap returns always CRITICAL

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu May 4 13:39:54 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219068

            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 at FreeBSD.org
          Reporter: mwennrich at gmail.com
          Assignee: mat at FreeBSD.org
             Flags: maintainer-feedback?(mat at FreeBSD.org)

Created attachment 182299
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=182299&action=edit
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=0MB;0;0;0;0

The cause is a wrong SWAP_FORMAT from configure:

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

These have to be doubles now:

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

(Upstream-commit
https://github.com/nagios-plugins/nagios-plugins/commit/39c5e4ed595cfbda7cff566575fc5a53252f09b5
)

After the patch:

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

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


More information about the freebsd-ports-bugs mailing list