./test_alert.php -d -a 14347 DEBUG! DEFINITIONS Time : 0.052588 ms DEFINITIONS Memory: 25.3MB SQL[SELECT * FROM `observium_attribs`] SQL RUNTIME[0.00029111s] SQL[SELECT @@SESSION.sql_mode;] SQL RUNTIME[0.0001018s] SQL[SET SESSION `sql_mode` = 'NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'] SQL RUNTIME[0.00010109s] DB mode(s) disabled: STRICT_TRANS_TABLES, ERROR_FOR_DIVISION_BY_ZERO SQL[SELECT TIMEDIFF(NOW(), UTC_TIMESTAMP);] SQL RUNTIME[0.000144s] Observium Attributes already cached. SQL[SELECT * FROM `config`] SQL RUNTIME[0.00016189s] CMD[/bin/hostname -f] CMD EXITCODE[0] CMD RUNTIME[0.0023s] STDOUT[ observium2 ] Observium CE 26.1.14545 Test Alert Notification SQL[SELECT * FROM `alert_tests`] SQL RUNTIME[0.00025105s] Cached 11 alert rules. SQL[SELECT * FROM `alert_assoc`] SQL RUNTIME[0.00015283s] SQL[SELECT * FROM `alert_table` WHERE `alert_table_id` = '14347'] SQL RUNTIME[0.00024199s] Array ( [alert_table_id] => 14347 [alert_test_id] => 4 [device_id] => 81 [entity_type] => processor [entity_id] => 945 [alert_assocs] => [delay] => 0 [ignore_until] => [ignore_until_ok] => 0 [last_checked] => 1771833622 [last_changed] => 1771833622 [last_recovered] => [last_ok] => 1771833324 [last_failed] => 1771833622 [has_alerted] => 0 [last_message] => Checks failed [alert_status] => 0 [last_alerted] => 0 [state] => {"metrics":{"processor_usage":81.5},"failed":[{"metric":"processor_usage","condition":"greater","value":"80"}]} [count] => 1 ) SQL[SELECT * FROM `devices` LEFT JOIN `devices_locations` USING (`device_id`) WHERE `device_id` = '81'] SQL RUNTIME[0.00040984s] SQL[SELECT * FROM `device_graphs` WHERE `device_id` = '81'] SQL RUNTIME[0.0002799s] SQL[SELECT * FROM `processors` WHERE `processors`.`processor_id` = '945'] SQL RUNTIME[0.00018215s] ��������������������������������������������������������������������������������������������������������������������������� ��������������������������������������������������������������������������������������������������������������������������������������� ��������������������������������������������������������������������������������������������������������������������������������������� ��������������������������������������������������������������������������������������������������������������������������������������� ��������������������������������������������������������������������������������������������������������������������������������������� ��������������������������������������������������������������������������������������������������������������������������������������� ��������������������������������������������������������������������������������������������������������������������������������������� ��������������������������������������������������������������������������������������������������������������������������������������� ��������������������������������������������������������������������������������������������������������������������������������������� ��������������������������������������������������������������������������������������������������������������������������������������� ��������������������������������������������������������������������������������������������������������������������������������������� ��������������������������������������������������������������������������������������������������������������������������������������� ��������������������������������������������������������������������������������������������������������������������������������������� ��������������������������������������������������������������������������������������������������������������������������������������� ��������������������������������������������������������������������������������������������������������������������������������������� ��������������������������������������������������������������������������������������������������������������������������������������� ��������������������������������������������������������������������������������������������������������������������������������������� ��������������������������������������������������������������������������������������������������������������������������������������� ��������������������������������������������������������������������������������������������������������������������������������������� ��������������������������������������������������������������������������������������������������������������������������������������� ��������������������������������������������������������������������������������������������������������������������������������������� ��������������������������������������������������������������������������������������������������������������������������������������� ��������������������������������������������������������������������������������������������������������������������������������������� ��������������������������������������������������������������������������������������������������������������������������������������� ��������������������������������������������������������������������������������������������������������������������������������������� ��������������������������������������������������������������������������������������������������������������������������������������� ��������������������������������������������������������������������������������������������������������������������������������������� ��������������������������������������������������������������������������������������������������������������������������������������� ��������������������������������������������������������������������������������������������������������������������������������������� ��������������������������������������������������������������������������������������������������������������������������������������� ��������������������������������������������������������������������������������������������������������������������������������������� Oops! Something went wrong! You may want to report this to the Observium developers. Call to undefined function get_entity_group_names() in /opt/observium/includes/notifications.inc.php:97 Stack trace: #0: (unknown function) called at [/opt/observium/includes/notifications.inc.php:97] 92: $device = device_by_id_cache($entry['device_id']); 93: $entity = get_entity_by_id_cache($entry['entity_type'], $entry['entity_id']); 94: $alert = $alert_rules[$entry['alert_test_id']]; 95: 96: // Get device group memberships for alert routing 97: $device_groups = get_entity_group_names('device', $device['device_id']); 98: 99: // Get entity group memberships for alert routing 100: $entity_groups = get_entity_group_names($entry['entity_type'], $entry['entity_id']); 101: 102: /// DEVEL #1: alert_generate_tags called at [/opt/observium/includes/notifications.inc.php:26] 21: */ 22: function alert_notifier($entry, $type = "alert", $log_id = NULL) { 23: 24: $device = device_by_id_cache($entry['device_id']); 25: 26: $message_tags = alert_generate_tags($entry, $type); 27: 28: //logfile('debug.log', var_export($message, TRUE)); 29: 30: $alert_id = $entry['alert_test_id']; 31: #2: alert_notifier called at [/opt/observium/test_alert.php:56] 51: 52: $entry = dbFetchRow($sql, [$options['a']]); 53: print_debug_vars($entry, 1); 54: 55: // Generate alerts and insert them into the queue 56: $ids = alert_notifier($entry); 57: } elseif ($options['c']) { 58: // Test by contact id 59: $ids = []; 60: 61: // Fetch notification example from json file