Xymon Mailing List Archive search

xymon blank alert emails

list Elizabeth Schwartz
Fri, 24 Feb 2012 16:27:12 -0500
Message-Id: <user-0953017e4385@xymon.invalid>

How are you calling it in alerts.cfg?
and what version of xymon?

On Tue, Feb 21, 2012 at 1:33 PM, sonal kumar <user-40212399ff4e@xymon.invalid> wrote:
Hi,

I tried executing the below script, but it doesnot collect any info in those
variables..


available information

 BB is
 BBCOLORLEVEL is
 ACKCODE is
 RCPT is
 BBHOSTNAME is
 MACHIP is
 BBSVCNAME is
 BBSVCNUM is
 BBHOSTSVC is
 BBHOSTSVCCOMMAS is
 BBNUMERIC is
 RECOVERED is
 DOWNSECS is
 DOWNSECSMSG is
 BBALPHAMSG is
~
~


On Tue, Feb 21, 2012 at 2:02 AM, Elizabeth Schwartz
<user-c61747246f66@xymon.invalid> wrote:
Can't tell if the problem's with xymon or your grep. Try using a debug
script something like the below, just to see what you're getting in
all the variables.

cat /usr/local/scripts/mailxy


#!/bin/bash
echo  $BBALPHAMSG  >> /tmp/msg.$$
echo " " >>/tmp/msg.$$
echo "available information" >> /tmp/msg.$$
echo " " >>/tmp/msg.$$
echo " BB is $BB " >> /tmp/msg.$$
echo " BBCOLORLEVEL is $BBCOLORLEVEL " >> /tmp/msg.$$
echo " ACKCODE is $ACKCODE " >> /tmp/msg.$$
echo " RCPT is $RCPT " >> /tmp/msg.$$
echo " BBHOSTNAME is $BBHOSTNAME " >> /tmp/msg.$$
echo " MACHIP is $MACHIP " >> /tmp/msg.$$
echo " BBSVCNAME is $BBSVCNAME " >> /tmp/msg.$$
echo " BBSVCNUM is $BBSVCNUM " >> /tmp/msg.$$
echo " BBHOSTSVC is $BBHOSTSVC   " >> /tmp/msg.$$
echo " BBHOSTSVCCOMMAS is $BBHOSTSVCCOMMAS " >> /tmp/msg.$$
echo " BBNUMERIC is $BBNUMERIC   " >> /tmp/msg.$$
echo " RECOVERED is $RECOVERED   " >> /tmp/msg.$$
echo " DOWNSECS is $DOWNSECS     " >> /tmp/msg.$$
echo " DOWNSECSMSG is $DOWNSECSMSG " >> /tmp/msg.$$
echo " BBALPHAMSG is $BBALPHAMSG " >> /tmp/msg.$$


/bin/mailx -s "$BBHOSTSVC $BBCOLORLEVEL" $RCPT < /tmp/msg.$$
rm /tmp/msg.$$

--
Thanks & Regards
Sonal kumar N C