START TRANSACTION; INSERT INTO `groups` (`groupid`, `name`, `internal`) VALUES (1,'Templates',0); INSERT INTO `groups` (`groupid`, `name`, `internal`) VALUES (2,'Linux servers',0); INSERT INTO `groups` (`groupid`, `name`, `internal`) VALUES (5,'Discovered hosts',1); INSERT INTO `drules` (`druleid`, `proxy_hostid`, `name`, `iprange`, `delay`, `nextcheck`, `status`) VALUES (2,NULL,'Local network','192.168.1.1-255',3600,0,1); INSERT INTO `valuemaps` (`valuemapid`, `name`) VALUES (1,'Service state'); INSERT INTO `valuemaps` (`valuemapid`, `name`) VALUES (2,'Host status'); INSERT INTO `valuemaps` (`valuemapid`, `name`) VALUES (3,'Windows service state'); INSERT INTO `valuemaps` (`valuemapid`, `name`) VALUES (4,'APC Battery Replacement Status'); INSERT INTO `valuemaps` (`valuemapid`, `name`) VALUES (5,'APC Battery Status'); INSERT INTO `valuemaps` (`valuemapid`, `name`) VALUES (6,'HP Insight System Status'); INSERT INTO `valuemaps` (`valuemapid`, `name`) VALUES (7,'Dell Open Manage System Status'); INSERT INTO `valuemaps` (`valuemapid`, `name`) VALUES (8,'SNMP interface status (ifOperStatus)'); INSERT INTO `valuemaps` (`valuemapid`, `name`) VALUES (9,'SNMP device status (hrDeviceStatus)'); INSERT INTO `valuemaps` (`valuemapid`, `name`) VALUES (10,'Zabbix agent ping status'); INSERT INTO `valuemaps` (`valuemapid`, `name`) VALUES (11,'SNMP interface status (ifAdminStatus)'); INSERT INTO `media_type` (`mediatypeid`, `type`, `description`, `smtp_server`, `smtp_helo`, `smtp_email`, `exec_path`, `gsm_modem`, `username`, `passwd`, `status`) VALUES (1,0,'Email','mail.company.com','company.com','zabbix@company.com','','','','',0); INSERT INTO `media_type` (`mediatypeid`, `type`, `description`, `smtp_server`, `smtp_helo`, `smtp_email`, `exec_path`, `gsm_modem`, `username`, `passwd`, `status`) VALUES (2,3,'Jabber','','','','','','jabber@company.com','zabbix',0); INSERT INTO `media_type` (`mediatypeid`, `type`, `description`, `smtp_server`, `smtp_helo`, `smtp_email`, `exec_path`, `gsm_modem`, `username`, `passwd`, `status`) VALUES (3,2,'SMS','','','','','/dev/ttyS0','','',0); INSERT INTO `users` (`userid`, `alias`, `name`, `surname`, `passwd`, `url`, `autologin`, `autologout`, `lang`, `refresh`, `type`, `theme`, `attempt_failed`, `attempt_ip`, `attempt_clock`, `rows_per_page`) VALUES (1,'<%= scope.lookupvar('plugin_zabbix::params::zabbix_admin_username') %>','User','Administrator','<%= scope.lookupvar('plugin_zabbix::params::zabbix_admin_password_md5') %>','',1,0,'en_GB',30,3,'default',0,'',0,50); INSERT INTO `users` (`userid`, `alias`, `name`, `surname`, `passwd`, `url`, `autologin`, `autologout`, `lang`, `refresh`, `type`, `theme`, `attempt_failed`, `attempt_ip`, `attempt_clock`, `rows_per_page`) VALUES (2,'guest','Default','User','d41d8cd98f00b204e9800998ecf8427e','',0,900,'en_GB',30,1,'default',0,'',0,50); INSERT INTO `usrgrp` (`usrgrpid`, `name`, `gui_access`, `users_status`, `debug_mode`) VALUES (7,'Zabbix administrators',0,0,0); INSERT INTO `usrgrp` (`usrgrpid`, `name`, `gui_access`, `users_status`, `debug_mode`) VALUES (8,'Guests',0,0,0); INSERT INTO `usrgrp` (`usrgrpid`, `name`, `gui_access`, `users_status`, `debug_mode`) VALUES (9,'Disabled',0,1,0); INSERT INTO `usrgrp` (`usrgrpid`, `name`, `gui_access`, `users_status`, `debug_mode`) VALUES (11,'Enabled debug mode',0,0,1); INSERT INTO `usrgrp` (`usrgrpid`, `name`, `gui_access`, `users_status`, `debug_mode`) VALUES (12,'No access to the frontend',2,0,0); INSERT INTO `users_groups` (`id`, `usrgrpid`, `userid`) VALUES (1,9,2); INSERT INTO `scripts` (`scriptid`, `name`, `command`, `host_access`, `usrgrpid`, `groupid`, `description`, `confirmation`, `type`, `execute_on`) VALUES (1,'Ping','/bin/ping -c 3 {HOST.CONN} 2>&1',2,NULL,NULL,'','',0,1); INSERT INTO `scripts` (`scriptid`, `name`, `command`, `host_access`, `usrgrpid`, `groupid`, `description`, `confirmation`, `type`, `execute_on`) VALUES (2,'Traceroute','/bin/traceroute {HOST.CONN} 2>&1',2,NULL,NULL,'','',0,1); INSERT INTO `actions` (`actionid`, `name`, `eventsource`, `evaltype`, `status`, `esc_period`, `def_shortdata`, `def_longdata`, `recovery_msg`, `r_shortdata`, `r_longdata`) VALUES (2,'Auto discovery. Linux servers.',1,0,1,0,'','',0,'',''); INSERT INTO `actions` (`actionid`, `name`, `eventsource`, `evaltype`, `status`, `esc_period`, `def_shortdata`, `def_longdata`, `recovery_msg`, `r_shortdata`, `r_longdata`) VALUES (3,'Report problems to Zabbix administrators',0,0,1,3600,'{TRIGGER.STATUS}: {TRIGGER.NAME}','Trigger: {TRIGGER.NAME}\r\nTrigger status: {TRIGGER.STATUS}\r\nTrigger severity: {TRIGGER.SEVERITY}\r\nTrigger URL: {TRIGGER.URL}\r\n\r\nItem values:\r\n\r\n1. {ITEM.NAME1} ({HOST.NAME1}:{ITEM.KEY1}): {ITEM.VALUE1}\r\n2. {ITEM.NAME2} ({HOST.NAME2}:{ITEM.KEY2}): {ITEM.VALUE2}\r\n3. {ITEM.NAME3} ({HOST.NAME3}:{ITEM.KEY3}): {ITEM.VALUE3}',1,'{TRIGGER.STATUS}: {TRIGGER.NAME}','Trigger: {TRIGGER.NAME}\r\nTrigger status: {TRIGGER.STATUS}\r\nTrigger severity: {TRIGGER.SEVERITY}\r\nTrigger URL: {TRIGGER.URL}\r\n\r\nItem values:\r\n\r\n1. {ITEM.NAME1} ({HOST.NAME1}:{ITEM.KEY1}): {ITEM.VALUE1}\r\n2. {ITEM.NAME2} ({HOST.NAME2}:{ITEM.KEY2}): {ITEM.VALUE2}\r\n3. {ITEM.NAME3} ({HOST.NAME3}:{ITEM.KEY3}): {ITEM.VALUE3}'); INSERT INTO `operations` (`operationid`, `actionid`, `operationtype`, `esc_period`, `esc_step_from`, `esc_step_to`, `evaltype`) VALUES (2,2,4,0,1,1,0); INSERT INTO `operations` (`operationid`, `actionid`, `operationtype`, `esc_period`, `esc_step_from`, `esc_step_to`, `evaltype`) VALUES (3,3,0,0,1,1,0); INSERT INTO `opmessage` (`operationid`, `default_msg`, `subject`, `message`, `mediatypeid`) VALUES (3,1,'{TRIGGER.STATUS}: {TRIGGER.NAME}','Trigger: {TRIGGER.NAME}\r\nTrigger status: {TRIGGER.STATUS}\r\nTrigger severity: {TRIGGER.SEVERITY}\r\nTrigger URL: {TRIGGER.URL}\r\n\r\nItem values:\r\n\r\n1. {ITEM.NAME1} ({HOST.NAME1}:{ITEM.KEY1}): {ITEM.VALUE1}\r\n2. {ITEM.NAME2} ({HOST.NAME2}:{ITEM.KEY2}): {ITEM.VALUE2}\r\n3. {ITEM.NAME3} ({HOST.NAME3}:{ITEM.KEY3}): {ITEM.VALUE3}',NULL); INSERT INTO `opgroup` (`opgroupid`, `operationid`, `groupid`) VALUES (1,2,2); INSERT INTO `conditions` (`conditionid`, `actionid`, `conditiontype`, `operator`, `value`) VALUES (2,2,10,0,'0'); INSERT INTO `conditions` (`conditionid`, `actionid`, `conditiontype`, `operator`, `value`) VALUES (3,2,8,0,'9'); INSERT INTO `conditions` (`conditionid`, `actionid`, `conditiontype`, `operator`, `value`) VALUES (4,2,12,2,'Linux'); INSERT INTO `conditions` (`conditionid`, `actionid`, `conditiontype`, `operator`, `value`) VALUES (5,3,16,7,''); INSERT INTO `conditions` (`conditionid`, `actionid`, `conditiontype`, `operator`, `value`) VALUES (6,3,5,0,'1'); INSERT INTO `config` (`configid`,`refresh_unsupported`,`work_period`,`alert_usrgrpid`,`discovery_groupid`) values ('1','600','1-5,09:00-18:00;','7','5'); INSERT INTO `graph_theme` (`graphthemeid`, `description`, `theme`, `backgroundcolor`, `graphcolor`, `graphbordercolor`, `gridcolor`, `maingridcolor`, `gridbordercolor`, `textcolor`, `highlightcolor`, `leftpercentilecolor`, `rightpercentilecolor`, `nonworktimecolor`, `gridview`, `legendview`) VALUES (1,'Original Blue','originalblue','F0F0F0','FFFFFF','333333','CCCCCC','AAAAAA','000000','222222','AA4444','11CC11','CC1111','E0E0E0',1,1); INSERT INTO `graph_theme` (`graphthemeid`, `description`, `theme`, `backgroundcolor`, `graphcolor`, `graphbordercolor`, `gridcolor`, `maingridcolor`, `gridbordercolor`, `textcolor`, `highlightcolor`, `leftpercentilecolor`, `rightpercentilecolor`, `nonworktimecolor`, `gridview`, `legendview`) VALUES (2,'Black & Blue','darkblue','333333','0A0A0A','888888','222222','4F4F4F','EFEFEF','0088FF','CC4444','1111FF','FF1111','1F1F1F',1,1); INSERT INTO `graph_theme` (`graphthemeid`, `description`, `theme`, `backgroundcolor`, `graphcolor`, `graphbordercolor`, `gridcolor`, `maingridcolor`, `gridbordercolor`, `textcolor`, `highlightcolor`, `leftpercentilecolor`, `rightpercentilecolor`, `nonworktimecolor`, `gridview`, `legendview`) VALUES (3,'Dark orange','darkorange','333333','0A0A0A','888888','222222','4F4F4F','EFEFEF','DFDFDF','FF5500','FF5500','FF1111','1F1F1F',1,1); INSERT INTO `graph_theme` (`graphthemeid`, `description`, `theme`, `backgroundcolor`, `graphcolor`, `graphbordercolor`, `gridcolor`, `maingridcolor`, `gridbordercolor`, `textcolor`, `highlightcolor`, `leftpercentilecolor`, `rightpercentilecolor`, `nonworktimecolor`, `gridview`, `legendview`) VALUES (4,'Classic','classic','F0F0F0','FFFFFF','333333','CCCCCC','AAAAAA','000000','222222','AA4444','11CC11','CC1111','E0E0E0',1,1); INSERT INTO `globalmacro` (`globalmacroid`, `macro`, `value`) VALUES (2,'{$SNMP_COMMUNITY}','public'); INSERT INTO `sysmaps` (`sysmapid`, `name`, `width`, `height`, `backgroundid`, `label_type`, `label_location`, `highlight`, `expandproblem`, `markelements`, `show_unack`, `grid_size`, `grid_show`, `grid_align`, `label_format`, `label_type_host`, `label_type_hostgroup`, `label_type_trigger`, `label_type_map`, `label_type_image`, `label_string_host`, `label_string_hostgroup`, `label_string_trigger`, `label_string_map`, `label_string_image`, `iconmapid`, `expand_macros`) VALUES (1,'Local network',680,200,NULL,0,0,1,1,1,0,50,1,1,0,2,2,2,2,2,'','','','','',NULL,1); # Filesystems low level discovery INSERT INTO `regexps` (`regexpid`, `name`, `test_string`) VALUES (1,'File systems for discovery','ext3'); INSERT INTO `expressions` (`expressionid`,`regexpid`,`expression`,`expression_type`,`exp_delimiter`,`case_sensitive`) values (1,1,'^(btrfs|ext2|ext3|ext4|jfs|reiser|xfs|ffs|ufs|jfs|jfs2|vxfs|hfs|ntfs|fat32|zfs)$',3,',',0); # Network interfaces low level discovery INSERT INTO `regexps` (`regexpid`, `name`, `test_string`) VALUES (2,'Network interfaces for discovery','eth0'); INSERT INTO `expressions` (`expressionid`,`regexpid`,`expression`,`expression_type`,`exp_delimiter`,`case_sensitive`) values (2,2,'^lo$',4,',',0),(3,2,'^[a-z0-9]+$',4,',',0); # SNMP INSERT INTO `regexps` (`regexpid`, `name`, `test_string`) VALUES (3,'Storage devices for SNMP discovery','/boot'); # Block devices low level discovery INSERT INTO `regexps` (`regexpid`,`name`,`test_string`) values (4,'Block devices for discovery','vda'); INSERT INTO `expressions` (`expressionid`,`regexpid`,`expression`,`expression_type`,`exp_delimiter`,`case_sensitive`) values (4,4,'^(vd.|sd.)$',3,',',0); COMMIT;