Added models in tlog_graph_models

Former-commit-id: 76d6f1358677c02eab4681a1bb290fda0476c91b
This commit is contained in:
Daniel Maya 2019-02-25 17:45:37 +01:00
parent c603a9ecf3
commit 16f1474691
3 changed files with 72 additions and 1 deletions

View File

@ -118,4 +118,28 @@ INSERT INTO `tnotification_source_user` (`id_source`, `id_user`, `enabled`, `als
INSERT INTO `tnotification_source_group` SELECT `id`,0 FROM `tnotification_source` WHERE `description`="Message";
INSERT INTO `tnotification_user` (`id_mensaje`, `id_user`) SELECT `id_mensaje`, `id_usuario_destino` FROM `tmensajes` WHERE `id_usuario_destino` != '';
INSERT INTO tlog_graph_models (`title`,`regexp`,`fields`,`average`) VALUES ('Apache accesses per client and status',
'(.*?)\ -.*1.1"\ (\d+)\ \d+',
'host,status', 1);
INSERT INTO tlog_graph_models (`title`,`regexp`,`fields`,`average`) VALUES ('Apache time per requester and html code',
'(.*?)\ -.*1.1"\ (\d+)\ (\d+)',
'origin,respose,_time_', 1);
INSERT INTO tlog_graph_models (`title`,`regexp`,`fields`,`average`) VALUES ('Count output',
'.*',
'Coincidences', 0);
INSERT INTO tlog_graph_models (`title`,`regexp`,`fields`,`average`) VALUES ('Events replicated to metaconsole',
'.* (.*?) .* (\d+) events replicated to metaconsole',
'server,_events_', 0);
INSERT INTO tlog_graph_models (`title`,`regexp`,`fields`,`average`) VALUES ('Pages with warnings',
'PHP Warning:.*in (.*?) on',
'page', 0);
INSERT INTO tlog_graph_models (`title`,`regexp`,`fields`,`average`) VALUES ('Users login',
'Starting Session \d+\ of user (.*)',
'user', 0);
COMMIT;

View File

@ -1820,7 +1820,30 @@ CREATE TABLE IF NOT EXISTS `tlog_graph_models` (
INSERT INTO tlog_graph_models VALUES (1, 'Apache log model',
'^.*?\s+.*".*?\s(\/.*?)\?.*1.1"\s+(.*?)\s+(.*?)\s+',
'pagina, html_err_code, _tiempo_', 1);
INSERT INTO tlog_graph_models VALUES (2, 'Apache accesses per client and status',
'(.*?)\ -.*1.1"\ (\d+)\ \d+',
'host,status', 1);
INSERT INTO tlog_graph_models VALUES (3, 'Apache time per requester and html code',
'(.*?)\ -.*1.1"\ (\d+)\ (\d+)',
'origin,respose,_time_', 1);
INSERT INTO tlog_graph_models VALUES (4, 'Count output',
'.*',
'Coincidences', 0);
INSERT INTO tlog_graph_models VALUES (5, 'Events replicated to metaconsole',
'.* (.*?) .* (\d+) events replicated to metaconsole',
'server,_events_', 0);
INSERT INTO tlog_graph_models VALUES (6, 'Pages with warnings',
'PHP Warning:.*in (.*?) on',
'page', 0);
INSERT INTO tlog_graph_models VALUES (7, 'Users login',
'Starting Session \d+\ of user (.*)',
'user', 0);
-- -----------------------------------------------------
-- Add column in table `treport`
-- -----------------------------------------------------

View File

@ -1269,6 +1269,30 @@ INSERT INTO tlog_graph_models VALUES (1, 'Apache log model',
'^.*?\s+.*".*?\s(\/.*?)\?.*1.1"\s+(.*?)\s+(.*?)\s+',
'pagina, html_err_code, _tiempo_', 1);
INSERT INTO tlog_graph_models VALUES (2, 'Apache accesses per client and status',
'(.*?)\ -.*1.1"\ (\d+)\ \d+',
'host,status', 1);
INSERT INTO tlog_graph_models VALUES (3, 'Apache time per requester and html code',
'(.*?)\ -.*1.1"\ (\d+)\ (\d+)',
'origin,respose,_time_', 1);
INSERT INTO tlog_graph_models VALUES (4, 'Count output',
'.*',
'Coincidences', 0);
INSERT INTO tlog_graph_models VALUES (5, 'Events replicated to metaconsole',
'.* (.*?) .* (\d+) events replicated to metaconsole',
'server,_events_', 0);
INSERT INTO tlog_graph_models VALUES (6, 'Pages with warnings',
'PHP Warning:.*in (.*?) on',
'page', 0);
INSERT INTO tlog_graph_models VALUES (7, 'Users login',
'Starting Session \d+\ of user (.*)',
'user', 0);
--
-- Dumping data for table `tnotification_source`
--