Build precise queries to find exactly what you need
Press ESC to close
Join our next live webinar: “Advanced Nagios Monitoring Techniques” – Register Now
@neozaga
Favorites0
Views
Projects0
Hi, Made this improvment line 73: nbproc=$(ps -A -o cmd | grep -w $proc | grep -v grep | grep -v $0 | wc -l) so that you can search the full command line and not to find itself. (I know grep -v grep is ugly)
Reviewed 9 years ago