Merge branch 'develop' of https://github.com/pandorafms/pandorafms into develop

This commit is contained in:
Alejandro Gallardo Escobar 2015-02-04 12:48:02 +01:00
commit 4bb008b4eb
30 changed files with 290 additions and 46 deletions

View File

@ -1,5 +1,5 @@
package: pandorafms-agent-unix
Version: 6.0dev-150203
Version: 6.0dev-150204
Architecture: all
Priority: optional
Section: admin

View File

@ -14,7 +14,7 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
pandora_version="6.0dev-150203"
pandora_version="6.0dev-150204"
echo "Test if you has the tools for to make the packages."
whereis dpkg-deb | cut -d":" -f2 | grep dpkg-deb > /dev/null

View File

@ -41,7 +41,7 @@ my $Sem = undef;
my $ThreadSem = undef;
use constant AGENT_VERSION => '6.0dev';
use constant AGENT_BUILD => '150203';
use constant AGENT_BUILD => '150204';
# Commands to retrieve total memory information in kB
use constant TOTALMEMORY_CMDS => {

View File

@ -3,7 +3,7 @@
#
%define name pandorafms_agent_unix
%define version 6.0dev
%define release 150203
%define release 150204
Summary: Pandora FMS Linux agent, PERL version
Name: %{name}

View File

@ -3,7 +3,7 @@
#
%define name pandorafms_agent_unix
%define version 6.0dev
%define release 150203
%define release 150204
Summary: Pandora FMS Linux agent, PERL version
Name: %{name}

View File

@ -186,7 +186,7 @@ UpgradeApplicationID
{}
Version
{150203}
{150204}
ViewReadme
{Yes}

View File

@ -30,7 +30,7 @@ using namespace Pandora;
using namespace Pandora_Strutils;
#define PATH_SIZE _MAX_PATH+1
#define PANDORA_VERSION ("6.0dev(Build 150203)")
#define PANDORA_VERSION ("6.0dev(Build 150204)")
string pandora_path;
string pandora_dir;

View File

@ -11,7 +11,7 @@ BEGIN
VALUE "LegalCopyright", "Artica ST"
VALUE "OriginalFilename", "PandoraAgent.exe"
VALUE "ProductName", "Pandora FMS Windows Agent"
VALUE "ProductVersion", "(6.0dev(Build 150203))"
VALUE "ProductVersion", "(6.0dev(Build 150204))"
VALUE "FileVersion", "1.0.0.0"
END
END

View File

@ -1,5 +1,5 @@
package: pandorafms-console
Version: 6.0dev-150203
Version: 6.0dev-150204
Architecture: all
Priority: optional
Section: admin

View File

@ -14,7 +14,7 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
pandora_version="6.0dev-150203"
pandora_version="6.0dev-150204"
package_pear=0
package_pandora=1

View File

@ -27,7 +27,7 @@ $_SESSION["alert_msg"] = "";
// Global errors/warnings checking.
config_check();
$login = get_parameter('login', 0);
?>
<table width="100%" cellpadding="0" cellspacing="0" style="margin:0px; padding:0px; margin-top: 0px; height: 100%" border="0">
<tr>
@ -82,9 +82,6 @@ $login = get_parameter('login', 0);
$servers["up"] = (int) servers_check_status ();
$servers["down"] = $servers["all"] - $servers["up"];
if ($servers["up"] == 0) {
if (!$login){
$server_clippy = clippy_context_help("servers_down");
}
//All Servers down or no servers at all
$servers_check_img = html_print_image("images/header_down.png", true, array("alt" => 'cross', "class" => 'bot', 'title' => __('All systems').': '.__('Down')));
}
@ -235,40 +232,39 @@ $login = get_parameter('login', 0);
}
$table->data[0][3] = $maintenance_img;
$table->data[0][4] = $server_clippy;
// Main help icon
$table->data[0][5] = ui_print_help_icon ("main_help", true, '', 'images/header_help.png');
$table->data[0][4] = ui_print_help_icon ("main_help", true, '', 'images/header_help.png');
// Logout
$table->data[0][6] = '<a class="white" href="' . ui_get_full_url('index.php?bye=bye') . '">';
$table->data[0][6] .= html_print_image("images/header_logout.png", true, array("alt" => __('Logout'), "class" => 'bot', "title" => __('Logout')));
$table->data[0][6] .= '</a>';
$table->data[0][5] = '<a class="white" href="' . ui_get_full_url('index.php?bye=bye') . '">';
$table->data[0][5] .= html_print_image("images/header_logout.png", true, array("alt" => __('Logout'), "class" => 'bot', "title" => __('Logout')));
$table->data[0][5] .= '</a>';
// User
if (is_user_admin ($config["id_user"]) == 1)
$table->data[0][7] = html_print_image("images/header_user_admin.png" , true, array("title" => __('Edit my user'), "class" => 'bot', "alt" => 'user'));
$table->data[0][6] = html_print_image("images/header_user_admin.png" , true, array("title" => __('Edit my user'), "class" => 'bot', "alt" => 'user'));
else
$table->data[0][7] = html_print_image("images/header_user.png" , true, array("title" => __('Edit my user'), "class" => 'bot', "alt" => 'user'));
$table->data[0][6] = html_print_image("images/header_user.png" , true, array("title" => __('Edit my user'), "class" => 'bot', "alt" => 'user'));
$table->data[0][7] = '<a href="index.php?sec=workspace&sec2=operation/users/user_edit">' . $table->data[0][7] . '</a>';
$table->data[0][6] = '<a href="index.php?sec=workspace&sec2=operation/users/user_edit">' . $table->data[0][7] . '</a>';
$table->data[0][8] = '<a href="index.php?sec=workspace&amp;sec2=operation/users/user_edit" class="white_bold"> (' . $config["id_user"] . ')</a>';
$table->data[0][7] = '<a href="index.php?sec=workspace&amp;sec2=operation/users/user_edit" class="white_bold"> (' . $config["id_user"] . ')</a>';
// Chat messages
$table->data[0][9] = "<span id='icon_new_messages_chat' style='display: none;'>";
$table->data[0][9] .= "<a href='index.php?sec=workspace&sec2=operation/users/webchat'>";
$table->data[0][9] .= html_print_image('images/header_chat.png', true, array("title" => __('New chat message')));
$table->data[0][9] .= "</a>";
$table->data[0][9] .= "</span>";
$table->data[0][8] = "<span id='icon_new_messages_chat' style='display: none;'>";
$table->data[0][8] .= "<a href='index.php?sec=workspace&sec2=operation/users/webchat'>";
$table->data[0][8] .= html_print_image('images/header_chat.png', true, array("title" => __('New chat message')));
$table->data[0][8] .= "</a>";
$table->data[0][8] .= "</span>";
// Messages
$msg_cnt = messages_get_count ($config["id_user"]);
if ($msg_cnt > 0) {
echo '<div id="dialog_messages" style="display: none"></div>';
$table->data[0][10] = '<a href="ajax.php?page=operation/messages/message_list" title="' . __("Message overview") . '" id="show_messages_dialog">';
$table->data[0][10] .= html_print_image ("images/header_email.png", true, array ("title" => __('You have %d unread message(s)', $msg_cnt), "id" => "yougotmail", "class" => "bot", 'style' => 'width:24px;'));
$table->data[0][10] .= '</a>';
$table->data[0][9] = '<a href="ajax.php?page=operation/messages/message_list" title="' . __("Message overview") . '" id="show_messages_dialog">';
$table->data[0][9] .= html_print_image ("images/header_email.png", true, array ("title" => __('You have %d unread message(s)', $msg_cnt), "id" => "yougotmail", "class" => "bot", 'style' => 'width:24px;'));
$table->data[0][9] .= '</a>';
}
@ -304,7 +300,7 @@ $login = get_parameter('login', 0);
$table->data[0]['searchbar'] = $search_bar;
$table->data[0][12] = ui_print_help_tip (__("Blank characters are used as AND conditions"), true);
$table->data[0][11] = ui_print_help_tip (__("Blank characters are used as AND conditions"), true);
html_print_table($table);

View File

@ -245,7 +245,9 @@ $table->data[3][1] = html_print_select_groups(false, "AR", false, 'grupo', $grup
$table->data[4][0] = __('Interval');
$table->data[4][1] = html_print_extended_select_for_time ('intervalo', $intervalo, '', '', '0', 10, true);
if($intervalo<300){
$table->data[4][1] .= clippy_context_help("interval_agent_min");
}
$table->data[5][0] = __('OS');
$table->data[5][1] = html_print_select_from_sql ('SELECT id_os, name FROM tconfig_os',
'id_os', $id_os, '', '', '0', true);

View File

@ -14,6 +14,9 @@
// GNU General Public License for more details.
// Load global vars
require_once ('include/functions_clippy.php');
global $config;
check_login();
@ -29,7 +32,8 @@ global $tiny;
$servers = servers_get_info();
if ($servers === false) {
echo "<div class='nf'>".__('There are no servers configured into the database')."</div>";
$server_clippy = clippy_context_help("servers_down");
echo "<div class='nf'>".__('There are no servers configured into the database').$server_clippy."</div>";
return;
}
@ -109,6 +113,9 @@ foreach ($servers as $server) {
}
$data[6] = $server['threads'].' : '.$server['queued_modules'];
if ($server['queued_modules'] > 200){
$data[6] .= clippy_context_help("server_queued_modules");
}
$data[7] = ui_print_timestamp ($server['keepalive'], true);
//Only Pandora Administrator can delete servers

View File

@ -22,7 +22,7 @@
/**
* Pandora build version and version
*/
$build_version = 'PC150203';
$build_version = 'PC150204';
$pandora_version = 'v6.0dev';
// Do not overwrite default timezone set if defined.

View File

@ -0,0 +1,64 @@
<?php
// Pandora FMS - http://pandorafms.com
// ==================================================
// Copyright (c) 2005-2011 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 Lesser General Public License
// as published by the Free Software Foundation; 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.
/**
* @package Include
* @subpackage Clippy
*/
function clippy_data_configuration_module() {
$return_tours = array();
$return_tours['first_step_by_default'] = true;
$return_tours['help_context'] = true;
$return_tours['tours'] = array();
//==================================================================
//Help tour about the monitoring with a ping (step 3)
//------------------------------------------------------------------
$return_tours['tours']['data_configuration_module'] = array();
$return_tours['tours']['data_configuration_module']['steps'] = array();
$return_tours['tours']['data_configuration_module']['steps'][] = array(
'init_step_context' => true,
'intro' => '<table>' .
'<tr>' .
'<td class="context_help_title">' .
__('Data Configuration Module.') .
'</td>' .
'</tr>' .
'<td class="context_help_body">' .
__('Please note that information provided here affects how the agent collect information and generate the data XML. Any data/configuration reported by the agent, different from data or description is discarded, and the configuration shown in the console prevails over any configuration coming from the agent, this applies for example for crit/warn thresholds, interval, module group, min/max value, tags, etc.') .
'</td>' .
'</tr>' .
'<tr>' .
'<td class="context_help_body">' .
__('Information imported FIRST time from the XML will fill the information you can see in the console, but after the first import, system will ignore any update coming from the XML/Agent.') .
'</td>' .
'</tr>' .
'</table>'
);
$return_tours['tours']['data_configuration_module']['conf'] = array();
$return_tours['tours']['data_configuration_module']['conf']['autostart'] = false;
$return_tours['tours']['data_configuration_module']['conf']['show_bullets'] = 0;
$return_tours['tours']['data_configuration_module']['conf']['show_step_numbers'] = 0;
//==================================================================
return $return_tours;
}
?>

View File

@ -0,0 +1,57 @@
<?php
// Pandora FMS - http://pandorafms.com
// ==================================================
// Copyright (c) 2005-2011 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 Lesser General Public License
// as published by the Free Software Foundation; 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.
/**
* @package Include
* @subpackage Clippy
*/
function clippy_interval_agent_min() {
$return_tours = array();
$return_tours['first_step_by_default'] = true;
$return_tours['help_context'] = true;
$return_tours['tours'] = array();
//==================================================================
//Help tour about the monitoring with a ping (step 3)
//------------------------------------------------------------------
$return_tours['tours']['interval_agent_min'] = array();
$return_tours['tours']['interval_agent_min']['steps'] = array();
$return_tours['tours']['interval_agent_min']['steps'][] = array(
'init_step_context' => true,
'intro' => '<table>' .
'<tr>' .
'<td class="context_help_title">' .
__('Interval Agent.') .
'</td>' .
'</tr>' .
'<tr>' .
'<td class="context_help_body">' .
__('Please note that having agents with a monitoring interval below 300 seconds is not recommended. This will impact seriously in the performance of the server. For example, having 200 agents with one minute interval, is the same than having 1000 agents with a 5 minute interval. The probability of getting unknown modules is higher, and the impact on the server is higher because it requires a shorter response time.') .
'</td>' .
'</tr>' .
'</table>'
);
$return_tours['tours']['interval_agent_min']['conf'] = array();
$return_tours['tours']['interval_agent_min']['conf']['autostart'] = false;
$return_tours['tours']['interval_agent_min']['conf']['show_bullets'] = 0;
$return_tours['tours']['interval_agent_min']['conf']['show_step_numbers'] = 0;
//==================================================================
return $return_tours;
}
?>

View File

@ -0,0 +1,58 @@
<?php
// Pandora FMS - http://pandorafms.com
// ==================================================
// Copyright (c) 2005-2011 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 Lesser General Public License
// as published by the Free Software Foundation; 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.
/**
* @package Include
* @subpackage Clippy
*/
function clippy_server_queued_modules() {
$return_tours = array();
$return_tours['first_step_by_default'] = true;
$return_tours['help_context'] = true;
$return_tours['tours'] = array();
//==================================================================
//Help tour about the monitoring with a ping (step 3)
//------------------------------------------------------------------
$return_tours['tours']['server_queued_modules'] = array();
$return_tours['tours']['server_queued_modules']['steps'] = array();
$return_tours['tours']['server_queued_modules']['steps'][] = array(
'init_step_context' => true,
'intro' => '<table>' .
'<tr>' .
'<td class="context_help_title">' .
__('Excesive Queued.') .
'</td>' .
'</tr>' .
'<td class="context_help_body">' .
__('You have too much items in the processing queue. This can happen if your server is too loaded and/or not properly configured. This could be something temporal, or a bottleneck. One possible solution is increase number of server threads, but you should consider getting support about this.') .
'</td>' .
'</tr>' .
'</table>'
);
$return_tours['tours']['server_queued_modules']['conf'] = array();
$return_tours['tours']['server_queued_modules']['conf']['autostart'] = false;
$return_tours['tours']['server_queued_modules']['conf']['show_bullets'] = 0;
$return_tours['tours']['server_queued_modules']['conf']['show_step_numbers'] = 0;
//==================================================================
return $return_tours;
}
?>

View File

@ -0,0 +1,57 @@
<?php
// Pandora FMS - http://pandorafms.com
// ==================================================
// Copyright (c) 2005-2011 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 Lesser General Public License
// as published by the Free Software Foundation; 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.
/**
* @package Include
* @subpackage Clippy
*/
function clippy_topology_group() {
$return_tours = array();
$return_tours['first_step_by_default'] = true;
$return_tours['help_context'] = true;
$return_tours['tours'] = array();
//==================================================================
//Help tour about the monitoring with a ping (step 3)
//------------------------------------------------------------------
$return_tours['tours']['topology_group'] = array();
$return_tours['tours']['topology_group']['steps'] = array();
$return_tours['tours']['topology_group']['steps'][] = array(
'init_step_context' => true,
'intro' => '<table>' .
'<tr>' .
'<td class="context_help_title">' .
__('Topology Group') .
'</td>' .
'</tr>' .
'<tr>' .
'<td class="context_help_body">' .
__('Please note that group topology maps do not show the parent relationship between nodes, it only shows the group parentship and the agent distribution inside them. ') .
'</td>' .
'</tr>' .
'</table>'
);
$return_tours['tours']['topology_group']['conf'] = array();
$return_tours['tours']['topology_group']['conf']['autostart'] = false;
$return_tours['tours']['topology_group']['conf']['show_bullets'] = 0;
$return_tours['tours']['topology_group']['conf']['show_step_numbers'] = 0;
//==================================================================
return $return_tours;
}
?>

View File

@ -63,7 +63,7 @@
<div style='height: 10px'>
<?php
$version = '6.0dev';
$build = '150203';
$build = '150204';
$banner = "v$version Build $build";
error_reporting(0);

View File

@ -335,6 +335,9 @@ $table->class = 'databox';
$table->data = array();
$table->data[0][] = __('Name:') . '&nbsp;' .
html_print_input_text ('name', $name, '', 25, 50, true);
if ($activeTab == 'groups'){
$table->data[0][0] .= clippy_context_help("topology_group");
}
$table->data[0][] = __('Group:') . '&nbsp;' .
html_print_select_groups(false, 'AR', false, 'group', $group, '', 'All', 0, true);
if ($activeTab == 'groups' || $activeTab == 'policies' || $activeTab == 'radial_dynamic') {

View File

@ -3,7 +3,7 @@
#
%define name pandorafms_console
%define version 6.0dev
%define release 150203
%define release 150204
# User and Group under which Apache is running
%define httpd_name httpd

View File

@ -3,7 +3,7 @@
#
%define name pandorafms_console
%define version 6.0dev
%define release 150203
%define release 150204
%define httpd_name httpd
# User and Group under which Apache is running
%define httpd_name apache2

View File

@ -38,7 +38,7 @@ INSERT INTO `tconfig` (`token`, `value`) VALUES
('graph_res','5'),
('step_compact','1'),
('db_scheme_version','6.0dev'),
('db_scheme_build','PD150203'),
('db_scheme_build','PD150204'),
('show_unknown','0'),
('show_lastalerts','1'),
('style','pandora'),

View File

@ -1,5 +1,5 @@
package: pandorafms-server
Version: 6.0dev-150203
Version: 6.0dev-150204
Architecture: all
Priority: optional
Section: admin

View File

@ -14,7 +14,7 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
pandora_version="6.0dev-150203"
pandora_version="6.0dev-150204"
package_cpan=0
package_pandora=1

View File

@ -43,7 +43,7 @@ our @EXPORT = qw(
# version: Defines actual version of Pandora Server for this module only
my $pandora_version = "6.0dev";
my $pandora_build = "150203";
my $pandora_build = "150204";
our $VERSION = $pandora_version." ".$pandora_build;
# Setup hash

View File

@ -3,7 +3,7 @@
#
%define name pandorafms_server
%define version 6.0dev
%define release 150203
%define release 150204
Summary: Pandora FMS Server
Name: %{name}

View File

@ -3,7 +3,7 @@
#
%define name pandorafms_server
%define version 6.0dev
%define release 150203
%define release 150204
Summary: Pandora FMS Server
Name: %{name}

View File

@ -33,7 +33,7 @@ use PandoraFMS::Tools;
use PandoraFMS::DB;
# version: define current version
my $version = "6.0dev PS150203";
my $version = "6.0dev PS150204";
# Pandora server configuration
my %conf;

View File

@ -34,7 +34,7 @@ use Encode::Locale;
Encode::Locale::decode_argv;
# version: define current version
my $version = "6.0dev PS150203";
my $version = "6.0dev PS150204";
# save program name for logging
my $progname = basename($0);