Build precise queries to find exactly what you need
Press ESC to close
Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More
Good plugin. I use it on my job.
I found a little difference in my environment iostat results.
I’ll try to explain it showing you modified lines:
1) idle parameter position:
CPU_IDLE=`echo $CPU_REPORT | cut -d “;” -f 7`
2) test for thresholds:
if [[ $CPU_IOWAIT > $IO_CPU_C || $CPU_USER > $U_CPU_C || $CPU_SYSTEM > $S_CPU_C ]]; then echo “CPU CRITICAL : user=${CPU_USER}% system=${CPU_SYSTEM}% iowait=${CPU_IOWAIT}% idle=${CPU_IDLE}% | cpu_user=${CPU_USER}%;${U_CPU_W};${U_CPU_C}; cpu_sys=${CPU_SYSTEM}%;${S_CPU_W};${S_CPU_C}; cpu_iowait=${CPU_IOWAIT}%;${IO_CPU_W};${IO_CPU_C}; cpu_idle=${CPU_IDLE}%;” exit $STATE_CRITICAL fi
…and obviously for WARNING test.
P.S. I use zLinux servers in OS/390 environment. my uname is: 2.6.18-194.el5 #1 SMP Tue Mar 16 22:05:06 EDT 2010 s390x s390x s390x GNU/Linux
Hope it helps. Paolo