29.06.2011, 02:48 UTC+2

Sie sind nicht angemeldet.

OMD + OpenSuSE + Thruk

Tommel

Fortgeschrittener

Beiträge: 171

Geschlecht: Männlich

Anzahl Nagios-Server: 2

Nagios-Version(en): 3.2.0

Verteiltes Monitoring: Ja

Redundantes Monitoring: Ja

Anzahl-Hosts: 1+

Anzahl Services: 1+

Betriebssystem(e): OpenSuSE 11.1

Plugin-Version(en): 1.4.13

NagVis-Version: 1.5

Sonstige Addon's: PNP

1

24.06.2011, 14:12

OMD + OpenSuSE + Thruk

Hallo zusammen,

hat zufällig irgendjemand von euch OMD auf OpenSuSE und bekommt Thruk zum laufen?

OMD läuft soweit perfekt (v 0.48)auf OpenSuSE 11.4, allerdings bekomme ich beim Aufruf von Thruk immer den "Internal Server Error 500".

Das log zeigt:

Quellcode

1
2
3
4
5
6
7
8
9
10
Assertion ((svtype)((_svi)->sv_flags & 0xff)) >= SVt_RV failed: file "Util.xs", line 40 at /omd/sites/test/lib/perl5/lib/perl5/Package/DeprecationManager.pm line 18.
BEGIN failed--compilation aborted at /omd/sites/test/lib/perl5/lib/perl5/i586-linux-thread-multi/Moose/Deprecated.pm line 22.
Compilation failed in require at /omd/sites/test/lib/perl5/lib/perl5/i586-linux-thread-multi/Moose.pm line 14.
BEGIN failed--compilation aborted at /omd/sites/test/lib/perl5/lib/perl5/i586-linux-thread-multi/Moose.pm line 14.
Compilation failed in require at /omd/sites/test/lib/perl5/lib/perl5/Catalyst/ScriptRunner.pm line 2.
BEGIN failed--compilation aborted at /omd/sites/test/lib/perl5/lib/perl5/Catalyst/ScriptRunner.pm line 2.
Compilation failed in require at /omd/sites/test/share/thruk/script/thruk_fastcgi.pl line 19.
BEGIN failed--compilation aborted at /omd/sites/test/share/thruk/script/thruk_fastcgi.pl line 19.
[Fri Jun 24 14:02:54 2011] [warn] [client 127.0.0.1] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server, referer: http://IP/test/omd/
[Fri Jun 24 14:02:54 2011] [error] [client 127.0.0.1] Premature end of script headers: fcgid_env.sh, referer: http://IP/test/omd/


Ich hatte den gleichen Fehler schon einmal (siehe: https://nagios-portal.org/wbb/index.p…5922#post135922) allerdings habe ich dort dann einfach Thruk aus den git Sourcen selbst kompiliert. Ich hatte mir dafür eine Anleitung geschrieben, die ich hier unten mal einhänge. Mit dieser hatte es geklappt. Bei OMD installiert man Thruk ja nicht selber, hat daher einer der OMD Entwickler eine Idee, wo der Unterschied herkommen könnte??

Anleitung:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
   cd /usr/local

wget http://search.cpan.org/CPAN/authors/id/A/AP/APEIRON/local-lib-1.004009.tar.gz
tar zxf local-lib-1.004009.tar.gz
cd local-lib-1.004009
perl Makefile.PL --bootstrap && make install

        cd ~
        touch .profile
        vi .profile
                eval $(perl -I/root/perl5/lib/perl5 -Mlocal::lib)

        Ausloggen und Neu einloggen!

        cpan
        yes
no
no
http://www.perl.org/CPAN/
o conf connect_to_internet_ok yes
o conf commit
exit

touch cpan.sh
vi cpan.sh
        #!/bin/bash

perl -MCPAN -e "install CPAN"
perl -MCPAN -e "install YAML"
perl -MCPAN -e "install Params::Validate"
perl -MCPAN -e "install Math::Calc::Units"
perl -MCPAN -e "install Class::Accessor::Fast"
perl -MCPAN -e "install Config::Tiny"
perl -MCPAN -e "install Net::SNMP"
perl -MCPAN -e "install Config::General"
perl -MCPAN -e "install Scalar::Util"
perl -MCPAN -e "install JSON::XS"
perl -MCPAN -e "install Algorithm::C3"
perl -MCPAN -e "install Catalyst::Engine::FastCGI"
perl -MCPAN -e "install Catalyst::Log::Log4perl"
perl -MCPAN -e "install Catalyst::Plugin::Authentication"
perl -MCPAN -e "install Catalyst::Plugin::Authorization::Roles"
perl -MCPAN -e "install Catalyst::Plugin::Cache"
perl -MCPAN -e "install Catalyst::Plugin::Compress::Gzip"
perl -MCPAN -e "install Catalyst::Plugin::CustomErrorMessage"
perl -MCPAN -e "install Catalyst::Plugin::Redirect"
perl -MCPAN -e "install Catalyst::Plugin::StackTrace"
perl -MCPAN -e "install Catalyst::Plugin::Unicode::Encoding"
perl -MCPAN -e "install Catalyst::View::GD"
perl -MCPAN -e "install Catalyst::View::JSON"
perl -MCPAN -e "install Catalyst::View::TT"
perl -MCPAN -e "install Class::C3"
perl -MCPAN -e "install Data::Page"
perl -MCPAN -e "install Date::Calc"
perl -MCPAN -e "install Date::Manip"
perl -MCPAN -e "install FCGI"
perl -MCPAN -e "install FCGI::ProcManager"
perl -MCPAN -e "install FCGI::ProcManager::MaxRequests"
perl -MCPAN -e "install File::Slurp"
perl -MCPAN -e "install GD"
perl -MCPAN -e "install HTML::Entities"
perl -MCPAN -e "install LWP"
perl -MCPAN -e "install Log::Dispatch::File"
perl -MCPAN -e "install Monitoring::Availability"
perl -MCPAN -e "install Monitoring::Livestatus"
perl -MCPAN -e "install Thread::Queue"
perl -MCPAN -e "install YAML::Tiny"
perl -MCPAN -e "install parent"
perl -MCPAN -e "install Catalyst::Plugin::Compress::Gzip"
perl -MCPAN -e "install Monitoring::Livestatus::Class"
perl -MCPAN -e "install Excel::Template"
perl -MCPAN -e "install Catalyst::View::Excel::Template::Plus"
perl -MCPAN -e "install Catalyst::Plugin::Cache"
perl -MCPAN -e "install Module::Find"
perl -MCPAN -e "install Module::Install::Catalyst"

chmod +x cpan.sh
./cpan.sh

        Bei diesen Abfragen unbedingt mit yes antworten:
Do you want to build the XS Stash module? [y]
Do you want to use the XS Stash by default? [y]

        rm –rf cpan.sh

        cd /usr/local/
git clone http://github.com/sni/Thruk.git
cd Thruk
perl Makefile.PL
no
make
cp thruk.conf thruk_local.conf
vi thruk_local.conf
        peers einfügen, zum Beispiel:


     name = Nagios 1
     peer = IP:6557
   

In der Datei „cgi.cfg“ können Benutzer eingetragen werden, die Thruk steuern dürfen.

vi /etc/sysconfig/apache2
Bei APACHE_MODULES das Modul fcgid einfügen

        vi /etc/apache2/conf.d/thruk.conf
Folgendes einfügen:

Alias /thruk /usr/local/Thruk/script/thruk_fastcgi.pl/thruk/

    Options ExecCGI
    Order allow,deny
    Allow from all
    AddHandler fcgid-script .pl
    AuthName "Monitoring Access"
    AuthType Basic
    AuthUserFile /usr/local/Thruk/htpasswd.users
    Require valid-user


htpasswd2 -c /usr/local/Thruk/htpasswd.users thrukadmin (pw zB thrukadmin)
cp -R /root/perl5/lib/perl5/* /usr/lib/perl5/5.12.1/
cd /usr/local/
chown -hR wwwrun Thruk/
rcapache2 restart

        Thruk ist nun über das Webinterface http://IP/thruk erreichbar.


Grüße

sni

Profi

Beiträge: 651

Geschlecht: Männlich

Wohnort: München

Anzahl Nagios-Server: viele

Nagios-Version(en): 2.* / 3

Verteiltes Monitoring: Ja

Redundantes Monitoring: Ja

Anzahl-Hosts: viele

Anzahl Services: viele

Betriebssystem(e): viele

Plugin-Version(en): 1.4.11

Sonstige Addon's: Thruk, ModGearman

2

24.06.2011, 14:25

Ich vermute mal du hast einfach die Suse Pakete genommen und unter Opensuse installiert. Opensuse und Suse haben eigentlich nur den Namen gemeinsam, haben aber sonst nicht viel miteinander zu tun. Es ist dort nicht so wie bei Centos/Redhat, dass die Distributionen Binärkompatibel sind.
In deinem Fall unterscheiden sich die Perl Architekturen. Du kannst aber versuchen selbst OpenSuse OMD Pakete zu bauen.

Tommel

Fortgeschrittener

Beiträge: 171

Geschlecht: Männlich

Anzahl Nagios-Server: 2

Nagios-Version(en): 3.2.0

Verteiltes Monitoring: Ja

Redundantes Monitoring: Ja

Anzahl-Hosts: 1+

Anzahl Services: 1+

Betriebssystem(e): OpenSuSE 11.1

Plugin-Version(en): 1.4.13

NagVis-Version: 1.5

Sonstige Addon's: PNP

3

27.06.2011, 15:57

Ja da hast du natürlich Recht und ich erwarte ja natürlich auch nicht das das funktioniert :-)

Hatte mich nur gewundert, da ich Thruk alleine unter OpenSuSE zum laufen kriege, OMD an sich unter OpenSuSE auch läuft, aber dort Thruk nicht funktioniert...

Bekomme ich irgendwo Hilfestellung bzgl. Pakete für OMD unter OpenSuSE bauen, oder ist es schon ein No-Go wenn ich das frage, so dass es dann wahrscheinlich eh nicht klappen wird, mangels fehlendem Know-How? ;-) Ich meine wenn es "nur" die PERL Architecture ist, könnte es ja sein, dass irgendjemand in der Lage ist, eine kleine Anleitung zum Pakete bauen aufsetzen kann, oder sie vllt. sogar schon hat? :)

Grüße

sni

Profi

Beiträge: 651

Geschlecht: Männlich

Wohnort: München

Anzahl Nagios-Server: viele

Nagios-Version(en): 2.* / 3

Verteiltes Monitoring: Ja

Redundantes Monitoring: Ja

Anzahl-Hosts: viele

Anzahl Services: viele

Betriebssystem(e): viele

Plugin-Version(en): 1.4.11

Sonstige Addon's: Thruk, ModGearman

4

27.06.2011, 16:03

Fragen kostet nichts...

Hier ist eine (dürftige) Anleitung :-)
http://omdistro.org/wiki/omd/Compile_from_source

Es gibt auch jemanden der OMD unter OpenSuse gebaut hat:
http://omdistro.org/issues/169
Allerdings ist das nichts Offizielles.

Ähnliche Themen