Hi,<div><br></div><div>I tried executing the below script, but it doesnot collect any info in those variables..</div><div><br></div><div><div><br></div><div><br></div><div>available information</div><div><br></div><div> BB is</div>
<div> BBCOLORLEVEL is</div><div> ACKCODE is</div><div> RCPT is</div><div> BBHOSTNAME is</div><div> MACHIP is</div><div> BBSVCNAME is</div><div> BBSVCNUM is</div><div> BBHOSTSVC is</div><div> BBHOSTSVCCOMMAS is</div><div> BBNUMERIC is</div>
<div> RECOVERED is</div><div> DOWNSECS is</div><div> DOWNSECSMSG is</div><div> BBALPHAMSG is</div><div>~</div><div>~</div><div><br></div><br><div class="gmail_quote">On Tue, Feb 21, 2012 at 2:02 AM, Elizabeth Schwartz <span dir="ltr"><<a href="mailto:betsy.schwartz@gmail.com">betsy.schwartz@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Can't tell if the problem's with xymon or your grep. Try using a debug<br>
script something like the below, just to see what you're getting in<br>
all the variables.<br>
<br>
cat /usr/local/scripts/mailxy<br>
<br>
<br>
#!/bin/bash<br>
echo  $BBALPHAMSG  >> /tmp/msg.$$<br>
echo " " >>/tmp/msg.$$<br>
echo "available information" >> /tmp/msg.$$<br>
echo " " >>/tmp/msg.$$<br>
echo " BB is $BB " >> /tmp/msg.$$<br>
echo " BBCOLORLEVEL is $BBCOLORLEVEL " >> /tmp/msg.$$<br>
echo " ACKCODE is $ACKCODE " >> /tmp/msg.$$<br>
echo " RCPT is $RCPT " >> /tmp/msg.$$<br>
echo " BBHOSTNAME is $BBHOSTNAME " >> /tmp/msg.$$<br>
echo " MACHIP is $MACHIP " >> /tmp/msg.$$<br>
echo " BBSVCNAME is $BBSVCNAME " >> /tmp/msg.$$<br>
echo " BBSVCNUM is $BBSVCNUM " >> /tmp/msg.$$<br>
echo " BBHOSTSVC is $BBHOSTSVC   " >> /tmp/msg.$$<br>
echo " BBHOSTSVCCOMMAS is $BBHOSTSVCCOMMAS " >> /tmp/msg.$$<br>
echo " BBNUMERIC is $BBNUMERIC   " >> /tmp/msg.$$<br>
echo " RECOVERED is $RECOVERED   " >> /tmp/msg.$$<br>
echo " DOWNSECS is $DOWNSECS     " >> /tmp/msg.$$<br>
echo " DOWNSECSMSG is $DOWNSECSMSG " >> /tmp/msg.$$<br>
echo " BBALPHAMSG is $BBALPHAMSG " >> /tmp/msg.$$<br>
<br>
<br>
/bin/mailx -s "$BBHOSTSVC $BBCOLORLEVEL" $RCPT < /tmp/msg.$$<br>
rm /tmp/msg.$$<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Thanks & Regards<br>Sonal kumar N C<br><br>
</div>