From ddd6d6ad8ba9aa0ec9983d57c390660fec608a03 Mon Sep 17 00:00:00 2001 From: alejandro Date: Wed, 24 Apr 2024 12:03:03 +0200 Subject: [PATCH 1/4] update execution in proxmox plugin --- pandora_console/extras/mr/69.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pandora_console/extras/mr/69.sql b/pandora_console/extras/mr/69.sql index ea49c68624..aab53b96d7 100644 --- a/pandora_console/extras/mr/69.sql +++ b/pandora_console/extras/mr/69.sql @@ -7754,4 +7754,7 @@ ALTER TABLE `tdeployment_hosts` DROP COLUMN `arch`; -- Update all deployment recon tasks port UPDATE `trecon_task` SET `field4` = 41121 WHERE `type` = 9; +--Update execution in proxmox discovery plugin +UPDATE `tdiscovery_apps_executions` SET `execution` = ''_exec1_' --conf '_tempfileProxmox_'' WHERE `short_name` = 'pandorafms.proxmox'; + COMMIT; \ No newline at end of file From 7131685be7f5ccc4a5676000062b906c9911ccc4 Mon Sep 17 00:00:00 2001 From: alejandro Date: Thu, 25 Apr 2024 14:18:41 +0200 Subject: [PATCH 2/4] update execution in proxmox plugin --- pandora_console/extras/mr/69.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandora_console/extras/mr/69.sql b/pandora_console/extras/mr/69.sql index aab53b96d7..f7f9e6f8e1 100644 --- a/pandora_console/extras/mr/69.sql +++ b/pandora_console/extras/mr/69.sql @@ -7755,6 +7755,8 @@ ALTER TABLE `tdeployment_hosts` DROP COLUMN `arch`; UPDATE `trecon_task` SET `field4` = 41121 WHERE `type` = 9; --Update execution in proxmox discovery plugin -UPDATE `tdiscovery_apps_executions` SET `execution` = ''_exec1_' --conf '_tempfileProxmox_'' WHERE `short_name` = 'pandorafms.proxmox'; +SET @short_name = 'pandorafms.proxmox'; +SELECT @id_app := `id_app` FROM `tdiscovery_apps` WHERE `short_name` = @short_name; +UPDATE `tdiscovery_apps_executions` SET `execution` = ''_exec1_' --conf '_tempfileProxmox_'' WHERE `id_app` = @id_app; COMMIT; \ No newline at end of file From 573f3045942b3c2734231789d0a74336e876c527 Mon Sep 17 00:00:00 2001 From: alejandro Date: Thu, 25 Apr 2024 15:07:30 +0200 Subject: [PATCH 3/4] space in comment --- pandora_console/extras/mr/69.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/extras/mr/69.sql b/pandora_console/extras/mr/69.sql index f7f9e6f8e1..45047f9149 100644 --- a/pandora_console/extras/mr/69.sql +++ b/pandora_console/extras/mr/69.sql @@ -7754,7 +7754,7 @@ ALTER TABLE `tdeployment_hosts` DROP COLUMN `arch`; -- Update all deployment recon tasks port UPDATE `trecon_task` SET `field4` = 41121 WHERE `type` = 9; ---Update execution in proxmox discovery plugin +-- Update execution in proxmox discovery plugin SET @short_name = 'pandorafms.proxmox'; SELECT @id_app := `id_app` FROM `tdiscovery_apps` WHERE `short_name` = @short_name; UPDATE `tdiscovery_apps_executions` SET `execution` = ''_exec1_' --conf '_tempfileProxmox_'' WHERE `id_app` = @id_app; From 970103c1ea63d4615ea69cd9a26acf6cbabc7a3b Mon Sep 17 00:00:00 2001 From: alejandro Date: Thu, 25 Apr 2024 15:44:52 +0200 Subject: [PATCH 4/4] update pandoradb_data con new proxmox execution --- pandora_console/pandoradb_data.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/pandoradb_data.sql b/pandora_console/pandoradb_data.sql index c80dac17f4..8ba8cf8ade 100644 --- a/pandora_console/pandoradb_data.sql +++ b/pandora_console/pandoradb_data.sql @@ -2947,7 +2947,7 @@ SELECT @id_app := `id_app` FROM `tdiscovery_apps` WHERE `short_name` = @short_na INSERT IGNORE INTO `tdiscovery_apps_scripts` (`id_app`, `macro`, `value`) VALUES (@id_app, '_exec1_', 'bin/pandora_proxmox'); -- Insert into tdiscovery_apps_executions -INSERT IGNORE INTO `tdiscovery_apps_executions` (`id`, `id_app`, `execution`) VALUES (1, @id_app, ''_exec1_' -g '__taskGroup__' --host '_host_' --port '_port_' --user '_user_' --password '_password_' --vm '_scanVM_' --lxc '_scanLXC_' --backups '_scanBackups_' --nodes '_scanNodes_' --transfer_mode tentacle --tentacle_address '_tentacleIP_' --tentacle_port '_tentaclePort_' --as_discovery_plugin 1'); +INSERT IGNORE INTO `tdiscovery_apps_executions` (`id`, `id_app`, `execution`) VALUES (1, @id_app, ''_exec1_' --conf '_tempfileProxmox_''); -- Insert new SAP APP SET @short_name = 'pandorafms.sap.deset';