mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Merge remote-tracking branch 'origin/develop' into ent-7074-Command-Center
This commit is contained in:
commit
8b7c5c08c6
@ -1,5 +1,5 @@
|
|||||||
package: pandorafms-agent-unix
|
package: pandorafms-agent-unix
|
||||||
Version: 7.0NG.754-210604
|
Version: 7.0NG.754-210607
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Section: admin
|
Section: admin
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
pandora_version="7.0NG.754-210604"
|
pandora_version="7.0NG.754-210607"
|
||||||
|
|
||||||
echo "Test if you has the tools for to make the packages."
|
echo "Test if you has the tools for to make the packages."
|
||||||
whereis dpkg-deb | cut -d":" -f2 | grep dpkg-deb > /dev/null
|
whereis dpkg-deb | cut -d":" -f2 | grep dpkg-deb > /dev/null
|
||||||
|
@ -1015,7 +1015,7 @@ my $Sem = undef;
|
|||||||
my $ThreadSem = undef;
|
my $ThreadSem = undef;
|
||||||
|
|
||||||
use constant AGENT_VERSION => '7.0NG.754';
|
use constant AGENT_VERSION => '7.0NG.754';
|
||||||
use constant AGENT_BUILD => '210604';
|
use constant AGENT_BUILD => '210607';
|
||||||
|
|
||||||
# Agent log default file size maximum and instances
|
# Agent log default file size maximum and instances
|
||||||
use constant DEFAULT_MAX_LOG_SIZE => 600000;
|
use constant DEFAULT_MAX_LOG_SIZE => 600000;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
%define name pandorafms_agent_unix
|
%define name pandorafms_agent_unix
|
||||||
%define version 7.0NG.754
|
%define version 7.0NG.754
|
||||||
%define release 210604
|
%define release 210607
|
||||||
|
|
||||||
Summary: Pandora FMS Linux agent, PERL version
|
Summary: Pandora FMS Linux agent, PERL version
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
%define name pandorafms_agent_unix
|
%define name pandorafms_agent_unix
|
||||||
%define version 7.0NG.754
|
%define version 7.0NG.754
|
||||||
%define release 210604
|
%define release 210607
|
||||||
|
|
||||||
Summary: Pandora FMS Linux agent, PERL version
|
Summary: Pandora FMS Linux agent, PERL version
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
# **********************************************************************
|
# **********************************************************************
|
||||||
|
|
||||||
PI_VERSION="7.0NG.754"
|
PI_VERSION="7.0NG.754"
|
||||||
PI_BUILD="210604"
|
PI_BUILD="210607"
|
||||||
OS_NAME=`uname -s`
|
OS_NAME=`uname -s`
|
||||||
|
|
||||||
FORCE=0
|
FORCE=0
|
||||||
|
@ -186,7 +186,7 @@ UpgradeApplicationID
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
Version
|
Version
|
||||||
{210604}
|
{210607}
|
||||||
|
|
||||||
ViewReadme
|
ViewReadme
|
||||||
{Yes}
|
{Yes}
|
||||||
|
@ -30,7 +30,7 @@ using namespace Pandora;
|
|||||||
using namespace Pandora_Strutils;
|
using namespace Pandora_Strutils;
|
||||||
|
|
||||||
#define PATH_SIZE _MAX_PATH+1
|
#define PATH_SIZE _MAX_PATH+1
|
||||||
#define PANDORA_VERSION ("7.0NG.754 Build 210604")
|
#define PANDORA_VERSION ("7.0NG.754 Build 210607")
|
||||||
|
|
||||||
string pandora_path;
|
string pandora_path;
|
||||||
string pandora_dir;
|
string pandora_dir;
|
||||||
|
@ -11,7 +11,7 @@ BEGIN
|
|||||||
VALUE "LegalCopyright", "Artica ST"
|
VALUE "LegalCopyright", "Artica ST"
|
||||||
VALUE "OriginalFilename", "PandoraAgent.exe"
|
VALUE "OriginalFilename", "PandoraAgent.exe"
|
||||||
VALUE "ProductName", "Pandora FMS Windows Agent"
|
VALUE "ProductName", "Pandora FMS Windows Agent"
|
||||||
VALUE "ProductVersion", "(7.0NG.754(Build 210604))"
|
VALUE "ProductVersion", "(7.0NG.754(Build 210607))"
|
||||||
VALUE "FileVersion", "1.0.0.0"
|
VALUE "FileVersion", "1.0.0.0"
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
package: pandorafms-console
|
package: pandorafms-console
|
||||||
Version: 7.0NG.754-210604
|
Version: 7.0NG.754-210607
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Section: admin
|
Section: admin
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
pandora_version="7.0NG.754-210604"
|
pandora_version="7.0NG.754-210607"
|
||||||
|
|
||||||
package_pear=0
|
package_pear=0
|
||||||
package_pandora=1
|
package_pandora=1
|
||||||
|
@ -383,7 +383,7 @@ function mainAgentsModules()
|
|||||||
&full_agents_id='.$full_agents.'&selection_agent_module='.$selection_a_m.'">'.html_print_image('images/full_screen.png', true, ['title' => __('Full screen mode'), 'class' => 'invert_filter']).'</a>';
|
&full_agents_id='.$full_agents.'&selection_agent_module='.$selection_a_m.'">'.html_print_image('images/full_screen.png', true, ['title' => __('Full screen mode'), 'class' => 'invert_filter']).'</a>';
|
||||||
} else {
|
} else {
|
||||||
$fullscreen['text'] = '<a href="index.php?extension_in_menu=estado&sec=extensions&sec2=extensions/agents_modules&pure=1&
|
$fullscreen['text'] = '<a href="index.php?extension_in_menu=estado&sec=extensions&sec2=extensions/agents_modules&pure=1&
|
||||||
offset='.$offset.'&group_id='.$group_id.'&modulegroup='.$modulegroup.'&refresh='.$refr.'">'.html_print_image('images/full_screen.png', true, ['title' => __('Full screen mode')]).'</a>';
|
offset='.$offset.'&group_id='.$group_id.'&modulegroup='.$modulegroup.'&refresh='.$refr.'">'.html_print_image('images/full_screen.png', true, ['title' => __('Full screen mode'), 'class' => 'invert_filter']).'</a>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -238,7 +238,7 @@ echo '</table>';
|
|||||||
if (!$config['disable_help']) {
|
if (!$config['disable_help']) {
|
||||||
echo '<div class="disable_help">';
|
echo '<div class="disable_help">';
|
||||||
echo '<strong>';
|
echo '<strong>';
|
||||||
echo "<a class='color-black-grey' target='_blank' href='http://pandorafms.com/Library/Library/'>".__('Get more modules on Monitoring Library').'</a>';
|
echo "<a class='color-black-grey invert_filter' target='_blank' href='http://pandorafms.com/Library/Library/'>".__('Get more modules on Monitoring Library').'</a>';
|
||||||
echo '</strong>';
|
echo '</strong>';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
}
|
}
|
||||||
|
@ -810,7 +810,8 @@ foreach ($simple_alerts as $alert) {
|
|||||||
'images/lightbulb_off.png',
|
'images/lightbulb_off.png',
|
||||||
1,
|
1,
|
||||||
'padding:0px',
|
'padding:0px',
|
||||||
true
|
true,
|
||||||
|
['class' => 'invert_filter']
|
||||||
);
|
);
|
||||||
$data[4] .= html_print_input_hidden('enable_alert', 1, true);
|
$data[4] .= html_print_input_hidden('enable_alert', 1, true);
|
||||||
} else {
|
} else {
|
||||||
@ -879,7 +880,10 @@ foreach ($simple_alerts as $alert) {
|
|||||||
$data[4] .= html_print_image(
|
$data[4] .= html_print_image(
|
||||||
'images/add.disabled.png',
|
'images/add.disabled.png',
|
||||||
true,
|
true,
|
||||||
['title' => __('Add action')]
|
[
|
||||||
|
'title' => __('Add action'),
|
||||||
|
'class' => 'invert_filter',
|
||||||
|
]
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
if ((int) $alert['id_policy_alerts'] === 0) {
|
if ((int) $alert['id_policy_alerts'] === 0) {
|
||||||
|
@ -224,31 +224,31 @@ $table_days->data[0] = array_fill(0, 7, html_print_image('images/blade.png', tru
|
|||||||
|
|
||||||
$days = [];
|
$days = [];
|
||||||
if ($template['monday']) {
|
if ($template['monday']) {
|
||||||
$table_days->data[0][0] = html_print_image('images/tick.png', true);
|
$table_days->data[0][0] = html_print_image('images/tick.png', true, ['class' => 'invert_filter']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($template['tuesday']) {
|
if ($template['tuesday']) {
|
||||||
$table_days->data[0][1] = html_print_image('images/tick.png', true);
|
$table_days->data[0][1] = html_print_image('images/tick.png', true, ['class' => 'invert_filter']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($template['wednesday']) {
|
if ($template['wednesday']) {
|
||||||
$table_days->data[0][2] = html_print_image('images/tick.png', true);
|
$table_days->data[0][2] = html_print_image('images/tick.png', true, ['class' => 'invert_filter']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($template['thursday']) {
|
if ($template['thursday']) {
|
||||||
$table_days->data[0][3] = html_print_image('images/tick.png', true);
|
$table_days->data[0][3] = html_print_image('images/tick.png', true, ['class' => 'invert_filter']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($template['friday']) {
|
if ($template['friday']) {
|
||||||
$table_days->data[0][4] = html_print_image('images/tick.png', true);
|
$table_days->data[0][4] = html_print_image('images/tick.png', true, ['class' => 'invert_filter']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($template['saturday']) {
|
if ($template['saturday']) {
|
||||||
$table_days->data[0][5] = html_print_image('images/tick.png', true);
|
$table_days->data[0][5] = html_print_image('images/tick.png', true, ['class' => 'invert_filter']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($template['sunday']) {
|
if ($template['sunday']) {
|
||||||
$table_days->data[0][6] = html_print_image('images/tick.png', true);
|
$table_days->data[0][6] = html_print_image('images/tick.png', true, ['class' => 'invert_filter']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$data[0] = html_print_table($table_days, true);
|
$data[0] = html_print_table($table_days, true);
|
||||||
@ -265,7 +265,7 @@ $table_time->styleTable = 'padding: 1px; margin: 0px; text-align: center; height
|
|||||||
// $data[0] = __('Time from') . ' / ' . __('Time to');
|
// $data[0] = __('Time from') . ' / ' . __('Time to');
|
||||||
if ($template['time_from'] == $template['time_to']) {
|
if ($template['time_from'] == $template['time_to']) {
|
||||||
$table_time->head[0] = '00:00:00<br>-<br>23:59:59';
|
$table_time->head[0] = '00:00:00<br>-<br>23:59:59';
|
||||||
$table_time->data[0][0] = html_print_image('images/tick.png', true);
|
$table_time->data[0][0] = html_print_image('images/tick.png', true, ['class' => 'invert_filter']);
|
||||||
} else {
|
} else {
|
||||||
$from_array = explode(':', $template['time_from']);
|
$from_array = explode(':', $template['time_from']);
|
||||||
$from = ($from_array[0] * SECONDS_1HOUR + $from_array[1] * SECONDS_1MINUTE + $from_array[2]);
|
$from = ($from_array[0] * SECONDS_1HOUR + $from_array[1] * SECONDS_1MINUTE + $from_array[2]);
|
||||||
@ -278,7 +278,7 @@ if ($template['time_from'] == $template['time_to']) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$table_time->head[1] = $template['time_from'].'<br>-<br>'.$template['time_to'];
|
$table_time->head[1] = $template['time_from'].'<br>-<br>'.$template['time_to'];
|
||||||
$table_time->data[0][1] = html_print_image('images/tick.png', true);
|
$table_time->data[0][1] = html_print_image('images/tick.png', true, ['class' => 'invert_filter']);
|
||||||
|
|
||||||
if ($template['time_to'] != '23:59:59') {
|
if ($template['time_to'] != '23:59:59') {
|
||||||
$table_time->head[2] = $template['time_to'].'<br>-<br>23:59:59';
|
$table_time->head[2] = $template['time_to'].'<br>-<br>23:59:59';
|
||||||
@ -287,15 +287,15 @@ if ($template['time_from'] == $template['time_to']) {
|
|||||||
} else {
|
} else {
|
||||||
if ($template['time_to'] != '00:00:00') {
|
if ($template['time_to'] != '00:00:00') {
|
||||||
$table_time->head[0] = '00:00:00<br>-<br>'.$template['time_to'];
|
$table_time->head[0] = '00:00:00<br>-<br>'.$template['time_to'];
|
||||||
$table_time->data[0][0] = html_print_image('images/tick.png', true);
|
$table_time->data[0][0] = html_print_image('images/tick.png', true, ['class' => 'invert_filter']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$table_time->head[1] = $template['time_to'].'<br>-<br>'.$template['time_from'];
|
$table_time->head[1] = $template['time_to'].'<br>-<br>'.$template['time_from'];
|
||||||
$table_time->data[0][1] = html_print_image('images/blade.png', true);
|
$table_time->data[0][1] = html_print_image('images/blade.png', true, ['class' => 'invert_filter']);
|
||||||
|
|
||||||
if ($template['time_from'] != '23:59:59') {
|
if ($template['time_from'] != '23:59:59') {
|
||||||
$table_time->head[2] = $template['time_from'].'<br>-<br>23:59:59';
|
$table_time->head[2] = $template['time_from'].'<br>-<br>23:59:59';
|
||||||
$table_time->data[0][2] = html_print_image('images/tick.png', true);
|
$table_time->data[0][2] = html_print_image('images/tick.png', true, ['class' => 'invert_filter']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -354,7 +354,7 @@ $table->style[0] = 'font-weight: bold; text-align: left;';
|
|||||||
if (count($actions) == 1 && isset($actions[0])) {
|
if (count($actions) == 1 && isset($actions[0])) {
|
||||||
$table->head[1] = __('Every time that the alert is fired');
|
$table->head[1] = __('Every time that the alert is fired');
|
||||||
$table->data[0][0] = $actions[0]['name'];
|
$table->data[0][0] = $actions[0]['name'];
|
||||||
$table->data[0][1] = html_print_image('images/tick.png', true);
|
$table->data[0][1] = html_print_image('images/tick.png', true, ['class' => 'invert_filter']);
|
||||||
} else {
|
} else {
|
||||||
foreach ($actions as $kaction => $action) {
|
foreach ($actions as $kaction => $action) {
|
||||||
$table->data[$kaction][0] = $action['name'];
|
$table->data[$kaction][0] = $action['name'];
|
||||||
@ -364,7 +364,7 @@ if (count($actions) == 1 && isset($actions[0])) {
|
|||||||
|
|
||||||
foreach ($action['escalation'] as $k => $v) {
|
foreach ($action['escalation'] as $k => $v) {
|
||||||
if ($v > 0) {
|
if ($v > 0) {
|
||||||
$table->data[$kaction][$k] = html_print_image('images/tick.png', true);
|
$table->data[$kaction][$k] = html_print_image('images/tick.png', true, ['class' => 'invert_filter']);
|
||||||
} else {
|
} else {
|
||||||
$table->data[$kaction][$k] = html_print_image('images/blade.png', true);
|
$table->data[$kaction][$k] = html_print_image('images/blade.png', true);
|
||||||
}
|
}
|
||||||
|
@ -261,7 +261,10 @@ $table->data[1][2] .= html_print_select(
|
|||||||
);
|
);
|
||||||
$table->data[1][3] = html_print_select([], 'module[]', '', false, '', '', true, true, false, '', false, 'width:180px;');
|
$table->data[1][3] = html_print_select([], 'module[]', '', false, '', '', true, true, false, '', false, 'width:180px;');
|
||||||
|
|
||||||
$templates = alerts_get_alert_templates(false, ['id', 'name']);
|
$usr_groups = users_get_groups($config['id_user'], 'LW', true);
|
||||||
|
$filter_groups = '';
|
||||||
|
$filter_groups = implode(',', array_keys($usr_groups));
|
||||||
|
$templates = alerts_get_alert_templates(['id_group IN ('.$filter_groups.')'], ['id', 'name']);
|
||||||
$table->data[2][0] = __('Alert template');
|
$table->data[2][0] = __('Alert template');
|
||||||
$table->data[2][1] = html_print_select(
|
$table->data[2][1] = html_print_select(
|
||||||
index_array($templates, 'id', 'name'),
|
index_array($templates, 'id', 'name'),
|
||||||
|
@ -252,7 +252,10 @@ $table->size[3] = '40%';
|
|||||||
|
|
||||||
$table->data = [];
|
$table->data = [];
|
||||||
|
|
||||||
$templates = alerts_get_alert_templates(false, ['id', 'name']);
|
$usr_groups = users_get_groups($config['id_user'], 'LW', true);
|
||||||
|
$filter_groups = '';
|
||||||
|
$filter_groups = implode(',', array_keys($usr_groups));
|
||||||
|
$templates = alerts_get_alert_templates(['id_group IN ('.$filter_groups.')'], ['id', 'name']);
|
||||||
$table->data[0][0] = __('Alert template');
|
$table->data[0][0] = __('Alert template');
|
||||||
$table->data[0][1] = html_print_select(
|
$table->data[0][1] = html_print_select(
|
||||||
index_array($templates, 'id', 'name'),
|
index_array($templates, 'id', 'name'),
|
||||||
|
@ -73,7 +73,7 @@ if (! check_acl($config['id_user'], 0, 'RW')
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($edit_graph) {
|
if ($edit_graph === true) {
|
||||||
$graphInTgraph = db_get_row_sql(
|
$graphInTgraph = db_get_row_sql(
|
||||||
'SELECT * FROM tgraph WHERE id_graph = '.$id_graph
|
'SELECT * FROM tgraph WHERE id_graph = '.$id_graph
|
||||||
);
|
);
|
||||||
@ -113,18 +113,18 @@ if ($edit_graph) {
|
|||||||
// -----------------------
|
// -----------------------
|
||||||
// CREATE/EDIT GRAPH FORM
|
// CREATE/EDIT GRAPH FORM
|
||||||
// -----------------------
|
// -----------------------
|
||||||
$url = 'index.php?sec=reporting&sec2=godmode/reporting/graph_builder';
|
$url = 'index.php?sec=reporting&sec2=godmode/reporting/graph_builder&edit_graph=1';
|
||||||
if ($edit_graph) {
|
if ($edit_graph === true) {
|
||||||
$output = "<form method='post' action='".$url.'&edit_graph=1&update_graph=1&id='.$id_graph."'>";
|
$output = "<form method='post' action='".$url.'&update_graph=1&id='.$id_graph."'>";
|
||||||
} else {
|
} else {
|
||||||
$output = "<form method='post' action='".$url."&edit_graph=1&add_graph=1'>";
|
$output = "<form method='post' action='".$url."&add_graph=1'>";
|
||||||
}
|
}
|
||||||
|
|
||||||
$output .= "<table width='100%' cellpadding=4 cellspacing=4 class='databox filters'>";
|
$output .= "<table width='100%' cellpadding=4 cellspacing=4 class='databox filters'>";
|
||||||
$output .= '<tr>';
|
$output .= '<tr>';
|
||||||
$output .= "<td class='datos'><b>".__('Name').'</b></td>';
|
$output .= "<td class='datos'><b>".__('Name').'</b></td>';
|
||||||
$output .= "<td class='datos'><input type='text' name='name' size='25' ";
|
$output .= "<td class='datos'><input type='text' name='name' size='25' ";
|
||||||
if ($edit_graph) {
|
if ($edit_graph === true) {
|
||||||
$output .= "value='".$graphInTgraph['name']."' ";
|
$output .= "value='".$graphInTgraph['name']."' ";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -179,7 +179,7 @@ $output .= '</td></tr>';
|
|||||||
$output .= '<tr>';
|
$output .= '<tr>';
|
||||||
$output .= "<td class='datos2'><b>".__('Description').'</b></td>';
|
$output .= "<td class='datos2'><b>".__('Description').'</b></td>';
|
||||||
$output .= "<td class='datos2' colspan=3><textarea name='description' class='height_45px' cols=55 rows=2>";
|
$output .= "<td class='datos2' colspan=3><textarea name='description' class='height_45px' cols=55 rows=2>";
|
||||||
if ($edit_graph) {
|
if ($edit_graph === true) {
|
||||||
$output .= $graphInTgraph['description'];
|
$output .= $graphInTgraph['description'];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -291,15 +291,30 @@ $output .= '</tr>';
|
|||||||
|
|
||||||
$output .= '</table>';
|
$output .= '</table>';
|
||||||
|
|
||||||
if ($edit_graph) {
|
$stringButton = ($edit_graph === true) ? __('Update') : __('Create');
|
||||||
$output .= "<div class='w100p'>";
|
|
||||||
$output .= "<input type=submit name='store' class='sub upd right' value='".__('Update')."'>";
|
$output .= html_print_div(
|
||||||
$output .= '</div>';
|
[
|
||||||
} else {
|
'class' => 'w100p',
|
||||||
$output .= "<div class='w100p'>";
|
'content' => "<input type=submit name='store' class='sub next right databox' value='".$stringButton."'>",
|
||||||
$output .= "<input type=submit name='store' class='sub next right' value='".__('Create')."'>";
|
],
|
||||||
$output .= '</div>';
|
true
|
||||||
}
|
);
|
||||||
|
|
||||||
|
$output .= html_print_div(
|
||||||
|
[
|
||||||
|
'class' => 'w100p',
|
||||||
|
'content' => html_print_button(
|
||||||
|
__('Go back'),
|
||||||
|
'go_back',
|
||||||
|
false,
|
||||||
|
'window.location.href = \'index.php?sec=reporting&sec2=godmode/reporting/graphs\'',
|
||||||
|
'class="sub cancel right"',
|
||||||
|
true
|
||||||
|
),
|
||||||
|
],
|
||||||
|
true
|
||||||
|
);
|
||||||
|
|
||||||
$output .= '</form>';
|
$output .= '</form>';
|
||||||
|
|
||||||
|
@ -109,7 +109,7 @@ if ($id_graph !== 0) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if ($add_graph) {
|
if ($add_graph === true) {
|
||||||
$name = get_parameter_post('name');
|
$name = get_parameter_post('name');
|
||||||
$description = get_parameter_post('description');
|
$description = get_parameter_post('description');
|
||||||
$module_number = get_parameter_post('module_number');
|
$module_number = get_parameter_post('module_number');
|
||||||
@ -178,7 +178,7 @@ if ($update_graph) {
|
|||||||
$stacked = $threshold;
|
$stacked = $threshold;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (trim($name) != '') {
|
if (empty(trim($name)) === false) {
|
||||||
$success = db_process_sql_update(
|
$success = db_process_sql_update(
|
||||||
'tgraph',
|
'tgraph',
|
||||||
[
|
[
|
||||||
@ -220,7 +220,7 @@ function add_quotes($item)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if ($add_module) {
|
if ($add_module === true) {
|
||||||
$id_graph = get_parameter('id');
|
$id_graph = get_parameter('id');
|
||||||
$id_modules = get_parameter('module');
|
$id_modules = get_parameter('module');
|
||||||
$id_agents = get_parameter('id_agents');
|
$id_agents = get_parameter('id_agents');
|
||||||
@ -251,7 +251,7 @@ if ($add_module) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($delete_module) {
|
if ($delete_module === true) {
|
||||||
$id_graph = get_parameter('id');
|
$id_graph = get_parameter('id');
|
||||||
|
|
||||||
$deleteGraph = get_parameter('delete');
|
$deleteGraph = get_parameter('delete');
|
||||||
@ -260,7 +260,7 @@ if ($delete_module) {
|
|||||||
db_process_sql('UPDATE tgraph_source SET field_order=field_order-1 WHERE id_graph='.$id_graph.' AND field_order>'.$order_val);
|
db_process_sql('UPDATE tgraph_source SET field_order=field_order-1 WHERE id_graph='.$id_graph.' AND field_order>'.$order_val);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($change_weight) {
|
if ($change_weight === true) {
|
||||||
$weight = get_parameter('weight');
|
$weight = get_parameter('weight');
|
||||||
$id_gs = get_parameter('graph');
|
$id_gs = get_parameter('graph');
|
||||||
db_process_sql_update(
|
db_process_sql_update(
|
||||||
@ -280,7 +280,7 @@ if ($change_label) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($edit_graph) {
|
if ($edit_graph === true) {
|
||||||
$buttons = [
|
$buttons = [
|
||||||
'graph_list' => [
|
'graph_list' => [
|
||||||
'active' => false,
|
'active' => false,
|
||||||
@ -334,7 +334,7 @@ if ($edit_graph) {
|
|||||||
$graphInTgraph = db_get_row_sql('SELECT name FROM tgraph WHERE id_graph = '.$id_graph);
|
$graphInTgraph = db_get_row_sql('SELECT name FROM tgraph WHERE id_graph = '.$id_graph);
|
||||||
$name = $graphInTgraph['name'];
|
$name = $graphInTgraph['name'];
|
||||||
} else {
|
} else {
|
||||||
$buttons = '';
|
$buttons = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
$head = __('Graph builder');
|
$head = __('Graph builder');
|
||||||
@ -363,7 +363,7 @@ ui_print_standard_header(
|
|||||||
false,
|
false,
|
||||||
$headerHelp,
|
$headerHelp,
|
||||||
false,
|
false,
|
||||||
[$buttons],
|
$buttons,
|
||||||
[
|
[
|
||||||
[
|
[
|
||||||
'link' => '',
|
'link' => '',
|
||||||
@ -410,12 +410,12 @@ if ($delete_module) {
|
|||||||
|
|
||||||
// Parse CHUNK information into showable information.
|
// Parse CHUNK information into showable information.
|
||||||
// Split id to get all parameters.
|
// Split id to get all parameters.
|
||||||
if (!$delete_module) {
|
if ($delete_module === false) {
|
||||||
if (isset($_POST['period'])) {
|
if (isset($_POST['period']) === true) {
|
||||||
$period = $_POST['period'];
|
$period = $_POST['period'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((isset($chunkdata) ) && ($chunkdata != '')) {
|
if ((isset($chunkdata) === true) && (empty($chunkdata) === false)) {
|
||||||
$module_array = [];
|
$module_array = [];
|
||||||
$weight_array = [];
|
$weight_array = [];
|
||||||
$agent_array = [];
|
$agent_array = [];
|
||||||
|
@ -62,6 +62,20 @@ $show_sort_options = [];
|
|||||||
$show_sort_options[1] = __('Ascending');
|
$show_sort_options[1] = __('Ascending');
|
||||||
$show_sort_options[2] = __('Descending');
|
$show_sort_options[2] = __('Descending');
|
||||||
|
|
||||||
|
// Agents inventory display options.
|
||||||
|
$agents_inventory_display_options = [];
|
||||||
|
$agents_inventory_display_options['alias'] = __('Alias');
|
||||||
|
$agents_inventory_display_options['direccion'] = __('IP');
|
||||||
|
$agents_inventory_display_options['id_os'] = __('OS');
|
||||||
|
$agents_inventory_display_options['id_grupo'] = __('Group');
|
||||||
|
$agents_inventory_display_options['secondary_groups'] = __('Secondary groups');
|
||||||
|
$agents_inventory_display_options['comentarios'] = __('Description');
|
||||||
|
$agents_inventory_display_options['url_address'] = __('URL');
|
||||||
|
$agents_inventory_display_options['custom_fields'] = __('Custom fields');
|
||||||
|
$agents_inventory_display_options['estado'] = __('Status');
|
||||||
|
$agents_inventory_display_options['agent_version'] = __('Version');
|
||||||
|
$agents_inventory_display_options['remote'] = __('Remote configuration');
|
||||||
|
|
||||||
enterprise_include('/godmode/reporting/reporting_builder.item_editor.php');
|
enterprise_include('/godmode/reporting/reporting_builder.item_editor.php');
|
||||||
require_once $config['homedir'].'/include/functions_agents.php';
|
require_once $config['homedir'].'/include/functions_agents.php';
|
||||||
if (enterprise_include_once('include/functions_metaconsole.php')) {
|
if (enterprise_include_once('include/functions_metaconsole.php')) {
|
||||||
@ -725,6 +739,25 @@ switch ($action) {
|
|||||||
$idAgentModule = $module;
|
$idAgentModule = $module;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'agents_inventory':
|
||||||
|
$description = $item['description'];
|
||||||
|
$es = json_decode($item['external_source'], true);
|
||||||
|
|
||||||
|
$date = $es['date'];
|
||||||
|
$selected_agent_server_filter = $es['agent_server_filter'];
|
||||||
|
$selected_agent_group_filter = $es['agent_group_filter'];
|
||||||
|
$selected_agents_inventory_display_options = $es['agents_inventory_display_options'];
|
||||||
|
$selected_agent_os_filter = $es['agent_os_filter'];
|
||||||
|
$selected_agent_custom_field_filter = $es['agent_custom_field_filter'];
|
||||||
|
$selected_agent_status_filter = $es['agent_status_filter'];
|
||||||
|
$selected_agent_module_search_filter = $es['agent_module_search_filter'];
|
||||||
|
$selected_agent_version_filter = $es['agent_version_filter'];
|
||||||
|
$selected_agent_remote = $es['agent_remote_conf'];
|
||||||
|
|
||||||
|
$idAgent = $es['id_agents'];
|
||||||
|
$idAgentModule = $inventory_modules;
|
||||||
|
break;
|
||||||
|
|
||||||
case 'inventory':
|
case 'inventory':
|
||||||
$description = $item['description'];
|
$description = $item['description'];
|
||||||
$es = json_decode($item['external_source'], true);
|
$es = json_decode($item['external_source'], true);
|
||||||
@ -3020,6 +3053,232 @@ $class = 'databox filters';
|
|||||||
<td><?php html_print_checkbox_switch('pagebreak', 1, $pagebreak); ?></td>
|
<td><?php html_print_checkbox_switch('pagebreak', 1, $pagebreak); ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
<tr id="row_agents_inventory_display_options" class="datos">
|
||||||
|
<td class="bolder">
|
||||||
|
<?php
|
||||||
|
echo __('Display options');
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<?php
|
||||||
|
html_print_select(
|
||||||
|
$agents_inventory_display_options,
|
||||||
|
'agents_inventory_display_options[]',
|
||||||
|
$selected_agents_inventory_display_options,
|
||||||
|
'',
|
||||||
|
'',
|
||||||
|
'',
|
||||||
|
false,
|
||||||
|
true,
|
||||||
|
true,
|
||||||
|
'',
|
||||||
|
false,
|
||||||
|
'width:200px'
|
||||||
|
);
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
$server_fields = [];
|
||||||
|
$server_fields[0] = __('All');
|
||||||
|
|
||||||
|
$servers = metaconsole_get_servers();
|
||||||
|
|
||||||
|
foreach ($servers as $key => $server) {
|
||||||
|
$server_fields[$key] = $server['server_name'];
|
||||||
|
}
|
||||||
|
|
||||||
|
$server_filter_markup = '
|
||||||
|
<tr id="row_agent_server_filter" class="datos">
|
||||||
|
<td class="bolder">'.__('Server').'</td><td>'.html_print_select(
|
||||||
|
$server_fields,
|
||||||
|
'agent_server_filter',
|
||||||
|
$selected_agent_server_filter,
|
||||||
|
'',
|
||||||
|
false,
|
||||||
|
'',
|
||||||
|
true,
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
'',
|
||||||
|
false,
|
||||||
|
'min-width: 180px'
|
||||||
|
).'</td></tr>';
|
||||||
|
|
||||||
|
if (is_metaconsole()) {
|
||||||
|
echo $server_filter_markup;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
<tr id="row_agent_group_filter" class="datos">
|
||||||
|
<td class="bolder">
|
||||||
|
<?php
|
||||||
|
echo __('Agent group filter');
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<?php
|
||||||
|
html_print_select_groups(
|
||||||
|
$config['id_user'],
|
||||||
|
'RW',
|
||||||
|
true,
|
||||||
|
'agent_group_filter',
|
||||||
|
$selected_agent_group_filter,
|
||||||
|
''
|
||||||
|
);
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr id="row_os" class="datos">
|
||||||
|
<td class="bolder">
|
||||||
|
<?php
|
||||||
|
echo __('Agent OS filter');
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<?php
|
||||||
|
if ($selected_agent_os_filter === null) {
|
||||||
|
$selected_agent_os_filter = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
html_print_select_from_sql(
|
||||||
|
'SELECT id_os, name FROM tconfig_os',
|
||||||
|
'agent_os_filter[]',
|
||||||
|
$selected_agent_os_filter,
|
||||||
|
'',
|
||||||
|
__('All'),
|
||||||
|
'0',
|
||||||
|
false,
|
||||||
|
true
|
||||||
|
);
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr id="row_custom_field" class="datos">
|
||||||
|
<td class="bolder">
|
||||||
|
<?php
|
||||||
|
echo __('Agent custom field filter');
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
<td >
|
||||||
|
<?php
|
||||||
|
echo html_print_input_text(
|
||||||
|
'agent_custom_field_filter',
|
||||||
|
$selected_agent_custom_field_filter,
|
||||||
|
'',
|
||||||
|
50,
|
||||||
|
255,
|
||||||
|
true,
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
'',
|
||||||
|
'fullwidth'
|
||||||
|
);
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr id="row_agent_status" class="datos">
|
||||||
|
<td class="bolder">
|
||||||
|
<?php
|
||||||
|
echo __('Agent status filter');
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<?php
|
||||||
|
$fields = [];
|
||||||
|
$fields[AGENT_STATUS_NORMAL] = __('Normal');
|
||||||
|
$fields[AGENT_STATUS_WARNING] = __('Warning');
|
||||||
|
$fields[AGENT_STATUS_CRITICAL] = __('Critical');
|
||||||
|
$fields[AGENT_STATUS_UNKNOWN] = __('Unknown');
|
||||||
|
$fields[AGENT_STATUS_NOT_NORMAL] = __('Not normal');
|
||||||
|
$fields[AGENT_STATUS_NOT_INIT] = __('Not init');
|
||||||
|
|
||||||
|
if ($selected_agent_status_filter === null) {
|
||||||
|
$selected_agent_status_filter = -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
html_print_select(
|
||||||
|
$fields,
|
||||||
|
'agent_status_filter[]',
|
||||||
|
$selected_agent_status_filter,
|
||||||
|
'',
|
||||||
|
__('All'),
|
||||||
|
'-1',
|
||||||
|
false,
|
||||||
|
true,
|
||||||
|
false,
|
||||||
|
'',
|
||||||
|
false,
|
||||||
|
'min-width: 180px'
|
||||||
|
);
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr id="row_agent_version" class="datos">
|
||||||
|
<td class="bolder">
|
||||||
|
<?php
|
||||||
|
echo __('Agent version filter');
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
<td >
|
||||||
|
<?php
|
||||||
|
echo html_print_input_text(
|
||||||
|
'agent_version_filter',
|
||||||
|
$selected_agent_version_filter,
|
||||||
|
'',
|
||||||
|
50,
|
||||||
|
255,
|
||||||
|
true,
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
'',
|
||||||
|
'fullwidth'
|
||||||
|
);
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr id="row_agent_remote_conf" class="datos">
|
||||||
|
<td class="bolder">
|
||||||
|
<?php
|
||||||
|
echo __('Agent has remote configuration').ui_print_help_tip(
|
||||||
|
__('Filter agents by remote configuration enabled.'),
|
||||||
|
true
|
||||||
|
);
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
<td><?php html_print_checkbox_switch('agent_remote_conf', 1, $selected_agent_remote); ?></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr id="row_module_free_search" class="datos">
|
||||||
|
<td class="bolder">
|
||||||
|
<?php
|
||||||
|
echo __('Agent module filter');
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<?php
|
||||||
|
echo html_print_input_text(
|
||||||
|
'agent_module_search_filter',
|
||||||
|
$selected_agent_module_search_filter,
|
||||||
|
'',
|
||||||
|
50,
|
||||||
|
255,
|
||||||
|
true,
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
'',
|
||||||
|
'fullwidth'
|
||||||
|
);
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
@ -5223,6 +5482,15 @@ function chooseType() {
|
|||||||
$("#row_users").hide();
|
$("#row_users").hide();
|
||||||
$("#row_profiles_group").hide();
|
$("#row_profiles_group").hide();
|
||||||
$("#row_select_by_group").hide();
|
$("#row_select_by_group").hide();
|
||||||
|
$("#row_agents_inventory_display_options").hide();
|
||||||
|
$("#row_agent_server_filter").hide();
|
||||||
|
$("#row_agent_group_filter").hide();
|
||||||
|
$("#row_os").hide();
|
||||||
|
$("#row_custom_field").hide();
|
||||||
|
$("#row_agent_status").hide();
|
||||||
|
$("#row_agent_version").hide();
|
||||||
|
$("#row_agent_remote_conf").hide();
|
||||||
|
$("#row_module_free_search").hide();
|
||||||
|
|
||||||
|
|
||||||
// SLA list default state.
|
// SLA list default state.
|
||||||
@ -5764,6 +6032,20 @@ function chooseType() {
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'agents_inventory':
|
||||||
|
$("#row_agents_inventory_display_options").show();
|
||||||
|
$("#row_agent_server_filter").show();
|
||||||
|
$("#row_agent_group_filter").show();
|
||||||
|
$("#row_group").show();
|
||||||
|
$("#row_os").show();
|
||||||
|
$("#row_custom_field").show();
|
||||||
|
$("#row_agent_status").show();
|
||||||
|
$("#row_agent_version").show();
|
||||||
|
$("#row_agent_remote_conf").show();
|
||||||
|
$("#row_module_free_search").show();
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
case 'inventory':
|
case 'inventory':
|
||||||
$("#row_description").show();
|
$("#row_description").show();
|
||||||
$("#row_group").show();
|
$("#row_group").show();
|
||||||
|
@ -2107,6 +2107,20 @@ switch ($action) {
|
|||||||
$values['external_source'] = json_encode($es);
|
$values['external_source'] = json_encode($es);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'agents_inventory':
|
||||||
|
$es['agent_server_filter'] = get_parameter('agent_server_filter');
|
||||||
|
$es['agents_inventory_display_options'] = get_parameter('agents_inventory_display_options');
|
||||||
|
$es['agent_custom_field_filter'] = get_parameter('agent_custom_field_filter');
|
||||||
|
$es['agent_os_filter'] = get_parameter('agent_os_filter');
|
||||||
|
$es['agent_status_filter'] = get_parameter('agent_status_filter');
|
||||||
|
$es['agent_version_filter'] = get_parameter('agent_version_filter');
|
||||||
|
$es['agent_module_search_filter'] = get_parameter('agent_module_search_filter');
|
||||||
|
$es['agent_group_filter'] = get_parameter('agent_group_filter');
|
||||||
|
$es['agent_remote_conf'] = get_parameter('agent_remote_conf');
|
||||||
|
|
||||||
|
$values['external_source'] = json_encode($es);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// Default.
|
// Default.
|
||||||
break;
|
break;
|
||||||
@ -2732,6 +2746,20 @@ switch ($action) {
|
|||||||
$values['external_source'] = json_encode($es);
|
$values['external_source'] = json_encode($es);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'agents_inventory':
|
||||||
|
$es['agent_server_filter'] = get_parameter('agent_server_filter');
|
||||||
|
$es['agents_inventory_display_options'] = get_parameter('agents_inventory_display_options');
|
||||||
|
$es['agent_custom_field_filter'] = get_parameter('agent_custom_field_filter');
|
||||||
|
$es['agent_os_filter'] = get_parameter('agent_os_filter');
|
||||||
|
$es['agent_status_filter'] = get_parameter('agent_status_filter');
|
||||||
|
$es['agent_version_filter'] = get_parameter('agent_version_filter');
|
||||||
|
$es['agent_module_search_filter'] = get_parameter('agent_module_search_filter');
|
||||||
|
$es['agent_group_filter'] = get_parameter('agent_group_filter');
|
||||||
|
$es['agent_remote_conf'] = get_parameter('agent_remote_conf');
|
||||||
|
|
||||||
|
$values['external_source'] = json_encode($es);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// Default.
|
// Default.
|
||||||
break;
|
break;
|
||||||
|
@ -1075,7 +1075,7 @@ class CredentialStore extends Wizard
|
|||||||
|
|
||||||
item.options = '<a href="javascript:" onclick="show_form(\'';
|
item.options = '<a href="javascript:" onclick="show_form(\'';
|
||||||
item.options += id;
|
item.options += id;
|
||||||
item.options += '\')" ><?php echo html_print_image('images/operation.png', true, ['title' => __('Show')]); ?></a>';
|
item.options += '\')" ><?php echo html_print_image('images/operation.png', true, ['title' => __('Show'), 'class' => 'invert_filter']); ?></a>';
|
||||||
|
|
||||||
item.options += '<a href="javascript:" onclick="delete_key(\'';
|
item.options += '<a href="javascript:" onclick="delete_key(\'';
|
||||||
item.options += id;
|
item.options += id;
|
||||||
|
@ -221,6 +221,8 @@ class ExternalTools extends HTML
|
|||||||
'style' => 'vertical-align: middle;',
|
'style' => 'vertical-align: middle;',
|
||||||
'width' => '16',
|
'width' => '16',
|
||||||
'title' => __('Play sound'),
|
'title' => __('Play sound'),
|
||||||
|
'class' => 'invert_filter',
|
||||||
|
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@ -249,6 +251,8 @@ class ExternalTools extends HTML
|
|||||||
'style' => 'vertical-align: middle;',
|
'style' => 'vertical-align: middle;',
|
||||||
'width' => '16',
|
'width' => '16',
|
||||||
'title' => __('Play sound'),
|
'title' => __('Play sound'),
|
||||||
|
'class' => 'invert_filter',
|
||||||
|
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@ -277,6 +281,8 @@ class ExternalTools extends HTML
|
|||||||
'style' => 'vertical-align: middle;',
|
'style' => 'vertical-align: middle;',
|
||||||
'width' => '16',
|
'width' => '16',
|
||||||
'title' => __('Play sound'),
|
'title' => __('Play sound'),
|
||||||
|
'class' => 'invert_filter',
|
||||||
|
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@ -326,6 +332,8 @@ class ExternalTools extends HTML
|
|||||||
'title' => __('Add new custom command'),
|
'title' => __('Add new custom command'),
|
||||||
'onclick' => 'manageCommandLines(event)',
|
'onclick' => 'manageCommandLines(event)',
|
||||||
'id' => 'img_add_button_custom_command',
|
'id' => 'img_add_button_custom_command',
|
||||||
|
'class' => 'invert_filter',
|
||||||
|
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@ -420,6 +428,7 @@ class ExternalTools extends HTML
|
|||||||
'title' => __('Delete this custom command'),
|
'title' => __('Delete this custom command'),
|
||||||
'onclick' => 'manageCommandLines(event)',
|
'onclick' => 'manageCommandLines(event)',
|
||||||
'id' => 'img_delete_button_custom_'.$index,
|
'id' => 'img_delete_button_custom_'.$index,
|
||||||
|
'class' => 'invert_filter',
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
@ -743,7 +743,8 @@ class ManageNetScanScripts extends Wizard
|
|||||||
$datam[2] .= '<a href="javascript:delete_macro_form(\'table-form-recon_\');update_preview();">';
|
$datam[2] .= '<a href="javascript:delete_macro_form(\'table-form-recon_\');update_preview();">';
|
||||||
$datam[2] .= html_print_image(
|
$datam[2] .= html_print_image(
|
||||||
'images/delete.png',
|
'images/delete.png',
|
||||||
true
|
true,
|
||||||
|
['class' => 'invert_filter']
|
||||||
);
|
);
|
||||||
$datam[2] .= '</a></div>';
|
$datam[2] .= '</a></div>';
|
||||||
|
|
||||||
|
@ -2984,7 +2984,7 @@ class NetworkMap
|
|||||||
'',
|
'',
|
||||||
false,
|
false,
|
||||||
'',
|
'',
|
||||||
'class="sub"',
|
'class="sub next"',
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -3013,7 +3013,7 @@ class NetworkMap
|
|||||||
'',
|
'',
|
||||||
false,
|
false,
|
||||||
'add_fictional_node();',
|
'add_fictional_node();',
|
||||||
'class="sub"',
|
'class="sub next"',
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -3065,9 +3065,9 @@ class NetworkMap
|
|||||||
$table->data['template_row']['node_target'] = '';
|
$table->data['template_row']['node_target'] = '';
|
||||||
$table->data['template_row']['edit'] = '';
|
$table->data['template_row']['edit'] = '';
|
||||||
|
|
||||||
$table->data['template_row']['edit'] .= '<span class="edit_icon_correct" style="display: none">'.html_print_image('images/dot_green.png', true).'</span><span class="edit_icon_fail" style="display: none" >'.html_print_image('images/dot_red.png', true).'</span><span class="edit_icon_progress" style="display: none">'.html_print_image('images/spinner.gif', true).'</span><span class="edit_icon"><a class="edit_icon_link" title="'.__('Update').'" href="#">'.html_print_image('images/config.png', true).'</a></span>';
|
$table->data['template_row']['edit'] .= '<span class="edit_icon_correct" style="display: none">'.html_print_image('images/dot_green.png', true).'</span><span class="edit_icon_fail" style="display: none" >'.html_print_image('images/dot_red.png', true).'</span><span class="edit_icon_progress" style="display: none">'.html_print_image('images/spinner.gif', true).'</span><span class="edit_icon"><a class="edit_icon_link" title="'.__('Update').'" href="#">'.html_print_image('images/config.png', true, ['class' => 'invert_filter']).'</a></span>';
|
||||||
|
|
||||||
$table->data['template_row']['edit'] .= '<a class="delete_icon" href="#">'.html_print_image('images/delete.png', true).'</a>';
|
$table->data['template_row']['edit'] .= '<a class="delete_icon" href="#">'.html_print_image('images/delete.png', true, ['class' => 'invert_filter']).'</a>';
|
||||||
|
|
||||||
$table->colspan['no_relations']['0'] = 5;
|
$table->colspan['no_relations']['0'] = 5;
|
||||||
$table->cellstyle['no_relations']['0'] = 'text-align: center;';
|
$table->cellstyle['no_relations']['0'] = 'text-align: center;';
|
||||||
|
@ -397,7 +397,7 @@ class OrderInterpreter extends Wizard
|
|||||||
if ($iterator <= 9 && $this->canShowItem($enterprise, $this->pages_menu[$key]['url'])) {
|
if ($iterator <= 9 && $this->canShowItem($enterprise, $this->pages_menu[$key]['url'])) {
|
||||||
echo '<li class="list_found" name="'.$iterator.'" id="'.$iterator.'">';
|
echo '<li class="list_found" name="'.$iterator.'" id="'.$iterator.'">';
|
||||||
echo '
|
echo '
|
||||||
Go to
|
<span class="invert_filter"> Go to </span>
|
||||||
<img src="'.$this->pages_menu[$key]['icon'].'">';
|
<img src="'.$this->pages_menu[$key]['icon'].'">';
|
||||||
echo '
|
echo '
|
||||||
<a href="'.$this->pages_menu[$key]['url'].'">
|
<a href="'.$this->pages_menu[$key]['url'].'">
|
||||||
@ -419,12 +419,12 @@ class OrderInterpreter extends Wizard
|
|||||||
echo $this->loadJS();
|
echo $this->loadJS();
|
||||||
echo '</ul>';
|
echo '</ul>';
|
||||||
if ($iterator > 10) {
|
if ($iterator > 10) {
|
||||||
echo '<div class="more_results">
|
echo '<div class="more_results"><span class="invert_filter">
|
||||||
+ '.$more_results.' '.__('results found').'</div>';
|
+ '.$more_results.' '.__('results found').'</span></div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($iterator === 0) {
|
if ($iterator === 0) {
|
||||||
echo __('Press enter to search');
|
echo '<span class="invert_filter">'.__('Press enter to search').'</span>';
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
/**
|
/**
|
||||||
* Pandora build version and version
|
* Pandora build version and version
|
||||||
*/
|
*/
|
||||||
$build_version = 'PC210604';
|
$build_version = 'PC210607';
|
||||||
$pandora_version = 'v7.0NG.754';
|
$pandora_version = 'v7.0NG.754';
|
||||||
|
|
||||||
// Do not overwrite default timezone set if defined.
|
// Do not overwrite default timezone set if defined.
|
||||||
|
@ -644,7 +644,7 @@ function filemanager_file_explorer(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (($prev_dir_str != '') && ($father != $relative_directory)) {
|
if (($prev_dir_str != '') && ($father != $relative_directory)) {
|
||||||
$table->data[0][0] = html_print_image('images/go_previous.png', true);
|
$table->data[0][0] = html_print_image('images/go_previous.png', true, ['class' => 'invert_filter']);
|
||||||
$table->data[0][1] = '<a href="'.$url.'&directory='.$prev_dir_str.'&hash2='.md5($prev_dir_str.$config['dbpass']).'">';
|
$table->data[0][1] = '<a href="'.$url.'&directory='.$prev_dir_str.'&hash2='.md5($prev_dir_str.$config['dbpass']).'">';
|
||||||
$table->data[0][1] .= __('Parent directory');
|
$table->data[0][1] .= __('Parent directory');
|
||||||
$table->data[0][1] .= '</a>';
|
$table->data[0][1] .= '</a>';
|
||||||
@ -660,26 +660,26 @@ function filemanager_file_explorer(
|
|||||||
|
|
||||||
switch ($fileinfo['mime']) {
|
switch ($fileinfo['mime']) {
|
||||||
case MIME_DIR:
|
case MIME_DIR:
|
||||||
$data[0] = html_print_image('images/mimetypes/directory.png', true, ['title' => __('Directory')]);
|
$data[0] = html_print_image('images/mimetypes/directory.png', true, ['title' => __('Directory'), 'class' => 'invert_filter']);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MIME_IMAGE:
|
case MIME_IMAGE:
|
||||||
$data[0] = html_print_image('images/mimetypes/image.png', true, ['title' => __('Image')]);
|
$data[0] = html_print_image('images/mimetypes/image.png', true, ['title' => __('Image'), 'class' => 'invert_filter']);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MIME_ZIP:
|
case MIME_ZIP:
|
||||||
$data[0] = html_print_image('images/mimetypes/zip.png', true, ['title' => __('Compressed file')]);
|
$data[0] = html_print_image('images/mimetypes/zip.png', true, ['title' => __('Compressed file'), 'class' => 'invert_filter']);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MIME_TEXT:
|
case MIME_TEXT:
|
||||||
$data[0] = html_print_image('images/mimetypes/text.png', true, ['title' => __('Text file')]);
|
$data[0] = html_print_image('images/mimetypes/text.png', true, ['title' => __('Text file'), 'class' => 'invert_filter']);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MIME_UNKNOWN:
|
case MIME_UNKNOWN:
|
||||||
if ($fileinfo['size'] == 0) {
|
if ($fileinfo['size'] == 0) {
|
||||||
if ((strstr($fileinfo['name'], '.txt') !== false) || (strstr($fileinfo['name'], '.conf') !== false) || (strstr($fileinfo['name'], '.sql') !== false) || (strstr($fileinfo['name'], '.pl') !== false)) {
|
if ((strstr($fileinfo['name'], '.txt') !== false) || (strstr($fileinfo['name'], '.conf') !== false) || (strstr($fileinfo['name'], '.sql') !== false) || (strstr($fileinfo['name'], '.pl') !== false)) {
|
||||||
$fileinfo['mime'] = MIME_TEXT;
|
$fileinfo['mime'] = MIME_TEXT;
|
||||||
$data[0] = html_print_image('images/mimetypes/text.png', true, ['title' => __('Text file')]);
|
$data[0] = html_print_image('images/mimetypes/text.png', true, ['title' => __('Text file'), 'class' => 'invert_filter']);
|
||||||
} else {
|
} else {
|
||||||
// unknow
|
// unknow
|
||||||
$data[0] = '';
|
$data[0] = '';
|
||||||
@ -691,7 +691,7 @@ function filemanager_file_explorer(
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
$data[0] = html_print_image('images/mimetypes/unknown.png', true, ['title' => __('Unknown')]);
|
$data[0] = html_print_image('images/mimetypes/unknown.png', true, ['title' => __('Unknown'), 'class' => 'invert_filter']);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -759,7 +759,7 @@ function filemanager_file_explorer(
|
|||||||
&& ($typefile != 'iso') && ($typefile != 'docx') && ($typefile != 'doc') && ($fileinfo['mime'] != MIME_DIR)
|
&& ($typefile != 'iso') && ($typefile != 'docx') && ($typefile != 'doc') && ($fileinfo['mime'] != MIME_DIR)
|
||||||
) {
|
) {
|
||||||
$hash = md5($fileinfo['realpath'].$config['dbpass']);
|
$hash = md5($fileinfo['realpath'].$config['dbpass']);
|
||||||
$data[4] .= "<a style='vertical-align: top;' href='$url&edit_file=1&hash=".$hash.'&location_file='.$fileinfo['realpath']."' style='float: left;'>".html_print_image('images/edit.png', true, ['style' => 'margin-top: 2px;', 'title' => __('Edit file')]).'</a>';
|
$data[4] .= "<a style='vertical-align: top;' href='$url&edit_file=1&hash=".$hash.'&location_file='.$fileinfo['realpath']."' style='float: left;'>".html_print_image('images/edit.png', true, ['style' => 'margin-top: 2px;', 'title' => __('Edit file'), 'class' => 'invert_filter']).'</a>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -768,7 +768,7 @@ function filemanager_file_explorer(
|
|||||||
$filename = base64_encode($fileinfo['name']);
|
$filename = base64_encode($fileinfo['name']);
|
||||||
$hash = md5($filename.$config['dbpass']);
|
$hash = md5($filename.$config['dbpass']);
|
||||||
$data[4] .= '<a href="include/get_file.php?file='.urlencode($filename).'&hash='.$hash.'" style="vertical-align: 25%;">';
|
$data[4] .= '<a href="include/get_file.php?file='.urlencode($filename).'&hash='.$hash.'" style="vertical-align: 25%;">';
|
||||||
$data[4] .= html_print_image('images/file.png', true);
|
$data[4] .= html_print_image('images/file.png', true, ['class' => 'invert_filter']);
|
||||||
$data[4] .= '</a>';
|
$data[4] .= '</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -870,7 +870,7 @@ function filemanager_file_explorer(
|
|||||||
echo '</div>';
|
echo '</div>';
|
||||||
} else {
|
} else {
|
||||||
echo "<div style='text-align: right; width: ".$table->width."; color:#AC4444; margin-bottom:10px;'>";
|
echo "<div style='text-align: right; width: ".$table->width."; color:#AC4444; margin-bottom:10px;'>";
|
||||||
echo "<image src='images/info.png' />".__('The directory is read-only');
|
echo "<image class='invert_filter' src='images/info.png' />".__('The directory is read-only');
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -734,6 +734,13 @@ function reporting_make_reporting_data(
|
|||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'agents_inventory':
|
||||||
|
$report['contents'][] = reporting_agents_inventory(
|
||||||
|
$report,
|
||||||
|
$content
|
||||||
|
);
|
||||||
|
break;
|
||||||
|
|
||||||
case 'inventory':
|
case 'inventory':
|
||||||
$report['contents'][] = reporting_inventory(
|
$report['contents'][] = reporting_inventory(
|
||||||
$report,
|
$report,
|
||||||
@ -2253,6 +2260,184 @@ function reporting_event_report_module(
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function reporting_agents_inventory($report, $content)
|
||||||
|
{
|
||||||
|
global $config;
|
||||||
|
|
||||||
|
$return['name'] = $content['name'];
|
||||||
|
$return['type'] = 'agents_inventory';
|
||||||
|
$return['title'] = $content['name'];
|
||||||
|
$return['landscape'] = $content['landscape'];
|
||||||
|
$return['pagebreak'] = $content['pagebreak'];
|
||||||
|
$return['description'] = $content['description'];
|
||||||
|
$return['date'] = reporting_get_date_text($report, $content);
|
||||||
|
|
||||||
|
$external_source = io_safe_input(json_decode($content['external_source'], true));
|
||||||
|
$es_agents_inventory_display_options = $external_source['agents_inventory_display_options'];
|
||||||
|
$es_custom_fields = $external_source['agent_custom_field_filter'];
|
||||||
|
$es_os_filter = $external_source['agent_os_filter'];
|
||||||
|
$es_agent_status_filter = $external_source['agent_status_filter'];
|
||||||
|
$es_agent_version_filter = $external_source['agent_version_filter'];
|
||||||
|
$es_agent_module_search_filter = $external_source['agent_module_search_filter'];
|
||||||
|
$es_agent_group_filter = $external_source['agent_group_filter'];
|
||||||
|
$es_agent_server_filter = $external_source['agent_server_filter'];
|
||||||
|
$es_users_groups = $external_source['users_groups'];
|
||||||
|
$es_agent_remote_conf = $external_source['agent_remote_conf'];
|
||||||
|
|
||||||
|
if ($es_agents_inventory_display_options === '') {
|
||||||
|
$es_agents_inventory_display_options = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
$search_sql = '';
|
||||||
|
|
||||||
|
if ($es_custom_fields != '') {
|
||||||
|
$search_sql .= ' AND id_os = '.$es_custom_fields;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (in_array('0', $es_os_filter) === false) {
|
||||||
|
$search_sql .= ' AND id_os IN ('.implode(',', $es_os_filter).')';
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($es_agent_version_filter != '') {
|
||||||
|
$search_sql .= ' AND tagente.agent_version LIKE "%'.$es_agent_version_filter.'%"';
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($es_agent_module_search_filter != '') {
|
||||||
|
$search_sql .= ' AND tam.nombre LIKE "%'.$es_agent_module_search_filter.'%"';
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($es_agent_group_filter != 0) {
|
||||||
|
$search_sql .= ' AND (tagente.id_grupo = '.$es_agent_group_filter.' OR tasg.id_group = '.$es_agent_group_filter.')';
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($es_agent_remote_conf != 0) {
|
||||||
|
$search_sql .= ' AND tagente.remote = '.$es_agent_remote_conf;
|
||||||
|
}
|
||||||
|
|
||||||
|
$user_groups_to_sql = implode(',', array_keys(users_get_groups()));
|
||||||
|
|
||||||
|
$sql = sprintf(
|
||||||
|
'SELECT DISTINCT(tagente.id_agente) AS id_agente,
|
||||||
|
tagente.id_os,
|
||||||
|
tagente.direccion,
|
||||||
|
tagente.agent_version,
|
||||||
|
tagente.alias,
|
||||||
|
tagente.id_grupo,
|
||||||
|
tagente.comentarios,
|
||||||
|
tagente.url_address,
|
||||||
|
tagente.remote
|
||||||
|
FROM tagente LEFT JOIN tagent_secondary_group tasg
|
||||||
|
ON tagente.id_agente = tasg.id_agent
|
||||||
|
LEFT JOIN tagente_modulo tam
|
||||||
|
ON tam.id_agente = tagente.id_agente
|
||||||
|
WHERE (tagente.id_grupo IN (%s) OR tasg.id_group IN (%s))
|
||||||
|
%s',
|
||||||
|
$user_groups_to_sql,
|
||||||
|
$user_groups_to_sql,
|
||||||
|
$search_sql
|
||||||
|
);
|
||||||
|
|
||||||
|
if (is_metaconsole()) {
|
||||||
|
$servers_ids = array_column(metaconsole_get_servers(), 'id');
|
||||||
|
} else {
|
||||||
|
$servers_ids = [0];
|
||||||
|
}
|
||||||
|
|
||||||
|
$return_data = [];
|
||||||
|
|
||||||
|
foreach ($servers_ids as $server_id) {
|
||||||
|
if (is_metaconsole()) {
|
||||||
|
$server = metaconsole_get_connection_by_id($server_id);
|
||||||
|
|
||||||
|
if ((int) $es_agent_server_filter !== 0
|
||||||
|
&& (int) $es_agent_server_filter !== (int) $server_id
|
||||||
|
) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
metaconsole_connect($server);
|
||||||
|
}
|
||||||
|
|
||||||
|
$agents = db_get_all_rows_sql($sql);
|
||||||
|
|
||||||
|
foreach ($agents as $key => $value) {
|
||||||
|
if (array_search('secondary_groups', $es_agents_inventory_display_options) !== false) {
|
||||||
|
$sql_agent_sec_group = sprintf(
|
||||||
|
'SELECT id_group
|
||||||
|
FROM tagent_secondary_group
|
||||||
|
WHERE id_agent = %d',
|
||||||
|
$value['id_agente']
|
||||||
|
);
|
||||||
|
|
||||||
|
$agent_secondary_groups = [];
|
||||||
|
$agent_secondary_groups = db_get_all_rows_sql($sql_agent_sec_group);
|
||||||
|
|
||||||
|
$agents[$key]['secondary_groups'] = $agent_secondary_groups;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (array_search('custom_fields', $es_agents_inventory_display_options) !== false) {
|
||||||
|
$sql_agent_custom_fields = sprintf(
|
||||||
|
'SELECT tacd.description, tacf.name
|
||||||
|
FROM tagent_custom_data tacd INNER JOIN tagent_custom_fields tacf
|
||||||
|
ON tacd.id_field = tacf.id_field
|
||||||
|
WHERE tacd.description != "" AND tacd.id_agent = %d',
|
||||||
|
$value['id_agente']
|
||||||
|
);
|
||||||
|
|
||||||
|
$agent_custom_fields = [];
|
||||||
|
$agent_custom_fields = db_get_all_rows_sql($sql_agent_custom_fields);
|
||||||
|
|
||||||
|
$agents[$key]['custom_fields'] = $agent_custom_fields;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (array_search('estado', $es_agents_inventory_display_options) !== false) {
|
||||||
|
if (in_array(6, $es_agent_status_filter)) {
|
||||||
|
if (agents_get_status($value['id_agente']) === 0) {
|
||||||
|
unset($agents[$key]);
|
||||||
|
} else {
|
||||||
|
$agents[$key]['estado'] = agents_get_status($value['id_agente']);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (in_array('-1', $es_agent_status_filter) === true || in_array(agents_get_status($value['id_agente']), $es_agent_status_filter)) {
|
||||||
|
$agents[$key]['estado'] = agents_get_status($value['id_agente']);
|
||||||
|
} else {
|
||||||
|
// Agent does not match status filter.
|
||||||
|
unset($agents[$key]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach ($agents as $key => $value) {
|
||||||
|
foreach ($value as $agent_val_key => $agent_val) {
|
||||||
|
// Exclude from data to be displayed in report those fields that were not selected to be displayed by user.
|
||||||
|
if (array_search($agent_val_key, $es_agents_inventory_display_options) === false) {
|
||||||
|
unset($agents[$key][$agent_val_key]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$return_data[$server_id] = $agents;
|
||||||
|
|
||||||
|
if (is_metaconsole()) {
|
||||||
|
metaconsole_restore_db();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$all_data = [];
|
||||||
|
|
||||||
|
foreach ($return_data as $server_agents) {
|
||||||
|
foreach ($server_agents as $agent) {
|
||||||
|
$all_data[] = $agent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$return['data'] = $all_data;
|
||||||
|
|
||||||
|
return reporting_check_structure_content($return);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function reporting_inventory_changes($report, $content, $type)
|
function reporting_inventory_changes($report, $content, $type)
|
||||||
{
|
{
|
||||||
global $config;
|
global $config;
|
||||||
@ -2270,7 +2455,7 @@ function reporting_inventory_changes($report, $content, $type)
|
|||||||
metaconsole_connect($server);
|
metaconsole_connect($server);
|
||||||
}
|
}
|
||||||
|
|
||||||
$es = json_decode($content['external_source'], true);
|
$es = json_decode($content['external_source'], true);
|
||||||
|
|
||||||
$id_agent = $es['id_agents'];
|
$id_agent = $es['id_agents'];
|
||||||
$module_name = $es['inventory_modules'];
|
$module_name = $es['inventory_modules'];
|
||||||
@ -10563,6 +10748,7 @@ function reporting_get_stats_users($data)
|
|||||||
} else {
|
} else {
|
||||||
$users = users_get_user_users($config['id_user'], 'AR', false);
|
$users = users_get_user_users($config['id_user'], 'AR', false);
|
||||||
}
|
}
|
||||||
|
|
||||||
$tdata[1] = count($users);
|
$tdata[1] = count($users);
|
||||||
$tdata[1] = '<a class="big_data" href="'.$urls['defined_users'].'">'.$tdata[1].'</a>';
|
$tdata[1] = '<a class="big_data" href="'.$urls['defined_users'].'">'.$tdata[1].'</a>';
|
||||||
|
|
||||||
|
@ -377,6 +377,10 @@ function reporting_html_print_report($report, $mini=false, $report_info=1)
|
|||||||
reporting_html_agent_module($table, $item);
|
reporting_html_agent_module($table, $item);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'agents_inventory':
|
||||||
|
reporting_html_agents_inventory($table, $item);
|
||||||
|
break;
|
||||||
|
|
||||||
case 'inventory':
|
case 'inventory':
|
||||||
reporting_html_inventory($table, $item);
|
reporting_html_inventory($table, $item);
|
||||||
break;
|
break;
|
||||||
@ -1425,6 +1429,173 @@ function reporting_html_event_report_module($table, $item, $pdf=0)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Print in html agents inventory
|
||||||
|
*
|
||||||
|
* @param object $table Head table or false if it comes from pdf.
|
||||||
|
* @param array $item Items data.
|
||||||
|
* @param boolean $pdf Print pdf true or false.
|
||||||
|
*
|
||||||
|
* @return html
|
||||||
|
*/
|
||||||
|
function reporting_html_agents_inventory($table, $item, $pdf=0)
|
||||||
|
{
|
||||||
|
global $config;
|
||||||
|
|
||||||
|
$table1 = new stdClass();
|
||||||
|
$table1->width = '100%';
|
||||||
|
|
||||||
|
$table1->style[0] = 'text-align: left;vertical-align: top;min-width: 100px;';
|
||||||
|
$table1->class = 'databox data';
|
||||||
|
$table1->cellpadding = 1;
|
||||||
|
$table1->cellspacing = 1;
|
||||||
|
$table1->styleTable = 'overflow: wrap; table-layout: fixed;';
|
||||||
|
|
||||||
|
$table1->style[0] = 'text-align: left;vertical-align: top;min-width: 100px;';
|
||||||
|
$table1->style[1] = 'text-align: left;vertical-align: top;min-width: 100px;';
|
||||||
|
$table1->style[2] = 'text-align: left;vertical-align: top; min-width: 100px';
|
||||||
|
$table1->style[3] = 'text-align: left;vertical-align: top;min-width: 100px;';
|
||||||
|
$table1->style[4] = 'text-align: left;vertical-align: top;min-width: 100px;';
|
||||||
|
$table1->style[5] = 'text-align: left;vertical-align: top; min-width: 100px';
|
||||||
|
$table1->style[6] = 'text-align: left;vertical-align: top;min-width: 100px;';
|
||||||
|
$table1->style[7] = 'text-align: left;vertical-align: top;min-width: 100px;';
|
||||||
|
$table1->style[8] = 'text-align: left;vertical-align: top; min-width: 100px';
|
||||||
|
$table1->style[9] = 'text-align: left;vertical-align: top;min-width: 100px;';
|
||||||
|
$table1->style[10] = 'text-align: left;vertical-align: top;min-width: 100px;';
|
||||||
|
$table1->style[11] = 'text-align: left;vertical-align: top; min-width: 100px';
|
||||||
|
|
||||||
|
$table1->head = [];
|
||||||
|
|
||||||
|
foreach ($item['data'][0] as $field_key => $field_value) {
|
||||||
|
switch ($field_key) {
|
||||||
|
case 'alias':
|
||||||
|
$table1->head[] = __('Alias');
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'direccion':
|
||||||
|
$table1->head[] = __('IP Address');
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'id_os':
|
||||||
|
$table1->head[] = __('OS');
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'id_grupo':
|
||||||
|
$table1->head[] = __('Group');
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'comentarios':
|
||||||
|
$table1->head[] = __('Description');
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'secondary_groups':
|
||||||
|
$table1->head[] = __('Sec. groups');
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'url_address':
|
||||||
|
$table1->head[] = __('URL');
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'custom_fields':
|
||||||
|
$table1->head[] = __('Custom fields');
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'estado':
|
||||||
|
$table1->head[] = __('Status');
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'agent_version':
|
||||||
|
$table1->head[] = __('Version');
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'remote':
|
||||||
|
$table1->head[] = __('Remote conf.');
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$table1->headstyle[0] = 'text-align: left';
|
||||||
|
$table1->headstyle[1] = 'text-align: left';
|
||||||
|
$table1->headstyle[2] = 'text-align: left';
|
||||||
|
$table1->headstyle[3] = 'text-align: left';
|
||||||
|
$table1->headstyle[4] = 'text-align: left';
|
||||||
|
$table1->headstyle[5] = 'text-align: left';
|
||||||
|
$table1->headstyle[6] = 'text-align: left';
|
||||||
|
$table1->headstyle[7] = 'text-align: left';
|
||||||
|
$table1->headstyle[8] = 'text-align: left';
|
||||||
|
$table1->headstyle[9] = 'text-align: left';
|
||||||
|
$table1->headstyle[10] = 'text-align: left';
|
||||||
|
$table1->headstyle[11] = 'text-align: left';
|
||||||
|
|
||||||
|
$table1->data = [];
|
||||||
|
|
||||||
|
foreach ($item['data'] as $data) {
|
||||||
|
$row = [];
|
||||||
|
|
||||||
|
foreach ($data as $data_field_key => $data_field_value) {
|
||||||
|
$column_value = $data_field_value;
|
||||||
|
|
||||||
|
$show_link = $pdf === 0 ? true : false;
|
||||||
|
|
||||||
|
// Necessary transformations of data prior to represent it.
|
||||||
|
if ($data_field_key === 'id_os') {
|
||||||
|
$column_value = get_os_name((int) $data_field_value);
|
||||||
|
} else if ($data_field_key === 'remote' && $pdf === 0) {
|
||||||
|
$column_value = ((int) $data_field_value === 1) ? __('Yes') : __('No');
|
||||||
|
} else if ($data_field_key === 'url_address' && $pdf === 0) {
|
||||||
|
$column_value = ui_print_truncate_text($data_field_value, 10);
|
||||||
|
} else if ($data_field_key === 'estado') {
|
||||||
|
$column_value = ($pdf === 0) ? ui_print_module_status((int) $data_field_value, true) : modules_get_modules_status((int) $data_field_value);
|
||||||
|
} else if ($data_field_key === 'id_grupo') {
|
||||||
|
$column_value = ui_print_group_icon((int) $data_field_value, true, 'groups_small', '', $show_link);
|
||||||
|
} else if ($data_field_key === 'custom_fields') {
|
||||||
|
$custom_fields_value = [];
|
||||||
|
|
||||||
|
if (is_array($data_field_value)) {
|
||||||
|
foreach ($data_field_value as $value) {
|
||||||
|
$custom_fields_value[] = $value['name'].': '.$value['description'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$column_value = implode(' / ', $custom_fields_value);
|
||||||
|
} else if ($data_field_key === 'secondary_groups') {
|
||||||
|
$custom_fields_value = [];
|
||||||
|
|
||||||
|
if (is_array($data_field_value)) {
|
||||||
|
foreach ($data_field_value as $value) {
|
||||||
|
$custom_fields_value[] = ui_print_group_icon((int) $value['id_group'], true, 'groups_small', '', $show_link);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$column_value = implode(' / ', $custom_fields_value);
|
||||||
|
}
|
||||||
|
|
||||||
|
$row[] = $column_value;
|
||||||
|
}
|
||||||
|
|
||||||
|
$table1->data[] = $row;
|
||||||
|
|
||||||
|
if ($pdf !== 0) {
|
||||||
|
$table1->data[] = '<br />';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($pdf === 0) {
|
||||||
|
$table->colspan['permissions']['cell'] = 3;
|
||||||
|
$table->cellstyle['permissions']['cell'] = 'text-align: center;';
|
||||||
|
$table->data['permissions']['cell'] = html_print_table(
|
||||||
|
$table1,
|
||||||
|
true
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
return html_print_table(
|
||||||
|
$table1,
|
||||||
|
true
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Print in html inventory changes reports
|
* Print in html inventory changes reports
|
||||||
*
|
*
|
||||||
|
@ -848,6 +848,13 @@ function reports_get_report_types($template=false, $not_editor=false)
|
|||||||
'name' => __('Group event report'),
|
'name' => __('Group event report'),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
if (!$template) {
|
||||||
|
$types['agents_inventory'] = [
|
||||||
|
'optgroup' => __('Inventory'),
|
||||||
|
'name' => __('Agents inventory'),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
if ($config['enterprise_installed']) {
|
if ($config['enterprise_installed']) {
|
||||||
$types['inventory'] = [
|
$types['inventory'] = [
|
||||||
'optgroup' => __('Inventory'),
|
'optgroup' => __('Inventory'),
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
<div class="pdd_l_30px w150px float-left line_17px">
|
<div class="pdd_l_30px w150px float-left line_17px">
|
||||||
<h3>Validate</h3>
|
<h3>Validate</h3>
|
||||||
<?php html_print_image('images/tick.png', false, ['title' => 'Validated event', 'alt' => 'Validated event', 'width' => '10', 'height' => '10']); ?> - Validated event<br>
|
<?php html_print_image('images/tick.png', false, ['class' => 'invert_filter', 'title' => 'Validated event', 'alt' => 'Validated event', 'width' => '10', 'height' => '10']); ?> - Validated event<br>
|
||||||
<div class="w10px height_10px inline"></div> - Event not validated
|
<div class="w10px height_10px inline"></div> - Event not validated
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -644,7 +644,7 @@ var TreeController = {
|
|||||||
$content.append($statusImage);
|
$content.append($statusImage);
|
||||||
}
|
}
|
||||||
var image_tooltip =
|
var image_tooltip =
|
||||||
'<span><img src="' +
|
'<span><img class="invert_filter" src="' +
|
||||||
(controller.baseURL.length > 0 ? controller.baseURL : "") +
|
(controller.baseURL.length > 0 ? controller.baseURL : "") +
|
||||||
'images/help.png" class="img_help" title="' +
|
'images/help.png" class="img_help" title="' +
|
||||||
element.name +
|
element.name +
|
||||||
@ -653,7 +653,7 @@ var TreeController = {
|
|||||||
'"/></span> ';
|
'"/></span> ';
|
||||||
|
|
||||||
var $serviceDetailImage = $(
|
var $serviceDetailImage = $(
|
||||||
'<img src="' +
|
'<img class="invert_filter" src="' +
|
||||||
(controller.baseURL.length > 0 ? controller.baseURL : "") +
|
(controller.baseURL.length > 0 ? controller.baseURL : "") +
|
||||||
'images/tree_service_map.png" /> '
|
'images/tree_service_map.png" /> '
|
||||||
);
|
);
|
||||||
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -55,7 +55,9 @@ table.databox,
|
|||||||
input.sub,
|
input.sub,
|
||||||
.introjs-tooltip,
|
.introjs-tooltip,
|
||||||
button.sub,
|
button.sub,
|
||||||
.bg_general {
|
.bg_general,
|
||||||
|
.show_result_interpreter,
|
||||||
|
div#rules::after {
|
||||||
background-color: #222 !important;
|
background-color: #222 !important;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
@ -232,7 +234,8 @@ div#foot {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Overwrite inline styles */
|
/* Overwrite inline styles */
|
||||||
.textodialogo td .white_important {
|
.textodialogo td .white_important,
|
||||||
|
.multi-select-container {
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -884,6 +887,7 @@ div#dashboard-controls {
|
|||||||
text-anchor: middle;
|
text-anchor: middle;
|
||||||
fill: #fff;
|
fill: #fff;
|
||||||
font-family: Verdana;
|
font-family: Verdana;
|
||||||
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tickLabel {
|
.tickLabel {
|
||||||
@ -1027,3 +1031,18 @@ table.alternate tr:nth-child(2n + 1) td {
|
|||||||
table.alternate tr:nth-child(2n) td {
|
table.alternate tr:nth-child(2n) td {
|
||||||
background-color: #111;
|
background-color: #111;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.results-found {
|
||||||
|
background-color: #111;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#graph_container {
|
||||||
|
background-color: #111 !important;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#elasticsearch_editor,
|
||||||
|
#elasticsearch_view {
|
||||||
|
filter: invert(100%);
|
||||||
|
}
|
||||||
|
@ -129,7 +129,7 @@
|
|||||||
<div style='height: 10px'>
|
<div style='height: 10px'>
|
||||||
<?php
|
<?php
|
||||||
$version = '7.0NG.754';
|
$version = '7.0NG.754';
|
||||||
$build = '210604';
|
$build = '210607';
|
||||||
$banner = "v$version Build $build";
|
$banner = "v$version Build $build";
|
||||||
|
|
||||||
error_reporting(0);
|
error_reporting(0);
|
||||||
|
@ -1,17 +1,32 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* Graph viewer.
|
||||||
|
*
|
||||||
|
* @category Reporting
|
||||||
|
* @package Pandora FMS
|
||||||
|
* @subpackage Community
|
||||||
|
* @version 1.0.0
|
||||||
|
* @license See below
|
||||||
|
*
|
||||||
|
* ______ ___ _______ _______ ________
|
||||||
|
* | __ \.-----.--.--.--| |.-----.----.-----. | ___| | | __|
|
||||||
|
* | __/| _ | | _ || _ | _| _ | | ___| |__ |
|
||||||
|
* |___| |___._|__|__|_____||_____|__| |___._| |___| |__|_|__|_______|
|
||||||
|
*
|
||||||
|
* ============================================================================
|
||||||
|
* Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
||||||
|
* Please see http://pandorafms.org for full contribution list
|
||||||
|
* This program is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU General Public License
|
||||||
|
* as published by the Free Software Foundation for version 2.
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
* ============================================================================
|
||||||
|
*/
|
||||||
|
|
||||||
// Pandora FMS - http://pandorafms.com
|
// Begin.
|
||||||
// ==================================================
|
|
||||||
// Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
|
||||||
// Please see http://pandorafms.org for full contribution list
|
|
||||||
// This program is free software; you can redistribute it and/or
|
|
||||||
// modify it under the terms of the GNU General Public License
|
|
||||||
// as published by the Free Software Foundation for version 2.
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
// Login check
|
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
check_login();
|
check_login();
|
||||||
@ -231,14 +246,24 @@ if ($view_graph) {
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
// Header
|
// Header.
|
||||||
ui_print_page_header(
|
ui_print_standard_header(
|
||||||
$graph['name'],
|
$graph['name'],
|
||||||
'images/chart.png',
|
'images/chart.png',
|
||||||
false,
|
false,
|
||||||
'',
|
'',
|
||||||
false,
|
false,
|
||||||
$options
|
$options,
|
||||||
|
[
|
||||||
|
[
|
||||||
|
'link' => '',
|
||||||
|
'label' => __('Reporting'),
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'link' => '',
|
||||||
|
'label' => __('Custom graphs'),
|
||||||
|
],
|
||||||
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
$width = null;
|
$width = null;
|
||||||
|
@ -96,7 +96,10 @@ if (check_acl_restricted_all($config['id_user'], $report_group, 'RW')) {
|
|||||||
$options['main']['text'] = '<a href="index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=main&action=edit&id_report='.$id_report.'&pure='.$pure.'">'.html_print_image(
|
$options['main']['text'] = '<a href="index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=main&action=edit&id_report='.$id_report.'&pure='.$pure.'">'.html_print_image(
|
||||||
'images/op_reporting.png',
|
'images/op_reporting.png',
|
||||||
true,
|
true,
|
||||||
['title' => __('Main data')]
|
[
|
||||||
|
'title' => __('Main data'),
|
||||||
|
'class' => 'invert_filter',
|
||||||
|
]
|
||||||
).'</a>';
|
).'</a>';
|
||||||
|
|
||||||
$options['list_items']['text'] = '<a href="index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=edit&id_report='.$id_report.'&pure='.$pure.'">'.html_print_image(
|
$options['list_items']['text'] = '<a href="index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=edit&id_report='.$id_report.'&pure='.$pure.'">'.html_print_image(
|
||||||
|
@ -221,7 +221,23 @@ if ($searchUsers) {
|
|||||||
// Check ACLs
|
// Check ACLs
|
||||||
$users_id = [];
|
$users_id = [];
|
||||||
foreach ($users as $key => $user) {
|
foreach ($users as $key => $user) {
|
||||||
if (!check_acl($config['id_user'], users_get_groups($user['id_user']), 'UM') && $config['id_user'] != $user['id_user']) {
|
$user_can_manage_all = users_can_manage_group_all('UM');
|
||||||
|
|
||||||
|
$user_groups = users_get_groups(
|
||||||
|
$user['id_user'],
|
||||||
|
'AR',
|
||||||
|
$user_can_manage_all
|
||||||
|
);
|
||||||
|
|
||||||
|
// Get group IDs.
|
||||||
|
$user_groups = array_keys($user_groups);
|
||||||
|
|
||||||
|
if (check_acl_one_of_groups($config['id_user'], $user_groups, 'UM') === false
|
||||||
|
&& $config['id_user'] != $user['id_user']
|
||||||
|
|| (users_is_admin($config['id_user']) === false
|
||||||
|
&& users_is_admin($user['id_user']) === true)
|
||||||
|
|| $config['id_user'] === $user['id_user']
|
||||||
|
) {
|
||||||
unset($users[$key]);
|
unset($users[$key]);
|
||||||
} else {
|
} else {
|
||||||
$users_id[] = $user['id_user'];
|
$users_id[] = $user['id_user'];
|
||||||
@ -229,33 +245,9 @@ if ($searchUsers) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($only_count) {
|
if ($only_count) {
|
||||||
|
$totalUsers = count($users);
|
||||||
unset($users);
|
unset($users);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch ($config['dbtype']) {
|
|
||||||
case 'mysql':
|
|
||||||
case 'postgresql':
|
|
||||||
$sql = "SELECT COUNT(id_user) AS count FROM tusuario
|
|
||||||
WHERE id_user LIKE '%".$stringSearchSQL."%' OR
|
|
||||||
fullname LIKE '%".$stringSearchSQL."%' OR
|
|
||||||
firstname LIKE '%".$stringSearchSQL."%' OR
|
|
||||||
lastname LIKE '%".$stringSearchSQL."%' OR
|
|
||||||
middlename LIKE '%".$stringSearchSQL."%' OR
|
|
||||||
email LIKE '%".$stringSearchSQL."%'";
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'oracle':
|
|
||||||
$sql = "SELECT COUNT(id_user) AS count FROM tusuario
|
|
||||||
WHERE upper(id_user) LIKE '%".strtolower($stringSearchSQL)."%' OR
|
|
||||||
upper(fullname) LIKE '%".strtolower($stringSearchSQL)."%' OR
|
|
||||||
upper(firstname) LIKE '%".strtolower($stringSearchSQL)."%' OR
|
|
||||||
upper(lastname) LIKE '%".strtolower($stringSearchSQL)."%' OR
|
|
||||||
upper(middlename) LIKE '%".strtolower($stringSearchSQL)."%' OR
|
|
||||||
upper(email LIKE) '%".strtolower($stringSearchSQL)."%'";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
$totalUsers = db_get_value_sql($sql);
|
|
||||||
} else {
|
} else {
|
||||||
$totalUsers = 0;
|
$totalUsers = 0;
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
%define name pandorafms_console
|
%define name pandorafms_console
|
||||||
%define version 7.0NG.754
|
%define version 7.0NG.754
|
||||||
%define release 210604
|
%define release 210607
|
||||||
|
|
||||||
# User and Group under which Apache is running
|
# User and Group under which Apache is running
|
||||||
%define httpd_name httpd
|
%define httpd_name httpd
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
%define name pandorafms_console
|
%define name pandorafms_console
|
||||||
%define version 7.0NG.754
|
%define version 7.0NG.754
|
||||||
%define release 210604
|
%define release 210607
|
||||||
|
|
||||||
# User and Group under which Apache is running
|
# User and Group under which Apache is running
|
||||||
%define httpd_name httpd
|
%define httpd_name httpd
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
%define name pandorafms_console
|
%define name pandorafms_console
|
||||||
%define version 7.0NG.754
|
%define version 7.0NG.754
|
||||||
%define release 210604
|
%define release 210607
|
||||||
%define httpd_name httpd
|
%define httpd_name httpd
|
||||||
# User and Group under which Apache is running
|
# User and Group under which Apache is running
|
||||||
%define httpd_name apache2
|
%define httpd_name apache2
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
package: pandorafms-server
|
package: pandorafms-server
|
||||||
Version: 7.0NG.754-210604
|
Version: 7.0NG.754-210607
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Section: admin
|
Section: admin
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
pandora_version="7.0NG.754-210604"
|
pandora_version="7.0NG.754-210607"
|
||||||
|
|
||||||
package_cpan=0
|
package_cpan=0
|
||||||
package_pandora=1
|
package_pandora=1
|
||||||
|
@ -45,7 +45,7 @@ our @EXPORT = qw(
|
|||||||
|
|
||||||
# version: Defines actual version of Pandora Server for this module only
|
# version: Defines actual version of Pandora Server for this module only
|
||||||
my $pandora_version = "7.0NG.754";
|
my $pandora_version = "7.0NG.754";
|
||||||
my $pandora_build = "210604";
|
my $pandora_build = "210607";
|
||||||
our $VERSION = $pandora_version." ".$pandora_build;
|
our $VERSION = $pandora_version." ".$pandora_build;
|
||||||
|
|
||||||
# Setup hash
|
# Setup hash
|
||||||
|
@ -34,7 +34,7 @@ our @ISA = qw(Exporter);
|
|||||||
|
|
||||||
# version: Defines actual version of Pandora Server for this module only
|
# version: Defines actual version of Pandora Server for this module only
|
||||||
my $pandora_version = "7.0NG.754";
|
my $pandora_version = "7.0NG.754";
|
||||||
my $pandora_build = "210604";
|
my $pandora_build = "210607";
|
||||||
our $VERSION = $pandora_version." ".$pandora_build;
|
our $VERSION = $pandora_version." ".$pandora_build;
|
||||||
|
|
||||||
our %EXPORT_TAGS = ( 'all' => [ qw() ] );
|
our %EXPORT_TAGS = ( 'all' => [ qw() ] );
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
%define name pandorafms_server
|
%define name pandorafms_server
|
||||||
%define version 7.0NG.754
|
%define version 7.0NG.754
|
||||||
%define release 210604
|
%define release 210607
|
||||||
|
|
||||||
Summary: Pandora FMS Server
|
Summary: Pandora FMS Server
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
%define name pandorafms_server
|
%define name pandorafms_server
|
||||||
%define version 7.0NG.754
|
%define version 7.0NG.754
|
||||||
%define release 210604
|
%define release 210607
|
||||||
|
|
||||||
Summary: Pandora FMS Server
|
Summary: Pandora FMS Server
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
# **********************************************************************
|
# **********************************************************************
|
||||||
|
|
||||||
PI_VERSION="7.0NG.754"
|
PI_VERSION="7.0NG.754"
|
||||||
PI_BUILD="210604"
|
PI_BUILD="210607"
|
||||||
|
|
||||||
MODE=$1
|
MODE=$1
|
||||||
if [ $# -gt 1 ]; then
|
if [ $# -gt 1 ]; then
|
||||||
|
@ -35,7 +35,7 @@ use PandoraFMS::Config;
|
|||||||
use PandoraFMS::DB;
|
use PandoraFMS::DB;
|
||||||
|
|
||||||
# version: define current version
|
# version: define current version
|
||||||
my $version = "7.0NG.754 Build 210604";
|
my $version = "7.0NG.754 Build 210607";
|
||||||
|
|
||||||
# Pandora server configuration
|
# Pandora server configuration
|
||||||
my %conf;
|
my %conf;
|
||||||
|
@ -36,7 +36,7 @@ use Encode::Locale;
|
|||||||
Encode::Locale::decode_argv;
|
Encode::Locale::decode_argv;
|
||||||
|
|
||||||
# version: define current version
|
# version: define current version
|
||||||
my $version = "7.0NG.754 Build 210604";
|
my $version = "7.0NG.754 Build 210607";
|
||||||
|
|
||||||
# save program name for logging
|
# save program name for logging
|
||||||
my $progname = basename($0);
|
my $progname = basename($0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user