[Pkg-nagios-devel] Bug#284897: support for non ascii characters in notifications

sean finney seanius at debian.org
Tue Dec 21 05:01:25 CET 2004


(note, this is my second time posting, i'm now subscribed)

hi there,

i'm one of the debian developers responsible for maintaining the current
nagios packages.  we recently had a bug report from a non-english
speaking user who had characters disappearing from his notifications and
acknowledgements.  

while some of these were directly from a config option on his server
(illegal_macro_chars), he also experienced high ascii characters being
removed as well (including characters such as é, à, etc).  i took a
look through the source code and found the location where this was
being done, which is attached in the excerpt below.

my question is, would it be possible to not strip these high-ascii
characters (either by default or via a config option) or otherwise
provide support for non-ascii charsets?

for the full bug report, please see:

http://bugs.debian.org/284897

any feedback welcome.

also, i see that nagios 2.0 is now out in beta!  keep up the good work!


thanks,
	sean

ps - please keep the cc: in all replies, they will that way be attached
     to the bug report for posterity

----- Forwarded message from sean finney <seanius at debian.org> -----

Date: Thu, 16 Dec 2004 11:58:23 -0500
From: sean finney <seanius at debian.org>
To: alet at unice.fr
Subject: Re: Bug#284897: [Pkg-nagios-devel] Bug#284897: nagios-pgsql: nagios eats single quotes in problem acknowledgement email messages

severity 284897 wishlist
tags 284897 upstream
thanks

hi jerome,

i'll forward this request to the upstream nagios development list for comment.

	sean

On Thu, Dec 16, 2004 at 10:27:30AM +0100, alet at unice.fr wrote:
> Hi,
> 
> On Thu, Dec 16, 2004 at 01:54:53AM -0500, sean finney wrote:
> > 
> > also, in the nagios source, it strips out any ascii characters greater
> > than decimal 166:
> > 
> >                         /* illegal ASCII characters */
> >                         if(ch<32 || ch==127)
> >                                 continue;
> 
> ok
> 
> >                         /* illegal extended ASCII characters */
> >                         if(ch>=166)
> >                                 continue;
> 
> this one sucks big time for non-english people !
> 
> what about using unicode strings ?
<snip>
> the problem is that the string is NOT the result of a command,
> but a comment typed in by the particular nagios admin for the 
> service problem being acknowledged.
> 
> while I understand the security problem which may occur, I think
> that access to nagios should be reserved to trusted people anyway,
> so allowing them to type "unsafe" characters in their own
> native language would be a great bonus...


	sean
-- 



----- End forwarded message -----

-- 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20041220/a133e39f/attachment.sig>


More information about the Developers mailing list