Build precise queries to find exactly what you need
Press ESC to close
1) Line 86 has a bug
Original: elif [$ageproc -gt $warning ]
Corrected: elif [ $ageproc -gt $warning ]
2) Minor improvements I made
a) nbproc
The “comm,args” options should be changed to “comm” only, otherwise the calculated number of processes is always increased by 1.
nbproc=$(ps -A -o comm | grep -w $proc | grep -v $0 | wc -l)
b) Output
The output should always begin with w.g. “CRITICAL: “, “WARNING: ” or “OK: “.
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!