You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
php: [TrapDirector] [Warning]: Caught exception creating Trap class
Describe the bug
As soon as a trap is received the error message is displayed
To Reproduce
Steps to reproduce the behavior:
I moved from CentOS7, php7 => Ubuntu22.04, php8
Several "deprecated"-warnings appeared. I was able to "fix" this by adding "@"-signs and "#[\ReturnTypeWillChange]" to the .php-files of Trapdirector (e.g. /usr/share/icingaweb2/modules/trapdirector/library/Trapdirector/Tables/TrapTableList.php on line 71)
Now my GUI looks good, all content is loaded. But traps are not listed as "received". Instead the syslog prints the class error.
Expected behavior
The received traps are listed as "received" inside trapdirector. And no "creating Trap class"-error is displayed in syslog.
Your Environment:
trapdirector version (in icinga web 2 : System - About): 1.0.6
Icinga Web 2 version and modules (in icinga web 2 : System - About):
icinga web2 version: 2.12.1
icinga/icinga-php-thirdparty 0.12.1
icinga/icinga-php-library 0.14.1
Get debug logs
Describe the bug
As soon as a trap is received the error message is displayed
To Reproduce
Steps to reproduce the behavior:
I moved from CentOS7, php7 => Ubuntu22.04, php8
Several "deprecated"-warnings appeared. I was able to "fix" this by adding "@"-signs and "#[\ReturnTypeWillChange]" to the .php-files of Trapdirector (e.g. /usr/share/icingaweb2/modules/trapdirector/library/Trapdirector/Tables/TrapTableList.php on line 71)
Now my GUI looks good, all content is loaded. But traps are not listed as "received". Instead the syslog prints the class error.
Expected behavior
The received traps are listed as "received" inside trapdirector. And no "creating Trap class"-error is displayed in syslog.
Your Environment:
icinga web2 version: 2.12.1
icinga/icinga-php-thirdparty 0.12.1
icinga/icinga-php-library 0.14.1
Loaded Modules
director 1.11.1
doc 2.12.1
icingadb 1.1.3
incubator 0.22.0
monitoring 2.12.1
trapdirector 1.0.6
icinga2 --version
): r2.14.2-1php: 8.1.2-1ubuntu2.19
Server version: Apache/2.4.52 (Ubuntu)
Server built: 2024-07-17T18:57:26
I really love this Trap-module. It helped us a lot.
Hopefully somebody has helpful hints how to get it running on php8.
Kind regards,
Jan
The text was updated successfully, but these errors were encountered: