Fixed vmware app issue, updated migrate code and removed xenserver insert sql

This commit is contained in:
Enrique Martin 2023-10-03 11:45:59 +02:00
parent 1073d492f7
commit 67df5ee92a
3 changed files with 2 additions and 16 deletions

View File

@ -1,4 +1,4 @@
pandorafms.vmware=d69778777e1cebfb80b4b3fbdcbbadcc pandorafms.vmware=459175dce8ab811e874ce2e7216f0db4
pandorafms.mysql=fadb4750d18285c0eca34f47c6aa3cfe pandorafms.mysql=fadb4750d18285c0eca34f47c6aa3cfe
pandorafms.mssql=1cc215409741d19080269ffba112810e pandorafms.mssql=1cc215409741d19080269ffba112810e
pandorafms.oracle=2d9320a514d1e48a0b2804e1653c31c6 pandorafms.oracle=2d9320a514d1e48a0b2804e1653c31c6

View File

@ -1,14 +0,0 @@
-- Insert new XenServer APP
SET @short_name = 'pandorafms.xenserver';
SET @name = 'XenServer';
SET @section = 'app';
SET @description = 'Monitor hosts, storages and VMs from a specific XenServer';
SET @version = '1.0';
INSERT IGNORE INTO `tdiscovery_apps` (`id_app`, `short_name`, `name`, `section`, `description`, `version`) VALUES ('', @short_name, @name, @section, @description, @version);
SELECT @id_app := `id_app` FROM `tdiscovery_apps` WHERE `short_name` = @short_name;
-- Insert into tdiscovery_apps_scripts
INSERT IGNORE INTO `tdiscovery_apps_scripts` (`id_app`, `macro`, `value`) VALUES (@id_app, '_exec1_', 'bin/pandora_xenserver');
-- Insert into tdiscovery_apps_executions
INSERT IGNORE INTO `tdiscovery_apps_executions` (`id`, `id_app`, `execution`) VALUES (1, @id_app, ''_exec1_' -c '_tempfileXenServer_' --as_discovery_plugin 1');

View File

@ -992,7 +992,7 @@ INSERT IGNORE INTO `tdiscovery_apps_tasks_macros`
INSERT IGNORE INTO `tdiscovery_apps_tasks_macros` INSERT IGNORE INTO `tdiscovery_apps_tasks_macros`
(`id_task`, `macro`, `type`, `value`, `temp_conf`) (`id_task`, `macro`, `type`, `value`, `temp_conf`)
SELECT SELECT
`id_rt`, '_tempfileVMware_', 'custom', 'Configuration
server _server_
datacenter _datacenter_
user _user_
group __taskGroup__
use_encrypted_password _useEncryptedPassword_
interval __taskInterval__
pass _pass_
threads _threads_
event_mode _eventMode_
retry_send _retrySend_
virtual_network_monitoring _virtualNetworkMonitoring_
recon_interval _reconInterval_

scan_datastore _scanDatastore_
scan_datacenter _scanDatacenter_
scan_esx _scanESX_
scan_vm _scanVM_

logfile __temp__/tmp_discovery.__taskMD5__.log
entities_list __temp__/tmp_discovery.__taskMD5__.entities
event_pointer_file __temp__/tmp_discovery.__taskMD5__.events
temporal __temp__
transfer_mode tentacle
tentacle_ip _tentacleIP_
tentacle_port _tentaclePort_
tentacle_opts _tentacleExtraOpt_
local_folder __incomingDir__
pandora_url __consoleAPIURL__
api_pass __consoleAPIPass__
api_user __consoleUser__
api_user_pass __consolePass__

_extraSettings_', 1 `id_rt`, '_tempfileVMware_', 'custom', 'Configuration
server _server_
datacenter _datacenter_
user _user_
group __taskGroup__
use_encrypted_password _useEncryptedPassword_
interval __taskInterval__
pass _pass_
threads _threads_
event_mode _eventMode_
retry_send _retrySend_
virtual_network_monitoring _virtualNetworkMonitoring_
recon_interval _reconInterval_

scan_datastore _scanDatastore_
scan_datacenter _scanDatacenter_
scan_esx _scanESX_
scan_vm _scanVM_

logfile __temp__/tmp_discovery.__taskMD5__.log
entities_list __temp__/tmp_discovery.__taskMD5__.entities
event_pointer_file __temp__/tmp_discovery.__taskMD5__.events
temporal __temp__
transfer_mode tentacle
tentacle_ip _tentacleIP_
tentacle_port _tentaclePort_
tentacle_opts _tentacleExtraOpt_
local_folder __incomingDir__
pandora_url __consoleAPIURL__
api_pass __consoleAPIPass__
api_user __consoleUser__
apiuser_pass __consolePass__

_extraSettings_', 1
FROM `trecon_task` FROM `trecon_task`
WHERE `type` = @current_app_type WHERE `type` = @current_app_type
; ;