Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Paging

Status
Not open for further replies.

dvknn

IS-IT--Management
Mar 11, 2003
94
US
Is paging possible? if so, could anyone show me how it is done??

Thanks,
 
Yeah...Sorry..

Here's the script that I have..I need to PAGE (in the function Logger) our support as well as mail...(I got the mail part..)

#!/usr/bin/ksh
. $HOME/.profile
cd /opt/TradeOne/sandbox/TradeXpress/failover
pwd

MSG1='UserProfileServer IS DOWN'
TMP=/tmp/t1AppCheck

function Logger
{
echo 'T1 critical '>>$TMP
echo $MSG1 >>$TMP
hostname>>$TMP
echo ' '>>$TMP

mail abc@yahoo.com< $TMP
rm $TMP
}

if [[ -a appcheck.log ]]
then
rm appcheck.log
appcheck ups.cfg
fi

if [[ -a appcheck.log ]]
then
APPCHECK_STRING=`tail -1 appcheck.log | grep DOWN`
if test &quot;$APPCHECK_STRING&quot; != &quot;&quot;
then
echo $MSG1
Logger
exit 1
fi
else
print &quot;the file appcheck.log doesn't exist&quot;
fi


Thanks
 
Hi:

First, speak with the vendor providing your pager equipment. They may be able to provide a unix solution.

Probably they can't, but most of the pager vendors now support email in some form.

With proper setup, Unix can support email, so you could potentially send email to anybody using mail or mailx.

But now you're getting into sendmail configuration and mail server setup - something NOT in my area of area of expertise.

Regards,


Ed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top