2 thoughts on “Health script version 0.008 released”
Nick Rosenberg
Great script although I found a small problem with the way you pull out the ntp servers from the ntp.conf using tr. A better way is to use sed so the line becomes:
my_ntp_server=`grep ^server /etc/ntp.conf|sed -e ‘s/^server *//’`
Additionally changing the check for ssh rootlogin to ignore comments is a bit cleaner (at least in my environment)
Great script although I found a small problem with the way you pull out the ntp servers from the ntp.conf using tr. A better way is to use sed so the line becomes:
my_ntp_server=`grep ^server /etc/ntp.conf|sed -e ‘s/^server *//’`
Additionally changing the check for ssh rootlogin to ignore comments is a bit cleaner (at least in my environment)
my_ssh_rootlogin=`grep PermitRootLogin /etc/ssh/sshd_config | grep -v ‘#’`
Thanks
Nick
Thanks for the comment i’ll update the script ASAP…..