Open ghost opened 3 years ago
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)