Ask a Question related to Sun Solaris, Design and Development.
-
stefan #1
Re: scripts to check /var/adm/messages
"Joe Philip" <joe.philip@verizon.net> wrote in message news:<WLfUa.970$AO6.918@nwrdny02.gnilink.net>...
> I am looking for scripts to check /var/adm/messages for errors. Can someone
> point to me where I could get them?
I use something like that:
(...)
SENDMAIL=no
if [ -f /var/adm/messages ]
then
# Suchstring 1
if cat /var/adm/messages | grep -v 'Idle timeout
exceeded' \
| grep -i 'WARNING' >
/dev/null 2>&1
then
SENDMAIL=yes
fi
# Suchstring 2
if cat /var/adm/messages | grep -v 'auth.debug' \
| grep -v 'auth.crit' \
| grep -i 'failed' >
/dev/null 2>&1
then
SENDMAIL=yes
fi
# Suchstring 3
if cat /var/adm/messages | grep 'NOTICE' >
/dev/null 2>&1
then
SENDMAIL=yes
fi
# Suchstring 4
if cat /var/adm/messages | grep -i 'offline' >
/dev/null 2>&1
then
SENDMAIL=yes
fi
if [ "$SENDMAIL" = yes ]
then
echo "
" >> /var/log/tmp/bit_maint.hourly$$
echo "Zeit : `date`
" >> /var/log/tmp/bit_maint.hourly$$
echo "Rechner : `hostname`
" >> /var/log/tmp/bit_maint.hourly$$
echo "Script :
/admin/bin/bit_maint.hourly " >> /var/log/tmp/bit_maint.hourly$$
echo "Abschnitt : check /var/adm/messages
" >> /var/log/tmp/bit_maint.hourly$$
echo "Ausgabe :
" >> /var/log/tmp/bit_maint.hourly$$
echo "
" >> /var/log/tmp/bit_maint.hourly$$
cat /var/adm/messagesfi>> /var/log/tmp/bit_maint.hourly$$ 2>&1
(...)
I rotate /var/adm/messages on a daily base.
stefan
stefan Guest
-
Turning off Check in / Check out feature
How can I turn off the check in / check out feature? Can't seem to find it in the Contribute HELP. Thanks! -
CS: Scripts do not appear in Scripts menu
I have several utility AppleScripts that I created for Illustrator 10. I'd like to use these in CS, and they work correctly when I choose "Browse"... -
Check to see if Check Boxes are Checked
How do I check to see if a checked box is check on the following page? This is what I have. What am I doing wrong? <%If... -
Security tool to check CGI scripts for security holes/vulnerabities
I'm searching for a good security tool that I can use regularly to scan all the programs/scripts in my web servers cgi-bin directory to identify... -
scripts that control other scripts
Is there any behaviour script that when attached to a sprite can control the functionality of any other scripts attached to that sprite? I want to...



Reply With Quote

