2012-10-25

Shinken and Thruk on Centos

Steps to give Shinken a nice UI on Centos

1 Shinken

  • on Centos 5, python 2.4 needs pyro 3.12
pip install Pyro==3.12

2 Ninja

  • was not able to make it work

3 Thruk

url_prefix = /thruk
  • apache avec fcgid et dans un vhost deja existant
yum install fcgid
# thruk configuration
 <Directory /opt/thruk/root>
     DirectoryIndex index.html
     Options FollowSymLinks
     AllowOverride All
     order allow,deny
     allow from all
 </Directory>

 AliasMatch ^/thruk/(.*\.cgi|.*\.html)$  /opt/thruk/script/thruk_fastcgi.pl/thruk/$1
 Alias /thruk/ /opt/thruk/root/thruk/

 <Location /thruk>
     Options ExecCGI
     Order allow,deny
     Allow from all
     AuthName "Monitoring Access"
     AuthType Basic                                                                        
     AuthUserFile /etc/httpd/thruk.htpasswd
     Require valid-user
 </Location>


 <IfModule mod_fcgid.c>
   AddHandler fcgid-script .pl
   MaxRequestsPerProcess 100
 </IfModule>

4 Problemes rencontres

  • Thruk ne communique pas avec Shinken:: NO BACKEND …
pip install simplejson
  • Impossible de s'authentifier …:: pas trouve la raison corrige avec le reste
  • Pas de theme
<Directory /opt/thruk/root>
    DirectoryIndex index.html
...
</Directory>

AliasMatch ^/thruk/(.*\.cgi|.*\.html)$  /opt/thruk/script/thruk_fastcgi.pl/thruk/$1
Alias /thruk/ /opt/thruk/root/thruk/