mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Move inventory to open
This commit is contained in:
parent
2ad8fac652
commit
b46f9c9319
@ -207,6 +207,6 @@ module_end
|
|||||||
|
|
||||||
module_plugin grep_log /var/log/auth.log Syslog sshd
|
module_plugin grep_log /var/log/auth.log Syslog sshd
|
||||||
|
|
||||||
# Plugin for inventory on the agent (Only Enterprise)
|
# Plugin for invenotry on the agent.
|
||||||
|
|
||||||
# module_plugin inventory 1 cpu ram video nic hd cdrom software
|
# module_plugin inventory 1 cpu ram video nic hd cdrom software
|
||||||
|
@ -269,7 +269,7 @@ module_plugin grep_log /var/log/syslog Syslog ssh
|
|||||||
#module_description Used memory in KB postprocessed to be in MB
|
#module_description Used memory in KB postprocessed to be in MB
|
||||||
#module_end
|
#module_end
|
||||||
|
|
||||||
# Plugin for inventory on the agent (Only Enterprise)
|
# Plugin for invenotry on the agent.
|
||||||
|
|
||||||
# module_plugin inventory 1 cpu ram video nic hd cdrom software init_services filesystem users process ip route
|
# module_plugin inventory 1 cpu ram video nic hd cdrom software init_services filesystem users process ip route
|
||||||
|
|
||||||
|
@ -164,5 +164,5 @@ module_end
|
|||||||
|
|
||||||
module_plugin grep_log /var/log/syslog Syslog ssh
|
module_plugin grep_log /var/log/syslog Syslog ssh
|
||||||
|
|
||||||
# Plugin for inventory on the agent (Only Enterprise)
|
# Plugin for invenotry on the agent.
|
||||||
# module_plugin inventory 1 cpu ram video nic hd cdrom software
|
# module_plugin inventory 1 cpu ram video nic hd cdrom software
|
||||||
|
@ -379,6 +379,6 @@ module_end
|
|||||||
|
|
||||||
#module_plugin grep_log /var/log/syslog Syslog ssh
|
#module_plugin grep_log /var/log/syslog Syslog ssh
|
||||||
|
|
||||||
# Plugin for inventory on the agent (Only Enterprise)
|
# Plugin for invenotry on the agent.
|
||||||
|
|
||||||
# module_plugin inventory 1 cpu ram video nic hd cdrom software
|
# module_plugin inventory 1 cpu ram video nic hd cdrom software
|
||||||
|
@ -272,7 +272,7 @@ module_plugin pandora_df_free
|
|||||||
|
|
||||||
module_plugin grep_log /var/log/auth.log Syslog sshd
|
module_plugin grep_log /var/log/auth.log Syslog sshd
|
||||||
|
|
||||||
# Plugin for inventory on the agent (Only Enterprise)
|
# Plugin for invenotry on the agent.
|
||||||
# module_plugin inventory 1 cpu ram video nic hd cdrom software init_services filesystem users route
|
# module_plugin inventory 1 cpu ram video nic hd cdrom software init_services filesystem users route
|
||||||
|
|
||||||
# Log collection modules. Only for enterprise version, this will collect log files for forensic analysis.
|
# Log collection modules. Only for enterprise version, this will collect log files for forensic analysis.
|
||||||
|
@ -269,7 +269,7 @@ module_plugin pandora_netusage
|
|||||||
# Service autodiscovery plugin
|
# Service autodiscovery plugin
|
||||||
module_plugin autodiscover --default
|
module_plugin autodiscover --default
|
||||||
|
|
||||||
# Plugin for inventory on the agent (Only Enterprise)
|
# Plugin for invenotry on the agent.
|
||||||
#module_plugin inventory 1 cpu ram video nic hd cdrom software init_services filesystem users route
|
#module_plugin inventory 1 cpu ram video nic hd cdrom software init_services filesystem users route
|
||||||
|
|
||||||
# Log collection modules. Only for enterprise version, this will collect log files for forensic analysis.
|
# Log collection modules. Only for enterprise version, this will collect log files for forensic analysis.
|
||||||
|
@ -232,6 +232,6 @@ module_end
|
|||||||
|
|
||||||
module_plugin grep_log /var/log/auth.log Syslog sshd
|
module_plugin grep_log /var/log/auth.log Syslog sshd
|
||||||
|
|
||||||
# Plugin for inventory on the agent (Only Enterprise)
|
# Plugin for invenotry on the agent.
|
||||||
|
|
||||||
# module_plugin inventory 1 cpu ram video nic hd cdrom software
|
# module_plugin inventory 1 cpu ram video nic hd cdrom software
|
||||||
|
@ -1685,3 +1685,10 @@ enterprise/operation/agentes/manage_transmap.php
|
|||||||
enterprise/operation/agentes/manage_transmap_creation.php
|
enterprise/operation/agentes/manage_transmap_creation.php
|
||||||
enterprise/operation/agentes/manage_transmap_creation_phases_data.php
|
enterprise/operation/agentes/manage_transmap_creation_phases_data.php
|
||||||
enterprise/operation/agentes/transactional_map.php
|
enterprise/operation/agentes/transactional_map.php
|
||||||
|
enterprise/godmode/agentes/inventory_manager.php
|
||||||
|
enterprise/operation/agentes/agent_inventory.php
|
||||||
|
enterprise/godmode/modules/manage_inventory_modules.php
|
||||||
|
enterprise/godmode/modules/manage_inventory_modules_form.php
|
||||||
|
enterprise/operation/inventory/inventory.php
|
||||||
|
|
||||||
|
|
||||||
|
@ -211,6 +211,7 @@ $result = db_process_sql($sql);
|
|||||||
if (db_get_num_rows($sql) == 0) {
|
if (db_get_num_rows($sql) == 0) {
|
||||||
echo ' </td></tr><tr><td>';
|
echo ' </td></tr><tr><td>';
|
||||||
} else {
|
} else {
|
||||||
|
$table = new stdClass();
|
||||||
$table->width = '100%';
|
$table->width = '100%';
|
||||||
$table->class = 'databox filters';
|
$table->class = 'databox filters';
|
||||||
$table->data = [];
|
$table->data = [];
|
||||||
|
@ -87,10 +87,12 @@ if ($id_os == 0) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$interpreter = (string) get_parameter('interpreter');
|
$interpreter = (string) get_parameter('interpreter');
|
||||||
|
$script_mode = (string) get_parameter('script_mode');
|
||||||
$code = (string) get_parameter('code');
|
$code = (string) get_parameter('code');
|
||||||
$code = base64_encode(str_replace("\r", '', html_entity_decode($code, ENT_QUOTES)));
|
$code = base64_encode(str_replace("\r", '', html_entity_decode($code, ENT_QUOTES)));
|
||||||
$format = (string) get_parameter('format');
|
$format = (string) get_parameter('format');
|
||||||
$block_mode = (int) get_parameter('block_mode', 0);
|
$block_mode = (int) get_parameter('block_mode', 0);
|
||||||
|
$script_path = (string) get_parameter('script_path');
|
||||||
|
|
||||||
// Create inventory module.
|
// Create inventory module.
|
||||||
if ($create_module_inventory === true) {
|
if ($create_module_inventory === true) {
|
||||||
@ -102,6 +104,8 @@ if ($create_module_inventory === true) {
|
|||||||
'code' => $code,
|
'code' => $code,
|
||||||
'data_format' => $format,
|
'data_format' => $format,
|
||||||
'block_mode' => $block_mode,
|
'block_mode' => $block_mode,
|
||||||
|
'script_mode' => $script_mode,
|
||||||
|
'script_path' => $script_path,
|
||||||
];
|
];
|
||||||
|
|
||||||
$result = (bool) inventory_create_inventory_module($values);
|
$result = (bool) inventory_create_inventory_module($values);
|
||||||
@ -128,6 +132,8 @@ if ($create_module_inventory === true) {
|
|||||||
'code' => $code,
|
'code' => $code,
|
||||||
'data_format' => $format,
|
'data_format' => $format,
|
||||||
'block_mode' => $block_mode,
|
'block_mode' => $block_mode,
|
||||||
|
'script_mode' => $script_mode,
|
||||||
|
'script_path' => $script_path,
|
||||||
];
|
];
|
||||||
|
|
||||||
$result = inventory_update_inventory_module($id_module_inventory, $values);
|
$result = inventory_update_inventory_module($id_module_inventory, $values);
|
||||||
@ -289,7 +295,7 @@ if ($result === false) {
|
|||||||
$data = [];
|
$data = [];
|
||||||
$begin = false;
|
$begin = false;
|
||||||
if ($management_allowed === true) {
|
if ($management_allowed === true) {
|
||||||
$data[0] = '<strong><a href="index.php?sec='.$sec.'&sec2=godmode/modules/manage_inventory_modules_form&id_module_inventory='.$row['id_module_inventory'].'">'.$row['name'].'</a></strong>';
|
$data[0] = '<strong><a href="index.php?sec='.$sec.'&sec2=enterprise/godmode/modules/manage_inventory_modules_form&id_module_inventory='.$row['id_module_inventory'].'">'.$row['name'].'</a></strong>';
|
||||||
} else {
|
} else {
|
||||||
$data[0] = '<strong>'.$row['name'].'</strong>';
|
$data[0] = '<strong>'.$row['name'].'</strong>';
|
||||||
}
|
}
|
||||||
|
@ -153,7 +153,6 @@ $table->data[7][0] .= ui_print_help_tip(__("Here is placed the script for the RE
|
|||||||
|
|
||||||
$table->data[7][1] = html_print_textarea('code', 25, 80, base64_decode($code), '', true);
|
$table->data[7][1] = html_print_textarea('code', 25, 80, base64_decode($code), '', true);
|
||||||
|
|
||||||
|
|
||||||
echo '<form name="inventorymodule" id="inventorymodule_form" method="post"
|
echo '<form name="inventorymodule" id="inventorymodule_form" method="post"
|
||||||
action="index.php?sec='.$sec.'&sec2=godmode/modules/manage_inventory_modules">';
|
action="index.php?sec='.$sec.'&sec2=godmode/modules/manage_inventory_modules">';
|
||||||
|
|
||||||
|
@ -387,11 +387,11 @@ web_threads 1
|
|||||||
# Uncomment to perform web checks with LWP instead of CURL.
|
# Uncomment to perform web checks with LWP instead of CURL.
|
||||||
#web_engine lwp
|
#web_engine lwp
|
||||||
|
|
||||||
# Enable (1) or disable (0) Pandora FMS Inventory Server (PANDORA FMS ENTERPRISE ONLY).
|
# Enable (1) or disable (0) Pandora FMS Inventory Server.
|
||||||
|
|
||||||
inventoryserver 1
|
inventoryserver 1
|
||||||
|
|
||||||
# Number of threads for the Web Server (PANDORA FMS ENTERPRISE ONLY).
|
# Number of threads for the Inventory Server.
|
||||||
|
|
||||||
inventory_threads 1
|
inventory_threads 1
|
||||||
|
|
||||||
|
@ -379,11 +379,11 @@ web_threads 1
|
|||||||
# Uncomment to perform web checks with LWP instead of CURL.
|
# Uncomment to perform web checks with LWP instead of CURL.
|
||||||
#web_engine lwp
|
#web_engine lwp
|
||||||
|
|
||||||
# Enable (1) or disable (0) Pandora FMS Inventory Server (PANDORA FMS ENTERPRISE ONLY).
|
# Enable (1) or disable (0) Pandora FMS Inventory Server.
|
||||||
|
|
||||||
inventoryserver 1
|
inventoryserver 1
|
||||||
|
|
||||||
# Number of threads for the Web Server (PANDORA FMS ENTERPRISE ONLY).
|
# Number of threads for the Inventory Server.
|
||||||
|
|
||||||
inventory_threads 1
|
inventory_threads 1
|
||||||
|
|
||||||
|
@ -466,11 +466,11 @@ web_timeout 60
|
|||||||
# Uncomment to perform web checks with LWP instead of CURL.
|
# Uncomment to perform web checks with LWP instead of CURL.
|
||||||
#web_engine lwp
|
#web_engine lwp
|
||||||
|
|
||||||
# Enable (1) or disable (0) Pandora FMS Inventory Server (PANDORA FMS ENTERPRISE ONLY).
|
# Enable (1) or disable (0) Pandora FMS Inventory Server.
|
||||||
|
|
||||||
inventoryserver 1
|
inventoryserver 1
|
||||||
|
|
||||||
# Number of threads for the Web Server (PANDORA FMS ENTERPRISE ONLY).
|
# Number of threads for the Inventory Server.
|
||||||
|
|
||||||
inventory_threads 1
|
inventory_threads 1
|
||||||
|
|
||||||
|
@ -384,11 +384,11 @@ web_threads 1
|
|||||||
# Uncomment to perform web checks with LWP instead of CURL.
|
# Uncomment to perform web checks with LWP instead of CURL.
|
||||||
#web_engine lwp
|
#web_engine lwp
|
||||||
|
|
||||||
# Enable (1) or disable (0) Pandora FMS Inventory Server (PANDORA FMS ENTERPRISE ONLY).
|
# Enable (1) or disable (0) Pandora FMS Inventory Server.
|
||||||
|
|
||||||
inventoryserver 1
|
inventoryserver 1
|
||||||
|
|
||||||
# Number of threads for the Web Server (PANDORA FMS ENTERPRISE ONLY).
|
# Number of threads for the Inventory Server.
|
||||||
|
|
||||||
inventory_threads 1
|
inventory_threads 1
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user