hello,
I got a little tired of exfoliation on my nagios server so I decided to give thruk a try. I understand it's a complete cgi replacement for nagios and has some nice capabilities so I'm looking forward to getting this working.
I'm running a centos 5.6 x86_64 server and nagios core 3.4.1. I used the thruk-1.52-1.el6.x86_64 rpm installed by yum localinstall --nogpgcheck. Everything seemed to go ok.
However, when I navigate to /thruk page I see an Internal Server Error. And when I have a look at the apache error_logs I see the following error:
[root@cloud:~] #tail /var/log/httpd/error_log
[Mon Dec 31 14:16:49 2012] [error] [client 69.115.183.35] Premature end of script headers: fcgid_env.sh
/usr/bin/perl: symbol lookup error: /usr/lib/thruk/perl5/x86_64-linux-thread-multi/auto/List/Util/Util.so: undefined symbol: Perl_Istack_sp_ptr
[Mon Dec 31 14:16:50 2012] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error.
[Mon Dec 31 14:16:50 2012] [error] [client 69.115.183.35] Premature end of script headers: fcgid_env.sh
[Mon Dec 31 14:16:53 2012] [notice] mod_fcgid: process /usr/share/thruk/fcgid_env.sh(29967) exit(communication error), terminated by calling exit(), return code: 127
[Mon Dec 31 14:16:53 2012] [notice] mod_fcgid: process /usr/share/thruk/fcgid_env.sh(29956) exit(communication error), terminated by calling exit(), return code: 127
/usr/bin/perl: symbol lookup error: /usr/lib/thruk/perl5/x86_64-linux-thread-multi/auto/List/Util/Util.so: undefined symbol: Perl_Istack_sp_ptr
[Mon Dec 31 15:01:01 2012] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error.
[Mon Dec 31 15:01:01 2012] [error] [client 69.115.183.35] Premature end of script headers: fcgid_env.sh
[Mon Dec 31 15:01:04 2012] [notice] mod_fcgid: process /usr/share/thruk/fcgid_env.sh(31302) exit(communication error), terminated by calling exit(), return code: 127
So I googled the "Perl_Istack_sp_ptr" error and found that some have corrected this by installing the Util::Params CPAN plugin. Which I did, however that does not seem to have resolved the issue.
It's a default apache config that was deposited by the rpm
[root@cloud:~] #cat /etc/httpd/conf.d/thruk.conf
<IfModule mod_fcgid.c>
AddHandler fcgid-script .sh
IPCCommTimeout 120
<Directory /usr/share/thruk>
Options FollowSymLinks
AllowOverride All
order allow,deny
allow from all
</Directory>
<Directory /etc/thruk/themes>
Options FollowSymLinks
allow from all
</Directory>
<Directory /etc/thruk/plugins>
Options FollowSymLinks
allow from all
</Directory>
# redirect to a startup page when there is no pidfile yet
RewriteEngine On
RewriteCond %{REQUEST_METHOD} GET
RewriteCond %{REQUEST_URI} !^/thruk/startup.html
RewriteCond %{REQUEST_URI} !^/thruk/side.html
RewriteCond %{REQUEST_URI} !^/thruk/.*\.(css|png|js)
RewriteCond %{REQUEST_URI} ^/thruk
RewriteCond /var/cache/thruk/thruk.pid !-f
RewriteRule ^(.*)$ /thruk/startup.html?$1 [R=302,L,NE,QSA]
Alias /thruk/documentation.html /usr/share/thruk/root/thruk/documentation.html
Alias /thruk/startup.html /usr/share/thruk/root/thruk/startup.html
AliasMatch ^/thruk/(.*\.cgi|.*\.html) /usr/share/thruk/
fcgid_env.sh/thruk/$1 AliasMatch ^/thruk/plugins/(.*?)/(.*)$ /etc/thruk/plugins/plugins-enabled/$1/root/$2
Alias /thruk/themes/ /etc/thruk/themes/themes-enabled/
Alias /thruk /usr/share/thruk/root/thruk
<Location /thruk>
Options ExecCGI
AuthName "Thruk Monitoring"
AuthType Basic
AuthUserFile /etc/thruk/htpasswd
Require valid-user
</Location>
<Location /thruk/cgi-bin/remote.cgi>
Order Deny,Allow
Allow from all
Satisfy any
</Location>
</IfModule>
I do have the mod_fcgi module installed:
mod_fcgid-2.2-11.el5.x86_64
And it's enabled in apache.
[root@cloud:~] #httpd -t -D DUMP_MODULES | grep fcgid
Syntax OK
fcgid_module (shared)
I'd appreciate any advice you might have that would get this working.
Thanks
Tim