Strange characters in plugin output when using perl embedded with 3.0a5

cristhiano at click21.com.br cristhiano at click21.com.br
Fri Jul 27 19:37:28 CEST 2007


Hi,

I have debian etch, nagios 3.0a5, apache2 2.2.3-4, perl 5.8.8-7, gcc 4.1.2.

I make the plugin:

================

#!/usr/bin/perl -w

use strict;

print "123456789|123456789";

exit 0;

==================

In epn_leave-msgs.log file, output is correct, but in web interface, show:

Status Information: H&#-18;'56789
Performace Data: 123456789

Change plugin to:

===================
#!/usr/bin/perl -w

use strict;

#add four spaces in start
print "    123456789|123456789";

exit 0;

=====================

In web show:

Status Information: &#-40;&#-61;-123456789
Performace Data: 123456789

Start is random. And, what character is negative in ASCII/HTML table ?
(  is  (
but
&#-40; is ???????????

Without perl embedded, all correct.

Thanks !




___________________________________________________________________________________
Para fazer uma ligação DDD pra perto ou pra longe, faz um 21. A Embratel tem
tarifas muito baratas esperando por você. Aproveite!


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/




More information about the Developers mailing list