FreeBSD Bugzilla – Attachment 176870 Details for
Bug 214297
net-mgmt/nagios-check_cpu_usage: Sometimes fails to parse vmstat output
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Change vmstat to iostat (svn diff)
net-mgmt_nagios-check__cpu__usage.patch (text/plain), 1006 bytes, created by
Vidar Karlsen
on 2016-11-10 20:09:34 UTC
(
hide
)
Description:
Change vmstat to iostat (svn diff)
Filename:
MIME Type:
Creator:
Vidar Karlsen
Created:
2016-11-10 20:09:34 UTC
Size:
1006 bytes
patch
obsolete
>Index: net-mgmt/nagios-check_cpu_usage/Makefile >=================================================================== >--- net-mgmt/nagios-check_cpu_usage/Makefile (revision 425851) >+++ net-mgmt/nagios-check_cpu_usage/Makefile (working copy) >@@ -3,6 +3,7 @@ > > PORTNAME= nagios-check_cpu_usage > PORTVERSION= 1.0 >+PORTREVISION= 1 > CATEGORIES= net-mgmt > MASTER_SITES= # none > DISTFILES= # none >Index: net-mgmt/nagios-check_cpu_usage/files/check_cpu_usage >=================================================================== >--- net-mgmt/nagios-check_cpu_usage/files/check_cpu_usage (revision 425851) >+++ net-mgmt/nagios-check_cpu_usage/files/check_cpu_usage (working copy) >@@ -101,7 +101,7 @@ > 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}')
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
vidar
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 214297
:
176748
| 176870