Date: Tue, 22 Aug 2017 16:41:17 +0000 (UTC) From: Steve Wills <swills@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r448562 - in head/net-mgmt/nagios-check_cpu_usage: . files Message-ID: <201708221641.v7MGfHhG093941@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: swills Date: Tue Aug 22 16:41:17 2017 New Revision: 448562 URL: https://svnweb.freebsd.org/changeset/ports/448562 Log: net-mgmt/nagios-check_cpu_usage: switch to iostat PR: 214297 Submitted by: Vidar Karlsen <vidar@karlsen.tech> Modified: head/net-mgmt/nagios-check_cpu_usage/Makefile head/net-mgmt/nagios-check_cpu_usage/files/check_cpu_usage Modified: head/net-mgmt/nagios-check_cpu_usage/Makefile ============================================================================== --- head/net-mgmt/nagios-check_cpu_usage/Makefile Tue Aug 22 16:41:14 2017 (r448561) +++ head/net-mgmt/nagios-check_cpu_usage/Makefile Tue Aug 22 16:41:17 2017 (r448562) @@ -3,6 +3,7 @@ PORTNAME= nagios-check_cpu_usage PORTVERSION= 1.0 +PORTREVISION= 1 CATEGORIES= net-mgmt MASTER_SITES= # none DISTFILES= # none Modified: head/net-mgmt/nagios-check_cpu_usage/files/check_cpu_usage ============================================================================== --- head/net-mgmt/nagios-check_cpu_usage/files/check_cpu_usage Tue Aug 22 16:41:14 2017 (r448561) +++ head/net-mgmt/nagios-check_cpu_usage/files/check_cpu_usage Tue Aug 22 16:41:17 2017 (r448562) @@ -101,7 +101,7 @@ fi warn=$1 crit=$3 -cpu_all=$( vmstat -c 2 -n 0 | tail -n 1 | awk '{print $15 " " $16 " " $17}' ) +cpu_all=$( iostat -c 2 -t proc | tail -n 1 | awk '{print $3 " " $5 " " $7}' ) cpu_user=$( echo $cpu_all | awk '{print $1}') cpu_sys=$( echo $cpu_all | awk '{print $2}') cpu_idle=$( echo $cpu_all | awk '{print $3}')
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708221641.v7MGfHhG093941>