Summary: | net-mgmt/nagios-plugins: check_swap returns always CRITICAL | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Markus Wennrich <mwennrich> | ||||
Component: | Individual Port(s) | Assignee: | Mathieu Arnold <mat> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Many People | Flags: | bugzilla:
maintainer-feedback?
(mat) |
||||
Priority: | --- | ||||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Markus Wennrich
2017-05-04 13:39:54 UTC
Thanks. A commit references this bug: Author: mat Date: Thu May 4 14:16:31 UTC 2017 New revision: 440109 URL: https://svnweb.freebsd.org/changeset/ports/440109 Log: Fix check_swap. PR: 219068 Submitted by: Markus Wennrich Sponsored by: Absolight Changes: head/net-mgmt/nagios-plugins/Makefile head/net-mgmt/nagios-plugins/files/patch-configure Bug was again re-introduced with nagios-plugins-2.2.1_2,1 Revision: 448907 --- head/net-mgmt/nagios-plugins/files/patch-configure Tue Aug 29 11:26:40 2017 (r448906) +++ head/net-mgmt/nagios-plugins/files/patch-configure Tue Aug 29 11:46:03 2017 (r448907) (...) -- ac_cv_swap_format="%*s %f %*d %f" -+ ac_cv_swap_format="%*s %lf %*d %lf" (...) A commit references this bug: Author: mat Date: Tue Aug 29 16:06:05 UTC 2017 New revision: 448927 URL: https://svnweb.freebsd.org/changeset/ports/448927 Log: Fix the check_swap again. PR: 219068 Sponsored by: Absolight Changes: head/net-mgmt/nagios-plugins/Makefile head/net-mgmt/nagios-plugins/files/patch-configure Note that /usr/local/libexec/nagios/check_swap -w 20 -c 10 Means, warning if there is 20 bytes of swap free and critical if there is 10 bytes of swap free, which is a bit strange. (In reply to Mathieu Arnold from comment #5) Ah, true. It needs additional %-symbols: /usr/local/libexec/nagios/check_swap -w 78% -c 10% SWAP WARNING - 76% free (3092 MB out of 4096 MB) |swap=3092MB;3194;409;0;4096 Thanks for the hint, I will udpate my icinga-configuration. And thanks for the quick fix. |