Bug#284897: [Pkg-nagios-devel] Bug#284897: nagios-pgsql: nagios eats single quotes in problem acknowledgement email messages

sean finney sean finney <seanius@debian.org>, 284897@bugs.debian.org
Thu, 16 Dec 2004 01:54:53 -0500


--7AUc2qLy4jB3hD7Z
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

some research later...

On Thu, Dec 09, 2004 at 11:12:48PM +0100, alet@unice.fr wrote:
> I believe this is the safety check since other characters are eaten :
>=20
>         $ ` '
>        =20
> at least
>=20
> interestingly, @ and ? are NOT eaten !

take a look at what i found:

/etc/nagios/nagios.cfg:illegal_macro_output_chars=3D`~$&|'"<>

also, in the nagios source, it strips out any ascii characters greater
than decimal 166:

                        /* illegal ASCII characters */
                        if(ch<32 || ch=3D=3D127)
                                continue;

                        /* illegal extended ASCII characters */
                        if(ch>=3D166)
                                continue;

                        /* illegal user-specified characters */
                        illegal_char=3DFALSE;
                        if(illegal_output_chars!=3DNULL){
                                for(z=3D0;illegal_output_chars[z]!=3D'\x0';=
z++){
                                        if(ch=3D=3D(int)illegal_output_char=
s[z]){
                                                illegal_char=3DTRUE;
                                                break;
                                                }
                                        }
                                }

so this is in fact by design.  can you verify that changing
the mentioned variable gets it to stop eating those special chars?

if this does solve the initial problem i'll lower the severity of
this to "wishlist" and forward a request upstream to the nagios folks
asking to provide a way to allow the high ascii chars.


	sean


--=20

--7AUc2qLy4jB3hD7Z
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBwTE9ynjLPm522B0RAomHAJ9HhW0Ic8YU6ITKif/XQwI1gEHknwCeO8hl
ElW6wNn9NcyJqKrQDc5EaJw=
=M7Ww
-----END PGP SIGNATURE-----

--7AUc2qLy4jB3hD7Z--