shell script
hello,
have any one some shell scripts which allow me to manage services like:http,pop3,smtp... and display "ok" if it works good, warning if the execution of the service is slow, and critical if the service is stopped. help please thanks |
Quote:
Also, there are several process monitoring tools you can Google for. http://www.yolinux.com/HOWTO/Process-Monitor-HOWTO.html |
lamou*;
This is starting to look like a series of homework questions....Please tell us more about what you are doing. For example, taking a class, following a tutorial, etc. Also, please be sure to follow up in your previous threads---Including the one I just posted to a few minutes ago. |
shell script
hello
I have this script, but it doesn't give me all information about the bind9 service ***************************** #!/bin/bash RPORTS=$(netstat -tulpn | grep -vE '^Active|Proto' | grep 'LISTEN' | awk '{ print $4}' | cut -d: -f2 | sed '/^$/d' | sort -u) for r in $RPORTS do if [ $r -eq 53 ] then echo "YES" sendmail=1 exit 0 fi done echo "NO" thanks |
All times are GMT -5. The time now is 07:16 AM. |