fixed errors in form wux
This commit is contained in:
parent
788cb8cbd8
commit
1d7d55a451
|
@ -0,0 +1,7 @@
|
|||
START TRANSACTION;
|
||||
|
||||
ALTER TABLE tagente MODIFY COLUMN cascade_protection_module int(10) unsigned NOT NULL default '0';
|
||||
|
||||
INSERT INTO tmodule VALUES (8, 'Wux module');
|
||||
|
||||
COMMIT;
|
|
@ -1415,3 +1415,9 @@ ALTER TABLE tgraph_source ADD COLUMN id_server int(11) UNSIGNED NOT NULL default
|
|||
-- ---------------------------------------------------------------------
|
||||
|
||||
ALTER TABLE tserver_export_data MODIFY `module_name` varchar(600) BINARY NOT NULL default '';
|
||||
|
||||
-- ---------------------------------------------------------------------
|
||||
-- Table `tmodule`
|
||||
-- ---------------------------------------------------------------------
|
||||
|
||||
INSERT INTO tmodule VALUES (8, 'Wux module');
|
|
@ -972,10 +972,18 @@ if ($update_module || $create_module) {
|
|||
$custom_integer_1_default = $module['custom_integer_1'];
|
||||
$custom_integer_2_default = $module['custom_integer_2'];
|
||||
}
|
||||
$custom_string_1 = (string) get_parameter ('custom_string_1', $custom_string_1_default);
|
||||
|
||||
if($id_module_type == MODULE_WUX){
|
||||
$custom_string_1 = base64_encode((string) get_parameter ('custom_string_1', $custom_string_1_default));
|
||||
$custom_integer_1 = (int) get_parameter ('custom_integer_1', $custom_integer_1_default);
|
||||
}
|
||||
else{
|
||||
$custom_string_1 = (string) get_parameter ('custom_string_1', $custom_string_1_default);
|
||||
$custom_integer_1 = (int) get_parameter ('prediction_module', $custom_integer_1_default);
|
||||
}
|
||||
|
||||
$custom_string_2 = (string) get_parameter ('custom_string_2', $custom_string_2_default);
|
||||
$custom_string_3 = (string) get_parameter ('custom_string_3', $custom_string_3_default);
|
||||
$custom_integer_1 = (int) get_parameter ('custom_integer_1', $custom_integer_1_default);
|
||||
$custom_integer_2 = (int) get_parameter ('custom_integer_2', $custom_integer_2_default);
|
||||
|
||||
// Get macros
|
||||
|
|
|
@ -311,6 +311,7 @@ define ('MODULE_PLUGIN', 4);
|
|||
define ('MODULE_PREDICTION', 5);
|
||||
define ('MODULE_WMI', 6);
|
||||
define ('MODULE_WEB', 7);
|
||||
define ('MODULE_WUX', 8);
|
||||
|
||||
/* Type of Modules of Prediction */
|
||||
define ('MODULE_PREDICTION_SERVICE', 2);
|
||||
|
|
|
@ -344,6 +344,7 @@ INSERT INTO tmodule VALUES (4,'Plugin module');
|
|||
INSERT INTO tmodule VALUES (5,'Prediction module');
|
||||
INSERT INTO tmodule VALUES (6,'WMI module');
|
||||
INSERT INTO tmodule VALUES (7, 'Web module');
|
||||
INSERT INTO tmodule VALUES (8, 'Wux module');
|
||||
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`, `id_plugin`, `plugin_user`, `plugin_pass`, `plugin_parameter`, `max_timeout`, `history_data`, `min_warning`, `max_warning`, `str_warning`, `min_critical`, `max_critical`, `str_critical`, `min_ff_event`, `custom_string_1`, `custom_string_2`, `custom_string_3`, `custom_integer_1`, `custom_integer_2`, `post_process`, `wizard_level`, `critical_instructions`, `warning_instructions`, `unknown_instructions`, `tags`, `disabled_types_event`, `module_macros`) VALUES (1,'OS Total process','Total process in Operating System (UNIX MIB)',13,15,0,0,300,0,'','','public','HOST-RESOURCES-MIB::hrSystemProcesses.0 ',4,2,0,NULL,NULL,NULL,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,NULL,NULL,NULL,0,0,0.0000000000000,'basic','','','','','','');
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`, `id_plugin`, `plugin_user`, `plugin_pass`, `plugin_parameter`, `max_timeout`, `history_data`, `min_warning`, `max_warning`, `str_warning`, `min_critical`, `max_critical`, `str_critical`, `min_ff_event`, `custom_string_1`, `custom_string_2`, `custom_string_3`, `custom_integer_1`, `custom_integer_2`, `post_process`, `wizard_level`, `critical_instructions`, `warning_instructions`, `unknown_instructions`, `tags`, `disabled_types_event`, `module_macros`) VALUES (2,'OS CPU Load (1 min)','CPU Load in Operating System (UNIX MIB)',13,15,0,0,300,0,'','','public','UCD-SNMP-MIB::laLoad.1',4,2,0,NULL,NULL,NULL,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,NULL,NULL,NULL,0,0,0.0000000000000,'basic','','','','','','');
|
||||
|
|
Loading…
Reference in New Issue