Xymon Mailing List Archive search

Invalid XML

list Jason Jones
Tue, 24 Feb 2015 16:38:35 +0000
Message-Id: <user-a6117947441c@xymon.invalid>

Sorry just realised the list wasn't cc'd on this.

Kind Regards,
Jason.

Jason Jones
Senior Analyst/Developer 
Phone:    +XX (X)XXXX XXXXXX
E-mail:     user-fd0f9ab1f051@xymon.invalid
Hi jc,

As requested:
# cat -A ServerStatus.txt
<ServerStatus>^M$
^I<ServerName>[hostname]</ServerName>^M$
^I<Type>http</Type>^M$
^I<Status>red</Status>^M$
^I<TestFlags></TestFlags>^I^M$
^I<LastChange>Fri Feb 13 17:08:14 2015</LastChange>^I^M$
^I<LogTime>Fri Feb 13 17:11:14 2015</LogTime>^M$
^I<ValidTime>Fri Feb 13 17:41:14 2015</ValidTime>^M$
^I<AckTime>N/A</AckTime>^M$
^I<DisableTime>N/A</DisableTime>^M$
^I<Sender>10.1.1.200</Sender> <Cookie>148280</Cookie>^M$
^I<MessageSummary>^M$
^I^I<![CDATA[status+30 [hostname].http red Fri Feb 13 17:11:14 2015: M-^@^C]]>^M$
^I</MessageSummary>^M$

The HTTP server is running IBM HTTP Server (basically apache modded slightly) so I guess there may be something unexpected in the return, though at the time of this status the server was off so should not have produced anything special.

Kind Regards,
Jason.

Jason Jones
Senior Analyst/Developer 
Phone:    +XX (X)XXXX XXXXXX
E-mail:     user-fd0f9ab1f051@xymon.invalid


From:   "J.C. Cleaver" <user-87556346d4af@xymon.invalid>
To:     "Jason Jones" <user-fd0f9ab1f051@xymon.invalid>
Cc:     xymon at xymon.com
Date:   18/02/2015 15:31
Subject:        Re: [Xymon] Invalid XML


On Wed, February 18, 2015 2:15 am, Jason Jones wrote:
Hi Everyone,

Just thought we'd flag this - on some tests when the status is red the 
XML
being returned has an invalid character.

I've tried (unsuccessfully) checking for release notes to see if this 
has
been addressed previously but couldn't find anything (apologies in 
advance
if it has been fixed previously).

See the XML below - the issue is on the CDATA line just after the €
symbol

<ServerStatus>
        <ServerName>[hostname]</ServerName>
        <Type>http</Type>
        <Status>red</Status>
        <TestFlags></TestFlags>
        <LastChange>Fri Feb 13 17:08:14 2015</LastChange>
        <LogTime>Fri Feb 13 17:11:14 2015</LogTime>
        <ValidTime>Fri Feb 13 17:41:14 2015</ValidTime>
        <AckTime>N/A</AckTime>
        <DisableTime>N/A</DisableTime>
        <Sender>10.1.1.200</Sender> <Cookie>148280</Cookie>
        <MessageSummary>
                <![CDATA[status+30 [hostname].http red Fri Feb 13 
17:11:14
2015: €]]>
        </MessageSummary>
</ServerStatus>

We are currently running 4.3.18. If you need any more information please
let us know.

Kind Regards,
Jason.

Jason Jones
Senior Analyst/Developer

Interesting.

Can you tell us if the errant XML occurs on all xymondx queries coming
back, or just 'http' results? And all http results, or just this
particular one?

The text where the corruption is should be the post-HTTP Status response
code text, if a connection was possible, or a string with certain types of
connection issues (eg, 'No route to host'), if not. It's possible
something is getting through corrupted. Is it a standard http server on
the other end?


Also, can you pipe this through "cat -A"?

Regards,

-jc


This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com


Codel Software Ltd
Unit 1C
Charnwood Park
Bridgend
CF31 3PL

  +44 (0)1656 750 858
  +44 (0)1656 648 649
  user-f3cd0ee20c57@xymon.invalid
  http://www.codelsoftware.com

Follow Us:
  @codel_software at activabsence
  Linkedin
   http://www.activabsence.co.uk

Registered in Wales No. 5838660

DELIVERING QUALITY: At Codel Software we are committed to delivering quality software, services and client interactions. We have demonstrated this through quality audits and customer satisfaction. Codel Software is an ISO 9001:2008 certified company.

CONFIDENTIALITY NOTICE: This message is confidential and for the use only of the intended recipient.  If you receive the message in error you are not entitled to disseminate, copy or use the contents in any way. In such circumstances please forward the message back to the sender.

WARNING :While Codel Software takes steps to prevent computer viruses from being transmitted via electronic mail attachments we cannot guarantee that attachments do not contain computer virus code. You are therefore strongly advised to undertake anti virus checks prior to accessing the attachment to this electronic mail.  Codel Software grants no warranties regarding performance use or quality of any attachment and undertakes no liability for loss or damage howsoever caused.

If you do not want to receive similar communications by e-mail from Codel Software, please reply to this e-mail with 'remove' in the subject line.
Help the environment –please don't print this email unless you really need to!


Codel Software Ltd
Unit 1C
Charnwood Park
Bridgend
CF31 3PL

  +44 (0)1656 750 858
  +44 (0)1656 648 649
  user-f3cd0ee20c57@xymon.invalid
  http://www.codelsoftware.com

Follow Us:
  @codel_software at activabsence
  Linkedin
   http://www.activabsence.co.uk

Registered in Wales No. 5838660

DELIVERING QUALITY: At Codel Software we are committed to delivering quality software, services and client interactions. We have demonstrated this through quality audits and customer satisfaction. Codel Software is an ISO 9001:2008 certified company.

CONFIDENTIALITY NOTICE: This message is confidential and for the use only of the intended recipient.  If you receive the message in error you are not entitled to disseminate, copy or use the contents in any way. In such circumstances please forward the message back to the sender.

WARNING :While Codel Software takes steps to prevent computer viruses from being transmitted via electronic mail attachments we cannot guarantee that attachments do not contain computer virus code. You are therefore strongly advised to undertake anti virus checks prior to accessing the attachment to this electronic mail.  Codel Software grants no warranties regarding performance use or quality of any attachment and undertakes no liability for loss or damage howsoever caused.

If you do not want to receive similar communications by e-mail from Codel Software, please reply to this e-mail with 'remove' in the subject line.
Help the environment –please don't print this email unless you really need to!


This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com