Build precise queries to find exactly what you need
Press ESC to close
I ran it with option show on the page on Suse linux 11 and I get following output
nagios@cubic:~> ./check_cpu_stats.sh -w 90,40,30 -c 90,50,40 -i 3 -n 5 ./check_cpu_stats.sh: line 172: [: 90,40,30: integer expression expected ./check_cpu_stats.sh: line 175: [: 90,50,40: integer expression expected CPU STATISTICS OK : user=6.50% system=1.33% iowait=92.17% idle=% nice=0.00% | CpuUser=6.50;CpuSystem=1.33;CpuIoWait=92.17;CpuIdle=;CpuNice=0.00;90,40,30;90,50,40 nagios@cubic:~>
Integre expression expected is one issue and second thing idle is always empty. if I run it like this then i don’t get integer expression but Idle is still empty
nagios@cubic:~> ./check_cpu_stats.sh -w 90 -c 95 -i 2 -n 10 CPU STATISTICS WARNING : user=7.25% system=2.62% iowait=90.12% idle=% nice=0.00% | CpuUser=7.25;CpuSystem=2.62;CpuIoWait=90.12;CpuIdle=;CpuNice=0.00;90;95 nagios@cubic:~>
also you can see that its warning just because IoWait is hitting 90%
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!