Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php: [TrapDirector] [Warning]: Caught exception creating Trap class #79

Open
MagnaFrisia90 opened this issue Oct 21, 2024 · 0 comments
Open

Comments

@MagnaFrisia90
Copy link

Get debug logs

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

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

  • Icinga 2 version (icinga2 --version): r2.14.2-1
  • Operating System and version: Ubuntu 22.04
  • Webserver, PHP versions:
    php: 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant