Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
Description
Lastest SVN up, poller is showing below for all devices:
Oops! Something went wrong! You may want to report this to the Observium developers.
syntax error, unexpected '=>' (T_DOUBLE_ARROW) in /opt/observium/includes/polling/probes.inc.php:50
Stack trace:
#0: (unknown function) called at [/opt/observium/includes/polling/probes.inc.php:50]
45:
46: $exit_code = $exec_status['exitcode'];
47: $runtime = $exec_status['runtime'];
48:
49: [$status, $status_x] = match ((int) $exit_code)
{ 50: 0 => ['ok', '%gok%n'], 51: 1 => ['warning', '%ywarning%n'], 52: 2 => ['alert', '%ralert%n'], 53: default => ['unknown', '%wunknown%n'], 54: };
55:
#1: poll_device called at [/opt/observium/poller.php:211]
206: $params[] = $config['poller_id'];
207: }
208:
209: foreach (dbFetchColumn($query, $params) as $device_id)
{ 210: $device = dbFetchRow("SELECT * FROM `devices` WHERE `device_id` = ?", [ $device_id ]); 211: poll_device($device, $options); 212: $polled_devices++; 213: }214:
215: $poller_time = elapsed_time($poller_start, 4);
216: