mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Added Proxmox discovery APP to MR and pandoradb_data
This commit is contained in:
parent
bab81b08e2
commit
64effb2e91
@ -44,4 +44,19 @@ ADD COLUMN `time_init` VARCHAR(45) NULL AFTER `date_init`,
|
|||||||
ADD COLUMN `date_end` VARCHAR(45) NULL AFTER `time_init`,
|
ADD COLUMN `date_end` VARCHAR(45) NULL AFTER `time_init`,
|
||||||
ADD COLUMN `time_end` VARCHAR(45) NULL AFTER `date_end`;
|
ADD COLUMN `time_end` VARCHAR(45) NULL AFTER `date_end`;
|
||||||
|
|
||||||
|
-- Insert new Proxmox APP
|
||||||
|
SET @short_name = 'pandorafms.proxmox';
|
||||||
|
SET @name = 'Proxmox';
|
||||||
|
SET @section = 'app';
|
||||||
|
SET @description = 'Monitor Proxmox VMs, LXC, backups and nodes from a specific host';
|
||||||
|
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_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');
|
||||||
|
|
||||||
COMMIT;
|
COMMIT;
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user