FreeBSD Bugzilla – Attachment 176748 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
patch-check_cpu_usage (text/plain), 468 bytes, created by
Vidar Karlsen
on 2016-11-07 18:59:48 UTC
(
hide
)
Description:
Change vmstat to iostat
Filename:
MIME Type:
Creator:
Vidar Karlsen
Created:
2016-11-07 18:59:48 UTC
Size:
468 bytes
patch
obsolete
>--- files/check_cpu_usage.orig 2016-11-06 23:23:23.172827000 +0100 >+++ files/check_cpu_usage 2016-11-07 19:31:53.980659000 +0100 >@@ -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
Actions:
View
|
Diff
Attachments on
bug 214297
:
176748
|
176870