Problem with authentication

123 views
Skip to first unread message

Esteban Monge

unread,
May 16, 2012, 3:16:43 PM5/16/12
to th...@googlegroups.com
Hello I have installed Thruk 1.30 in Debian Squeeze with Nagios 3.3.1

When I try access Hosts I received the next messages in Apache's error.log
[Wed May 16 14:14:58 2012] [error] [client 10.6.121.180] client used wrong authentication scheme: /thruk/cgi-bin/statusmap.cgi, referer: https://10.7.11.182/thruk/side.html
[Wed May 16 14:15:00 2012] [error] [client 10.6.121.180] client used wrong authentication scheme: /thruk/cgi-bin/status.cgi, referer: https://10.7.11.182/thruk/side.html

What is wrong?


--
http://www.nuevaeralatam.com
Linux user number 478378
Linux machine number 386687
Tec. Esteban Monge Marín
Tel: (506) 8379-3562

“No habrá manera de desarrollarnos y salir de
la pobreza mientras los pocos negocios
grandes de nuestro medio se entreguen a las
economías foráneas y nosotros nos
quedemos con solo negocios de pobre,
mientras en vez de ser propietarios de nuestro
propio país nos convirtamos en un ejército de
empleados del exterior”
José Figueres Ferrer, 1952.

Esteban Monge

unread,
May 16, 2012, 3:32:08 PM5/16/12
to th...@googlegroups.com
I have solved the problem of authentication, but now I have the next error:

[2012/05/16 14:29:27][opencontrolit][ERROR][Thruk.Controller.error] internal server error
[2012/05/16 14:29:27][opencontrolit][ERROR][Thruk.Controller.error] on page: https://10.7.11.182/thruk/cgi-bin/status.cgi?hostgroup=all&style=hostdetail
[2012/05/16 14:29:49][opencontrolit][ERROR][Thruk.Controller.Root] Caught exception in Thruk::Controller::status->index "ERROR missing low surrogate character in surrogate pair, at character offset 5528 (before " de equipo producto ...") at /usr/lib/thruk/perl5/Monitoring/Livestatus.pm line 909.
 in text: '

Sven Nierlein

unread,
May 19, 2012, 10:38:05 AM5/19/12
to th...@googlegroups.com
On 5/16/12 21:32, Esteban Monge wrote:
> I have solved the problem of authentication, but now I have the next error:
>
> [2012/05/16 14:29:27][opencontrolit][ERROR][Thruk.Controller.error] internal server error
> [2012/05/16 14:29:27][opencontrolit][ERROR][Thruk.Controller.error] on page: https://10.7.11.182/thruk/cgi-bin/status.cgi?hostgroup=all&style=hostdetail <https://10.7.11.182/thruk/cgi-bin/status.cgi?hostgroup=all&style=hostdetail>
> [2012/05/16 14:29:49][opencontrolit][ERROR][Thruk.Controller.Root] Caught exception in Thruk::Controller::status->index "ERROR missing low surrogate character in surrogate pair, at character offset 5528 (before " de equipo producto ...") at /usr/lib/thruk/perl5/Monitoring/Livestatus.pm line 909.
> in text: '


Seems like your installation is broken. Google says the error message is related to the JSON::PP module, but Thruk
uses JSON::XS only. So somehow either your perl or your perl modules are broken. How did you install Thruk? Did
you use packages?

Sven

Esteban Monge

unread,
May 19, 2012, 11:33:39 AM5/19/12
to th...@googlegroups.com
2012/5/19 Sven Nierlein <sv...@nierlein.de>

Thanks for the help, I installed Thruk 1.30 from deb package.

My Perl packages:

ii  libalgorithm-diff-perl                     1.19.02-2                    module to find differences between files
ii  libalgorithm-diff-xs-perl                  0.04-1                       module to find differences between files (XS accelerated)
ii  libalgorithm-merge-perl                    0.08-2                       Perl module for three-way merge of textual data
ii  libdbd-mysql-perl                          4.016-1                      Perl5 database interface to the MySQL database
ii  libdbi-perl                                1.612-1                      Perl Database Interface (DBI)
ii  libdpkg-perl                               1.16.1.2~bpo60+1             Dpkg perl modules
ii  liberror-perl                              0.17-1                       Perl module for error/exception handling in an OO-ish way
ii  libfont-afm-perl                           1.20-1                       Font::AFM - Interface to Adobe Font Metrics files
ii  libfont-freetype-perl                      0.03-1                       Read font files and render glyphs from Perl using FreeType2
ii  libhtml-format-perl                        2.04-2                       format HTML syntax trees into text, PostScript or RTF
ii  libhtml-parser-perl                        3.66-1                       collection of modules that parse HTML text documents
ii  libhtml-tagset-perl                        3.20-2                       Data tables pertaining to HTML
ii  libhtml-template-perl                      2.9-2                        module for using HTML Templates with Perl
ii  libhtml-tree-perl                          3.23-2                       Perl module to represent and create HTML syntax trees
ii  libio-socket-inet6-perl                    2.65-1.1                     Object interface for AF_INET6 domain sockets
ii  libipc-shareable-perl                      0.60-8                       module to access IPC shared memory segments through perl
ii  liblocale-gettext-perl                     1.05-6                       Using libc functions for internationalization in Perl
ii  liblog-dispatch-perl                       2.29-1~bpo60+1               message dispatcher to multiple Log::Dispatch::* objects
ii  liblog-log4perl-perl                       1.29-1                       A Perl port of the widely popular log4j logging package.
ii  libmail-sendmail-perl                      0.79.16-1                    Send email from a perl script
ii  libmailtools-perl                          2.06-1                       Manipulate email in perl programs
ii  libnet-daemon-perl                         0.43-1                       Perl module for building portable Perl daemons easily
ii  libparams-validate-perl                    0.93-1                       Perl module to validate parameters to Perl method/function calls
ii  libperl5.10                                5.10.1-17squeeze3            shared Perl library
ii  libplrpc-perl                              0.2020-2                     Perl extensions for writing PlRPC servers and clients
ii  librrds-perl                               1.4.3-1                      time-series data storage and display system (Perl interface, shared)
ii  librrdtool-oo-perl                         0.31-1                       object-oriented interface to RRDTool
ii  libsnmp-perl                               5.4.3~dfsg-2                 SNMP (Simple Network Management Protocol) Perl5 support
ii  libsnmp-session-perl                       1.13-1                       Perl support for accessing SNMP-aware devices
ii  libsocket6-perl                            0.23-1                       Perl extensions for IPv6
ii  libsys-hostname-long-perl                  1.4-2                        Figure out the long (fully-qualified) hostname
ii  libtext-charwidth-perl                     0.04-6                       get display widths of characters on the terminal
ii  libtext-iconv-perl                         1.7-2                        converts between character sets in Perl
ii  libtext-wrapi18n-perl                      0.06-7                       internationalized substitute of Text::Wrap
ii  libtimedate-perl                           1.2000-1                     collection of modules to manipulate date/time information
ii  liburi-perl                                1.54-2                       module to manipulate and access URI strings
ii  libuuid-perl                               0.02-4                       Perl extension for using UUID interfaces as defined in e2fsprogs
ii  libwww-perl                                5.836-1                      Perl HTTP/WWW client/server library
ii  perl                                       5.10.1-17squeeze3            Larry Wall's Practical Extraction and Report Language
ii  perl-base                                  5.10.1-17squeeze3            minimal Perl system
ii  perl-modules                               5.10.1-17squeeze3            Core Perl modules

Also installed some modules with:
perl -MCPAN -e 'install +YAML'
perl -MCPAN -e 'install Config::IniFiles'
perl -MCPAN -e 'install Net::SNMP'
perl -MCPAN -e 'install Crypt::DES'
perl -MCPAN -e 'install Digest::HMAC'
perl -MCPAN -e 'install Digest::SHA1'

Sven Nierlein

unread,
May 19, 2012, 11:36:22 AM5/19/12
to th...@googlegroups.com
On 5/19/12 17:33, Esteban Monge wrote:
> Thanks for the help, I installed Thruk 1.30 from deb package.

Maybe you installed the wrong package. Such errors are typical when installing ubuntu package on debian or the other way round or installing a squeeze package on wheezy.

Esteban Monge

unread,
May 19, 2012, 11:38:07 AM5/19/12
to th...@googlegroups.com


2012/5/19 Sven Nierlein <sv...@nierlein.de>

On 5/19/12 17:33, Esteban Monge wrote:
Thanks for the help, I installed Thruk 1.30 from deb package.

Maybe you installed the wrong package. Such errors are typical when installing ubuntu package on debian or the other way round or installing a squeeze package on wheezy.

Hi.

I used thruk_1.30_debian6_i386.deb

Esteban Monge

unread,
May 19, 2012, 11:40:31 AM5/19/12
to th...@googlegroups.com


2012/5/19 Sven Nierlein <sv...@nierlein.de>

On 5/19/12 17:33, Esteban Monge wrote:
Thanks for the help, I installed Thruk 1.30 from deb package.

Maybe you installed the wrong package. Such errors are typical when installing ubuntu package on debian or the other way round or installing a squeeze package on wheezy.

I forgot another thing... I use Debian Backports for Squeeze... may be the problem is in the "new packages"

Sven Nierlein

unread,
May 19, 2012, 11:43:58 AM5/19/12
to th...@googlegroups.com
On 5/19/12 17:40, Esteban Monge wrote:
> I forgot another thing... I use Debian Backports for Squeeze... may be the problem is in the "new packages"

Thats maybe the problem. You could try to install 'libjson-xs-perl'. Maybe that helps.

Esteban Monge

unread,
May 19, 2012, 12:09:24 PM5/19/12
to th...@googlegroups.com


2012/5/19 Sven Nierlein <sv...@nierlein.de>

On 5/19/12 17:40, Esteban Monge wrote:
I forgot another thing... I use Debian Backports for Squeeze... may be the problem is in the "new packages"

Thats maybe the problem. You could try to install 'libjson-xs-perl'. Maybe that helps.

I think the problem is a bad character in any string of comments. If you are agree can I sent all the log to your private account for fast check.

Sven Nierlein

unread,
May 20, 2012, 2:02:49 PM5/20/12
to th...@googlegroups.com
On 5/19/12 18:09, Esteban Monge wrote:
> 2012/5/19 Sven Nierlein <sv...@nierlein.de <mailto:sv...@nierlein.de>>
> I think the problem is a bad character in any string of comments. If you are agree can I sent all the log to your private account for fast check.

No, the real question is, why doesn't it use JSON::XS instead of JSON::PP, pp is just the fallback when xs is not available and known to
be broken with various character sets. And its much slower. You really should find out why it doesn't use json::xs and fix that.

Esteban Monge

unread,
May 27, 2012, 3:49:05 PM5/27/12
to th...@googlegroups.com
Strange... I have checked all the modules of my Perl, and not have installed JSON:PP.

To see all the modules all excuted
perl -MCPAN -e shell

In the shell executed:
autobundled

But any module is named JSON::PP, instead I have JSON:XS installed.

root@opencontrolit:~/.cpan/Bundle# cat Snapshot_2012_05_27_00.pm | grep JSON
JSON::XS 2.32
JSON::XS::Boolean undef
root@opencontrolit:~/.cpan/Bundle# cat Snapshot_2012_05_27_00.pm | grep JSON
JSON::XS 2.32
JSON::XS::Boolean undef
root@opencontrolit:~/.cpan/Bundle# cat Snapshot_2012_05_27_00.pm | grep PP
Devel::PPPort 3.19
List::Util::PP 1.21
Module::Build::PPMMaker 0.340201
Scalar::Util::PP 1.21
root@opencontrolit:~/.cpan/Bundle#
Reply all
Reply to author
Forward
0 new messages