Closed blindzero closed 4 years ago
Hi,
Thanks for the feedback. The install script gets the php binary from the web server, and in this case you use php-fpm. This is OK for web server but you need the php binary to execute a php file in command line.
1) Find your php binary : must be /usr/bin/php
2) Replace in snmptrapd.conf :
traphandle default /usr/sbin/php-fpm7.2 /usr/share/icingaweb2/modules/trapdirector/bin/trap_in.php
by
traphandle default /usr/bin/php /usr/share/icingaweb2/modules/trapdirector/bin/trap_in.php
(if your php binary is /usr/bin/php)
I'll make some more tests in the install script generator on the web page to avoid this problem and also update the docs.
Patrick
@patrickpr Doh! Yeah...as more an infrastructure guy I am just too far away from that web stuff ;) Solved it perfectly. Would be great if installer could avoid it.
Thanks, M.
Main question
traphandle created by install script with php-fpm7.2 seems not to work
Purpose
I called the bin/installer script and this created a traphandle default /usr/sbin/php-fpm7.2 /usr/share/icingaweb2/modules/trapdirector/bin/trap_in.php
The PHP file path is correct, php-fpm7.2 is there. In syslog I always see
Your Environment
If related to the question in any way :
icinga2 --version
):