I have CentOS 6 and am trying to setup Thruk with Nginx. I found the only official mentioning about nginx+thruk being setup on Ubuntu using uwsgi. I tried to do the same on my CentOS 6 server but it seems that uwsgi is missing the perl(psgi) plugin because that apparently is not supported on CentOS 6 due to some missing perl dependencies. Because of this I am left with the only option to use the fastcgi option.
Now I have the /etc/init.d/thruk script that when I start I have this process:
nagios 19790 1.7 0.3 99056 31048 ? S 12:29 0:00 /usr/bin/perl /usr/share/thruk/script/thruk_fastcgi.pl
As far as I know it should have created a socket for me to use with nginx but I can’t find it.
I tried to run it manually as described in the docs
%>./script/thruk_fastcgi.pl -n 5
But I get this:
cgi.cfg not readable: No such file or directory
failed to load cgi config: cgi.cfg
So my guess is that it can’t find some env variables. Looking at the /etc/init.d/thruk script I can see it searches for variables in /etc/sysconfig/thruk or /etc/default/thruk but those files not exist. I supposed that I need to specify the path to the socket to be created and other variables inside one of those files but I can’t find any mention in the official docs about how to properly do this.
Can someone help me make /etc/init.d/thruk create the socket that I would use with nginx?
Thanks in advance.