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
Hello, a trap is received but when is handle by the TrapApi I got this message
Apr 9 15:12:50 socadm snmptrapd: PHP Parse error: syntax error, unexpected 'const' (T_CONST), expecting variable (T_VARIABLE) in /usr/share/icingaweb2/modules/trapdirector/library/Trapdirector/TrapsProcess/TrapApi.php on line 21
Also when I go to /icingaweb2/trapdirector/status/plugins
Parse error
: syntax error, unexpected 'const' (T_CONST), expecting variable (T_VARIABLE) in
/usr/share/icingaweb2/modules/trapdirector/library/Trapdirector/TrapsProcess/TrapApi.php
on line
21
Your Environment
If related to the question in any way :
trapdirector version (in icinga web 2 : System - About): 1.0.7a
Icinga Web 2 version and modules (in icinga web 2 : System - About): Icinga Web 2 Version 2.8.2
Icinga 2 version (icinga2 --version): (version: 2.12.3)
Operating System and version: RedHat7
Webserver, PHP versions: PHP Version 7.0.33
The text was updated successfully, but these errors were encountered:
Same too.
Editing /usr/share/icingaweb2/modules/trapdirector/library/Trapdirector/TrapsProcess/TrapApi.php
on line 21, 22 and 23 change from
public const MASTER=1;
public const MASTERHA=2;
public const SAT=3;
to
const MASTER=1;
const MASTERHA=2;
const SAT=3;
Main question
Hello, a trap is received but when is handle by the TrapApi I got this message
Apr 9 15:12:50 socadm snmptrapd: PHP Parse error: syntax error, unexpected 'const' (T_CONST), expecting variable (T_VARIABLE) in /usr/share/icingaweb2/modules/trapdirector/library/Trapdirector/TrapsProcess/TrapApi.php on line 21
Also when I go to /icingaweb2/trapdirector/status/plugins
Parse error
: syntax error, unexpected 'const' (T_CONST), expecting variable (T_VARIABLE) in
/usr/share/icingaweb2/modules/trapdirector/library/Trapdirector/TrapsProcess/TrapApi.php
on line
21
Your Environment
If related to the question in any way :
icinga2 --version
): (version: 2.12.3)The text was updated successfully, but these errors were encountered: