Xymon Mailing List Archive search

display multiple line status

5 messages in this thread

list P Yeung · Thu, 9 May 2013 17:02:21 -0700 ·
I am using xymon 4.3.11.

Using the example shown in "man xymon",
$XYMON $XYMSRV "status www,foo,com.http green `date` Web OK"
I can see the status displayed as a single line in the xymon server.

    Thu May 9 16:52:07 PDT 2013 Web OK

I need to display multiple lines to the xymon server, with the data in the
command line rather than a file.  I tried,
$XYMON $XYMSRV "status www,foo,com.http green `date` Web OK\n second
line"
But the status is displayed in one line instead of two in the xymon server

     Thu May 9 16:52:47 PDT 2013 Web OK\n second line

What escape character should I use to specify new line?

Thanks
P Yeung
list Jeremy Laidman · Fri, 10 May 2013 10:19:22 +1000 ·
I don't think the xymon command will do any escaping.  Instead you need to
pass the newline literally.  Why is it you can't use a file?  Knowing why
you're constrained would make it easier to propose a suitable solution.

You could do something like this:

$XYMON $XYMSRV "status www,foo,com.http green `date` Web OK
second line"

Or to make it more readable:

NL='
' # newline
$XYMON $XYMSRV "status www,foo,com.http green `date` Web OK${NL}second line"

Or maybe this would work for you:

printf "status www,foo,com.http green `date` Web OK\nsecond line\n" | $XYMON
$XYMSRV "@"

Or of you don't like to use printf:

{ echo "status www,foo,com.http green `date` Web OK"; echo "second line\n";
} | $XYMON $XYMSRV "@"

Cheers
Jeremy
quoted from P Yeung


On 10 May 2013 10:02, P Yeung <user-087b596b835c@xymon.invalid> wrote:
I am using xymon 4.3.11.

Using the example shown in "man xymon",
$XYMON $XYMSRV "status www,foo,com.http green `date` Web OK"
I can see the status displayed as a single line in the xymon server.

    Thu May 9 16:52:07 PDT 2013 Web OK

I need to display multiple lines to the xymon server, with the data in the
command line rather than a file.  I tried,
$XYMON $XYMSRV "status www,foo,com.http green `date` Web OK\n second
line"
But the status is displayed in one line instead of two in the xymon server

     Thu May 9 16:52:47 PDT 2013 Web OK\n second line

What escape character should I use to specify new line?

Thanks
P Yeung

list Ralph Mitchell · Thu, 9 May 2013 20:25:34 -0400 ·
Just put in newlines, like this:

$XYMON $XYMSRV "status www,for,com.http `date`

Web server is OK
Another line kind of useful information."

Everything between the double-quotes is sent as-is. Works for me all the
time.

Ralph Mitchell
quoted from P Yeung
 On May 9, 2013 8:03 PM, "P Yeung" <user-087b596b835c@xymon.invalid> wrote:
I am using xymon 4.3.11.

Using the example shown in "man xymon",
$XYMON $XYMSRV "status www,foo,com.http green `date` Web OK"
I can see the status displayed as a single line in the xymon server.

    Thu May 9 16:52:07 PDT 2013 Web OK

I need to display multiple lines to the xymon server, with the data in the
command line rather than a file.  I tried,
$XYMON $XYMSRV "status www,foo,com.http green `date` Web OK\n second
line"
But the status is displayed in one line instead of two in the xymon server

     Thu May 9 16:52:47 PDT 2013 Web OK\n second line

What escape character should I use to specify new line?

Thanks
P Yeung

list Srinivas Dasari · Fri, 10 May 2013 06:03:26 +0000 ·
Hi , 

I have one requirement , I have few Website links of our project application , n I want to check the health of then servers for periodically and should b notified by mail for every 12 hours to out team mail I'd ,

Can you people help me with a document or any procedure , 
quoted from Ralph Mitchell
From: Xymon [xymon-bounces at xymon.com] on behalf of Ralph Mitchell [user-00a5e44c48c0@xymon.invalid]
Sent: Friday, May 10, 2013 5:55 AM
To: P Yeung
Cc: xymon at xymon.com
Subject: Re: [Xymon] display multiple line status

Just put in newlines, like this:

$XYMON $XYMSRV "status www,for,com.http `date`

Web server is OK
Another line kind of useful information."

Everything between the double-quotes is sent as-is. Works for me all the time.

Ralph Mitchell

On May 9, 2013 8:03 PM, "P Yeung" <user-087b596b835c@xymon.invalid<mailto:user-087b596b835c@xymon.invalid>> wrote:
I am using xymon 4.3.11.

Using the example shown in "man xymon",
$XYMON $XYMSRV "status www,foo,com.http green `date` Web OK"
I can see the status displayed as a single line in the xymon server.

    Thu May 9 16:52:07 PDT 2013 Web OK

I need to display multiple lines to the xymon server, with the data in the command line rather than a file.  I tried,
$XYMON $XYMSRV "status www,foo,com.http green `date` Web OK\n second line"
But the status is displayed in one line instead of two in the xymon server

     Thu May 9 16:52:47 PDT 2013 Web OK\n second line

What escape character should I use to specify new line?

Thanks
P Yeung


Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 

www.wipro.com
list Ryan Novosielski · Fri, 10 May 2013 02:19:54 -0400 ·
Do not thread hijack. Start a new message if you have a question. 
quoted from Srinivas Dasari


----- Original Message -----
From: user-07fe634f7333@xymon.invalid [mailto:user-07fe634f7333@xymon.invalid]
Sent: Friday, May 10, 2013 02:03 AM
To: user-00a5e44c48c0@xymon.invalid <user-00a5e44c48c0@xymon.invalid>; user-087b596b835c@xymon.invalid <user-087b596b835c@xymon.invalid>
Cc: xymon at xymon.com <xymon at xymon.com>
Subject: Re: [Xymon] display multiple line status

Hi , 

I have one requirement , I have few Website links of our project application , n I want to check the health of then servers for periodically and should b notified by mail for every 12 hours to out team mail I'd ,

Can you people help me with a document or any procedure , 
From: Xymon [xymon-bounces at xymon.com] on behalf of Ralph Mitchell [user-00a5e44c48c0@xymon.invalid]
Sent: Friday, May 10, 2013 5:55 AM
To: P Yeung
Cc: xymon at xymon.com
Subject: Re: [Xymon] display multiple line status

Just put in newlines, like this:

$XYMON $XYMSRV "status www,for,com.http `date`

Web server is OK
Another line kind of useful information."

Everything between the double-quotes is sent as-is. Works for me all the time.

Ralph Mitchell

On May 9, 2013 8:03 PM, "P Yeung" <user-087b596b835c@xymon.invalid<mailto:user-087b596b835c@xymon.invalid>> wrote:
I am using xymon 4.3.11.

Using the example shown in "man xymon",
$XYMON $XYMSRV "status www,foo,com.http green `date` Web OK"
I can see the status displayed as a single line in the xymon server.

    Thu May 9 16:52:07 PDT 2013 Web OK

I need to display multiple lines to the xymon server, with the data in the command line rather than a file.  I tried,
$XYMON $XYMSRV "status www,foo,com.http green `date` Web OK\n second line"
But the status is displayed in one line instead of two in the xymon server

     Thu May 9 16:52:47 PDT 2013 Web OK\n second line

What escape character should I use to specify new line?

Thanks
P Yeung


Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 

www.wipro.com