Xymon Mailing List Archive search

xymon blank alert emails

8 messages in this thread

list Sonal Kumar · Mon, 20 Feb 2012 19:33:07 +0530 ·
Hi Team.

I am writing to regarding an facing issue which we are facing after
configuring xymon
XYMON is working fine and alerts are getting displayed , but the same are
being sent in email but subject, body is blank as given in end of email
I have given alerts.cfg as below.
• *
*HOST=* SERVICE=ssh,disk,msg,sap_r3,oratns COLOR=red DURATION>2m*
*SCRIPT /home/sapxymon/server/etc/custom_alert.sh REPEAT=1m*

.
Wheres the custom_alerts.sh give below syntax error.

#-----------------------------------------------------
#!/bin/sh

BBALPHAMSG=`echo "$BBALPHAMSG" |
/home/sapxymon/server/ext/custom_grep.pl`;export
BBALPHAMSG

if [ $RECOVERED -eq 1 ]
        then
        RECOVERED="recovered"
        else
        RECOVERED=""
fi

#echo "${BBALPHAMSG:0:9999}" > /tmp/manalerts.txt
echo "${BBALPHAMSG:0:9999}" | mail -s "$BBHOSTNAME $BBSVCNAME -
$BBCOLORLEVEL $ACKCODE $RECOVERED $DOWNSECSMSG"user-40212399ff4e@xymon.invalid


#-----------------------------------------------------
#!/usr/bin/perl

# searching for lines which has "&red"

while (<>) {

@matches=/&red .*\s/ig;

foreach $_ (@matches) {
        s/<.*?>//ig; # removing all the html tags
        print "$_ ";
        }

}
#-----------------------------------------------------

Could you please suggest what could be the issue?

*---------- Forwarded message ----------
From: SAP-XY-MON <user-7f5e03420dc1@xymon.invalid>
Date: Mon, Feb 20, 2012 at 7:00 PM
Subject: -
To: user-40212399ff4e@xymon.invalid


• --
Thanks & Regards
Sonal kumar N C
list Elizabeth Schwartz · Mon, 20 Feb 2012 15:32:00 -0500 ·
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.$$
list Sonal Kumar · Wed, 22 Feb 2012 00:03:11 +0530 ·
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 <
quoted from 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
list Elizabeth Schwartz · Fri, 24 Feb 2012 16:27:12 -0500 ·
How are you calling it in alerts.cfg?
and what version of xymon?
quoted from Sonal Kumar

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
list Don Kuhlman · Fri, 24 Feb 2012 21:30:17 +0000 ·
Hi. Just joined here.  Trying to get our new Xymon Unix server to show the
basic parameters from monitoring like CPU, Disk, Memory.

It's only showing Conn, http, info, and trends.

Regards,

Don K
list Bruce White · Fri, 24 Feb 2012 18:01:11 -0600 ·
Make sure the client is running on our Xymon server.  The client
provides all those basics.  Make sure the client is configured to be
launched in tasks.cfg file.  

If the client is running but you don't see any updates, then check under
the  "reports" menu option and see if it is reporting as a "ghost
client".  If it is on the "Ghost client" report than you need to make
sure the name listed in the report matches the name of your server in
your hosts.cfg file.  

Hope that helps,
Bruce


 
Bruce White
Senior Enterprise Systems Engineer | Phone: X-XXX-XXX-XXXX | Fax: XXX-XXX-XXXX | user-58f975e8bf9d@xymon.invalid | http://www.fellowes.com/
 
 
 
Disclaimer: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. Fellowes, Inc.
 
-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf
Of Don Kuhlman
Sent: Friday, February 24, 2012 3:30 PM
To: xymon at xymon.com
Subject: [Xymon] How to reset or get Xymon web pages to show CPU,
DISK,Mem etc
quoted from Don Kuhlman

Hi. Just joined here.  Trying to get our new Xymon Unix server to show
the basic parameters from monitoring like CPU, Disk, Memory.

It's only showing Conn, http, info, and trends.

Regards,

Don K
list Sonal Kumar · Sat, 25 Feb 2012 05:59:39 +0530 ·
Hi,

We are giving the below script command in alerts.cfg

HOST=* SERVICE=ssh,disk,msg,sap_r3,oratns COLOR=red DURATION>2m
SCRIPT /home/sapxymon/server/etc/custom_alert.sh REPEAT=1m
#-----------------------------------------------------

and again custom_alert.sh runs the custom_grep.pl
quoted from Sonal Kumar

#-----------------------------------------------------
#!/bin/sh

BBALPHAMSG=`echo "$BBALPHAMSG" |
/home/sapxymon/server/ext/custom_grep.pl`;export
BBALPHAMSG

if [ $RECOVERED -eq 1 ]
        then
        RECOVERED="recovered"
       else
        RECOVERED=""
fi

echo "${BBALPHAMSG:0:9999}" | mail -s "$BBHOSTNAME $BBSVCNAME -

$BBCOLORLEVEL $ACKCODE $RECOVERED $DOWNSECSMSG" user-40212399ff4e@xymon.invalid

We are using  Version 4.3.2

On Sat, Feb 25, 2012 at 2:57 AM, Elizabeth Schwartz <
quoted from Elizabeth Schwartz
user-c61747246f66@xymon.invalid> wrote:
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
-- 
Thanks & Regards
Sonal kumar N C
list Michael Baydoun · Wed, 4 Apr 2012 14:47:30 -0400 ·
Is your /tmp filesystem full by chance?
quoted from Sonal Kumar

On Fri, Feb 24, 2012 at 7:29 PM, sonal kumar <user-40212399ff4e@xymon.invalid> wrote:
Hi,

We are giving the below script command in alerts.cfg

HOST=* SERVICE=ssh,disk,msg,sap_r3,oratns COLOR=red DURATION>2m
SCRIPT /home/sapxymon/server/etc/custom_alert.sh REPEAT=1m
#-----------------------------------------------------

and again custom_alert.sh runs the custom_grep.pl

#-----------------------------------------------------
#!/bin/sh

BBALPHAMSG=`echo "$BBALPHAMSG" | /home/sapxymon/server/ext/custom_grep.pl`;export
BBALPHAMSG

if [ $RECOVERED -eq 1 ]
        then
        RECOVERED="recovered"
       else
        RECOVERED=""
fi

echo "${BBALPHAMSG:0:9999}" | mail -s "$BBHOSTNAME $BBSVCNAME -
$BBCOLORLEVEL $ACKCODE $RECOVERED $DOWNSECSMSG" user-40212399ff4e@xymon.invalid

We are using  Version 4.3.2

On Sat, Feb 25, 2012 at 2:57 AM, Elizabeth Schwartz <
user-c61747246f66@xymon.invalid> wrote:
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
--
Thanks & Regards
Sonal kumar N C