2009-08-24 Miguel de Dios <miguel.dedios@artica.es>

* include/functions_menu.php, include/functions_html.php,
	include/functions_events.php, include/functions_messages.php,
	include/functions_modules.php, include/functions_exportserver.php,
	include/functions_reporting.php, include/functions_filemanager.php,
	include/pchart_graph.php, include/pandora_graph.php, include/auth/dev.php,
	include/auth/ldap.php, include/auth/mysql.php, include/config.inc.php,
	include/functions_networkmap.php, include/functions_servers.php,
	include/FusionCharts/FusionCharts_Gen.php,
	include/FusionCharts/FusionCharts.php,
	include/functions_network_profiles.php, include/gettext.php,
	include/functions_network_components.php, include/functions_visual_map.php,
	include/fgraph2.php, include/Image/image_functions.php,
	include/functions_config.php, include/help/en/help_plugin_parameters.php,
	include/help/en/help_snmpcommunity.php, include/help/en/help_wmiquery.php,
	include/help/en/help_postprocess.php,
	include/help/en/help_prediction_source_module.php,
	include/help/en/help_date_format.php, include/help/en/help_recontask.php,
	include/help/en/help_alert-matches.php, include/help/en/help_tcp_send.php,
	include/help/en/help_wmifield.php, include/help/en/help_duplicateconfig.php,
	include/help/en/help_agent_status.php,
	include/help/en/help_manage_alerts.php, include/help/en/help_wmikey.php,
	include/help/en/help_alert_type.php,
	include/help/en/help_network_component.php,
	include/help/en/help_time_stamp-comparation.php,
	include/help/en/help_eventview.php, include/help/en/help_timesource.php,
	include/help/en/help_alert_validation.php,
	include/help/en/help_map_builder.php,
	include/help/en/help_alert_recovery.php,
	include/help/en/help_module_type.php,
	include/help/en/help_planned_downtime.php,
	include/help/en/help_serverlag.php, include/help/en/help_alerts.php,
	include/help/en/help_snmpwalk.php,
	include/help/en/help_module_definition.php,
	include/help/en/help_plugin_definition.php,
	include/help/en/help_wminamespace.php, include/help/en/help_snmpoid.php
	include/help/en/help_manageconfig.php,
	include/help/es/help_alert_validation.php,
	include/help/es/help_plugin_parameters.php,
	include/help/es/help_snmpcommunity.php, include/help/es/help_wmiquery.php,
	include/help/es/help_map_builder.php, include/help/es/help_postprocess.php,
	include/help/es/help_date_format.php,
	include/help/es/help_alert_recovery.php,
	include/help/es/help_prediction_source_module.php,
	include/help/es/help_module_type.php,
	include/help/es/help_planned_downtime.php,
	include/help/es/help_alert-matches.php, include/help/es/help_recontask.php,
	include/help/es/help_alerts.php, include/help/es/help_serverlag.php,
	include/help/es/help_snmpwalk.php,
	include/help/es/help_module_definition.php,
	include/help/es/help_tcp_send.php, include/help/es/help_duplicateconfig.php,
	include/help/es/help_wmifield.php, include/help/es/help_manage_alerts.php,
	include/help/es/help_wmikey.php, include/help/es/help_plugin_definition.php,
	include/help/es/help_alert_type.php, include/help/es/help_snmpoid.php,
	include/help/es/help_wminamespace.php,
	include/help/es/help_network_component.php,
	include/help/es/help_time_stamp-comparation.php,
	include/help/es/help_manageconfig.php, include/help/es/help_timesource.php,
	include/config_process.php, include/functions_ui.php, include/htmlawed.php,
	include/functions_custom_graphs.php, include/fgraph.php,
	include/functions_incidents.php, include/functions.php,
	include/functions_agents.php, include/functions_db.php,
	include/functions_themes.php, include/streams.php,
	include/functions_fsgraph.php, include/functions_alerts.php,
	include/functions_reports.php, include/functions_extensions.php,
	include/functions_ui_renders.php: change comments blocks for delete the
	warnings to construct phpDoc Files, give a struct and order in the
	phpDoc files.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1881 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2009-08-25 17:39:28 +00:00
parent fa6c87fd12
commit 3c73c7cfd6
104 changed files with 729 additions and 89 deletions

View File

@ -1,3 +1,73 @@
2009-08-24 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_menu.php, include/functions_html.php,
include/functions_events.php, include/functions_messages.php,
include/functions_modules.php, include/functions_exportserver.php,
include/functions_reporting.php, include/functions_filemanager.php,
include/pchart_graph.php, include/pandora_graph.php, include/auth/dev.php,
include/auth/ldap.php, include/auth/mysql.php, include/config.inc.php,
include/functions_networkmap.php, include/functions_servers.php,
include/FusionCharts/FusionCharts_Gen.php,
include/FusionCharts/FusionCharts.php,
include/functions_network_profiles.php, include/gettext.php,
include/functions_network_components.php, include/functions_visual_map.php,
include/fgraph2.php, include/Image/image_functions.php,
include/functions_config.php, include/help/en/help_plugin_parameters.php,
include/help/en/help_snmpcommunity.php, include/help/en/help_wmiquery.php,
include/help/en/help_postprocess.php,
include/help/en/help_prediction_source_module.php,
include/help/en/help_date_format.php, include/help/en/help_recontask.php,
include/help/en/help_alert-matches.php, include/help/en/help_tcp_send.php,
include/help/en/help_wmifield.php, include/help/en/help_duplicateconfig.php,
include/help/en/help_agent_status.php,
include/help/en/help_manage_alerts.php, include/help/en/help_wmikey.php,
include/help/en/help_alert_type.php,
include/help/en/help_network_component.php,
include/help/en/help_time_stamp-comparation.php,
include/help/en/help_eventview.php, include/help/en/help_timesource.php,
include/help/en/help_alert_validation.php,
include/help/en/help_map_builder.php,
include/help/en/help_alert_recovery.php,
include/help/en/help_module_type.php,
include/help/en/help_planned_downtime.php,
include/help/en/help_serverlag.php, include/help/en/help_alerts.php,
include/help/en/help_snmpwalk.php,
include/help/en/help_module_definition.php,
include/help/en/help_plugin_definition.php,
include/help/en/help_wminamespace.php, include/help/en/help_snmpoid.php
include/help/en/help_manageconfig.php,
include/help/es/help_alert_validation.php,
include/help/es/help_plugin_parameters.php,
include/help/es/help_snmpcommunity.php, include/help/es/help_wmiquery.php,
include/help/es/help_map_builder.php, include/help/es/help_postprocess.php,
include/help/es/help_date_format.php,
include/help/es/help_alert_recovery.php,
include/help/es/help_prediction_source_module.php,
include/help/es/help_module_type.php,
include/help/es/help_planned_downtime.php,
include/help/es/help_alert-matches.php, include/help/es/help_recontask.php,
include/help/es/help_alerts.php, include/help/es/help_serverlag.php,
include/help/es/help_snmpwalk.php,
include/help/es/help_module_definition.php,
include/help/es/help_tcp_send.php, include/help/es/help_duplicateconfig.php,
include/help/es/help_wmifield.php, include/help/es/help_manage_alerts.php,
include/help/es/help_wmikey.php, include/help/es/help_plugin_definition.php,
include/help/es/help_alert_type.php, include/help/es/help_snmpoid.php,
include/help/es/help_wminamespace.php,
include/help/es/help_network_component.php,
include/help/es/help_time_stamp-comparation.php,
include/help/es/help_manageconfig.php, include/help/es/help_timesource.php,
include/config_process.php, include/functions_ui.php, include/htmlawed.php,
include/functions_custom_graphs.php, include/fgraph.php,
include/functions_incidents.php, include/functions.php,
include/functions_agents.php, include/functions_db.php,
include/functions_themes.php, include/streams.php,
include/functions_fsgraph.php, include/functions_alerts.php,
include/functions_reports.php, include/functions_extensions.php,
include/functions_ui_renders.php: change comments blocks for delete the
warnings to construct phpDoc Files, give a struct and order in the
phpDoc files.
2009-08-24 Sancho Lerena <slerena@artica.es>
* operation/agentes/alerts_status.php: Show description instead name,

View File

@ -1,13 +1,19 @@
<?php
/**
* @package Include/FusionCharts
*/
// Page: FusionCharts.php
// Author: InfoSoft Global (P) Ltd.
// This page contains functions that can be used to render FusionCharts.
// encodeDataURL function encodes the dataURL before it's served to FusionCharts.
// If you've parameters in your dataURL, you necessarily need to encode it.
// Param: $strDataURL - dataURL to be fed to chart
// Param: $addNoCacheStr - Whether to add aditional string to URL to disable caching of data
/**
* encodeDataURL function encodes the dataURL before it's served to FusionCharts.
*If you've parameters in your dataURL, you necessarily need to encode it.
* Param: $strDataURL - dataURL to be fed to chart
* Param: $addNoCacheStr - Whether to add aditional string to URL to disable caching of data
*/
function encodeDataURL($strDataURL, $addNoCacheStr=false) {
//Add the no-cache string if required
if ($addNoCacheStr==true) {

View File

@ -1,22 +1,26 @@
<?php
/*
FUSIONCHARTS FREE API PHP CLASS
Author : Infosoft Global Pvt. Ltd.
version : FREE
Company : Infosoft Global Pvt. Ltd.
/**
* @package Include/FusionCharts
*/
* Version: 1.0.1 (11 December 2008) [ Fix PHP Short Tag, Function addDatasetsFromDatabase
/**
* FUSIONCHARTS FREE API PHP CLASS
* @author Infosoft Global Pvt. Ltd.
* version : FREE
* Company : Infosoft Global Pvt. Ltd.
*
* @version 1.0.1 (11 December 2008) [ Fix PHP Short Tag, Function addDatasetsFromDatabase
* Modifiaction for Transposed ,
* Fix Transparent setting, FusionCharts.php insight Code
* setInitParam Function Add, addColors Function Add,
* encodeXMLChars Function Add ]
FusionCharts Class easily handles All FusionCharts XML Structures like
graph, categories, dataset, set, Trend Lines, [vline, styles (for Future)] etc.
Its easy to use, it binds data into FusionCharts XML Structures
*
* FusionCharts Class easily handles All FusionCharts XML Structures like
* graph, categories, dataset, set, Trend Lines, [vline, styles (for Future)] etc.
* Its easy to use, it binds data into FusionCharts XML Structures
*
* @package Include/FusionCharts
*/
class FusionCharts{
var $chartType; # Chart Friendly Name

View File

@ -1,17 +1,23 @@
<?php
/**
* @category Images
* @package Image_Graph
*/
// Pandora FMS - http://pandorafms.com
// ==================================================
// Copyright (c) 2005-2009 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
* ==================================================
* Copyright (c) 2005-2009 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.
*/
//INI Lines of code for direct url call script
if (isset($_GET['getFile'])) {

View File

@ -12,6 +12,10 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
/**
* @package Include/auth
*/
if (!isset ($config)) {
die ('You cannot access this file directly!');

View File

@ -14,6 +14,10 @@
// GNU General Public License for more details.
/**
* @package Include/auth
*/
if (!isset ($config)) {
die ('You cannot access this file directly!');
}

View File

@ -14,6 +14,10 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
/**
* @package Include/auth
*/
if (!isset ($config)) {
die ('You cannot access this file directly!');
}

View File

@ -2,16 +2,19 @@
// Pandora FMS - http://pandorafms.com
// ==================================================
// Copyright (c) 2005-2009 Artica Soluciones Tecnologicas
//
// 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
*/
// Default values
@ -95,7 +98,9 @@
//*/
///*************************** End LDAP Config *****************************/
// Do not display any ERROR
/**
* Do not display any ERROR
*/
error_reporting(E_ALL);

View File

@ -14,7 +14,13 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//Pandora Version
/**
* @package Include
*/
/**
* Pandora build version and version
*/
$build_version = 'PC090623';
$pandora_version = 'v3.0-dev';

View File

@ -13,17 +13,31 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
/**
* @package Include
*/
if (isset($config)) {
/**#@+
* If is set global var $config include this files
*/
require_once ($config['homedir'].'/include/config.php');
require_once ($config['homedir'].'/include/pandora_graph.php');
require_once ($config['homedir'].'/include/functions_fsgraph.php');
} else {
/**#@-*/
}
else {
/**#@+
* If is not set global var $config include this files
*/
require_once ('../include/config.php');
require_once ($config['homedir'].'/include/pandora_graph.php');
/**#@-*/
}
set_time_limit (0);
error_reporting (0);

View File

@ -17,11 +17,22 @@
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/**
* @package Include
*/
/**#@+
* Includes for access to DB
*/
require_once ('../include/config.php');
require_once ($config["homedir"].'/include/functions.php');
require_once ($config["homedir"].'/include/functions_db.php');
require 'ezc/Base/ezc_bootstrap.php';
/**#@-*/
/**
* @package Include
*/
class customPalette extends ezcGraphPalette
{
protected $dataSetColor = array(

View File

@ -15,7 +15,13 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
/**
* @package Include
*/
/**
* Include the html and ui functions.
*/
require_once ('functions_html.php');
require_once ('functions_ui.php');

View File

@ -14,6 +14,9 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
/**
* @package Include
*/
/**
* Creates an agent

View File

@ -14,6 +14,19 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
/**
* @package Include
*/
/**
* Insert in talert_commands a new command.
*
* @param string name command name to save in DB.
* @param string command String of command.
* @param mixed A single value or array of values to insert (can be a multiple amount of rows)
*
* @return mixed False in case of error or invalid values passed. Affected rows otherwise
*/
function create_alert_command ($name, $command, $values = false) {
if (empty ($name))
return false;

View File

@ -13,6 +13,10 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
/**
* @package Include
*/
/**
* Creates a single config value in the database.
*

View File

@ -14,6 +14,14 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
/**
* @package Include
*/
/**
* @global array Contents all var configs for the local instalation.
*/
global $config;
if ($config['flash_charts']) {
require_once ('include/fgraph.php');

View File

@ -14,6 +14,10 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
/**
* @package Include
*/
/**
* Check if login session variables are set.
*
@ -1705,15 +1709,15 @@ function get_db_all_rows_sql ($sql) {
* (keys would be the field name and value the expected value, and would be
* joined with an AND operator) or a string, including any SQL clause (without
* the WHERE keyword). Example:
<code>
Both are similars:
get_db_all_rows_filter ('table', array ('disabled', 0));
get_db_all_rows_filter ('table', 'disabled = 0');
Both are similars:
get_db_all_rows_filter ('table', array ('disabled' => 0, 'history_data' => 0), 'name', 'OR');
get_db_all_rows_filter ('table', 'disabled = 0 OR history_data = 0', 'name');
</code>
* <code>
* Both are similars:
* get_db_all_rows_filter ('table', array ('disabled', 0));
* get_db_all_rows_filter ('table', 'disabled = 0');
*
* Both are similars:
* get_db_all_rows_filter ('table', array ('disabled' => 0, 'history_data' => 0), 'name', 'OR');
* get_db_all_rows_filter ('table', 'disabled = 0 OR history_data = 0', 'name');
* </code>
* @param mixed Fields of the table to retrieve. Can be an array or a coma
* separated string. All fields are retrieved by default
* @param string Condition of the filter (AND, OR).
@ -1936,16 +1940,16 @@ function get_db_all_fields_in_table ($table, $field = '', $condition = '', $orde
* values. Example code:
*
* <code>
$values = array ();
$values['name'] = "Name";
$values['description'] = "Long description";
$sql = 'UPDATE table SET '.format_array_to_update_sql ($values).' WHERE id=1';
echo $sql;
</code>
* $values = array ();
* $values['name'] = "Name";
* $values['description'] = "Long description";
* $sql = 'UPDATE table SET '.format_array_to_update_sql ($values).' WHERE id=1';
* echo $sql;
* </code>
* Will return:
<code>
UPDATE table SET `name` = "Name", `description` = "Long description" WHERE id=1
</code>
* <code>
* UPDATE table SET `name` = "Name", `description` = "Long description" WHERE id=1
* </code>
*
* @param array Values to be formatted in an array indexed by the field name.
*
@ -3068,11 +3072,11 @@ function process_sql_insert ($table, $values) {
* Examples:
*
* <code>
process_sql_update ('table', array ('field' => 1), array ('id' => $id));
process_sql_update ('table', array ('field' => 1), array ('id' => $id, 'name' => $name));
process_sql_update ('table', array ('field' => 1), array ('id' => $id, 'name' => $name), 'OR');
process_sql_update ('table', array ('field' => 2), 'id in (1, 2, 3) OR id > 10');
* <code>
* process_sql_update ('table', array ('field' => 1), array ('id' => $id));
* process_sql_update ('table', array ('field' => 1), array ('id' => $id, 'name' => $name));
* process_sql_update ('table', array ('field' => 1), array ('id' => $id, 'name' => $name), 'OR');
* process_sql_update ('table', array ('field' => 2), 'id in (1, 2, 3) OR id > 10');
* </code>
*
* @param string Table to insert into
* @param array An associative array of values to update
@ -3109,15 +3113,15 @@ function process_sql_update ($table, $values, $where = false, $where_join = 'AND
* Examples:
*
* <code>
process_sql_delete ('table', array ('id' => 1));
// DELETE FROM table WHERE id = 1
process_sql_delete ('table', array ('id' => 1, 'name' => 'example'));
// DELETE FROM table WHERE id = 1 AND name = 'example'
process_sql_delete ('table', array ('id' => 1, 'name' => 'example'), 'OR');
// DELETE FROM table WHERE id = 1 OR name = 'example'
process_sql_delete ('table', 'id in (1, 2, 3) OR id > 10');
// DELETE FROM table WHERE id in (1, 2, 3) OR id > 10
* <code>
* process_sql_delete ('table', array ('id' => 1));
* // DELETE FROM table WHERE id = 1
* process_sql_delete ('table', array ('id' => 1, 'name' => 'example'));
* // DELETE FROM table WHERE id = 1 AND name = 'example'
* process_sql_delete ('table', array ('id' => 1, 'name' => 'example'), 'OR');
* // DELETE FROM table WHERE id = 1 OR name = 'example'
* process_sql_delete ('table', 'id in (1, 2, 3) OR id > 10');
* // DELETE FROM table WHERE id in (1, 2, 3) OR id > 10
* </code>
*
* @param string Table to insert into
* @param array An associative array of values to update

View File

@ -14,6 +14,33 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
/**
* @package Include
*/
/**
* Get all rows of events from the database, that
* pass the filter, and can get only some fields.
*
* @param mixed Filters elements. It can be an indexed array
* (keys would be the field name and value the expected value, and would be
* joined with an AND operator) or a string, including any SQL clause (without
* the WHERE keyword). Example:
* <code>
* Both are similars:
* get_db_all_rows_filter ('table', array ('disabled', 0));
* get_db_all_rows_filter ('table', 'disabled = 0');
*
* Both are similars:
* get_db_all_rows_filter ('table', array ('disabled' => 0, 'history_data' => 0), 'name', 'OR');
* get_db_all_rows_filter ('table', 'disabled = 0 OR history_data = 0', 'name');
* </code>
* @param mixed Fields of the table to retrieve. Can be an array or a coma
* separated string. All fields are retrieved by default
*
*
* @return mixed False in case of error or invalid values passed. Affected rows otherwise
*/
function get_events ($filter = false, $fields = false) {
return get_db_all_rows_filter ('tevento', $filter, $fields);
}

View File

@ -14,6 +14,10 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
/**
* @package Include
*/
/**
* Gets all export servers out of the database
*

View File

@ -14,6 +14,10 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
/**
* @package Include
*/
$extension_file = '';

View File

@ -14,10 +14,18 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
/**
* @package Include
*/
/**#@+
* Constants
*/
define ('MIME_UNKNOWN', 0);
define ('MIME_DIR', 1);
define ('MIME_IMAGE', 2);
define ('MIME_ZIP', 3);
/**#@-*/
if (!function_exists ('mime_content_type')) {
/**

View File

@ -14,6 +14,13 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
/**
* @package Include
*/
/**
* Include the FusionCharts class
*/
require_once ('FusionCharts/FusionCharts_Gen.php');
// Returns the code needed to display the chart

View File

@ -14,6 +14,10 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
/**
* @package Include
*/
/**
* Prints the print_r with < pre > tags
*/

View File

@ -14,6 +14,10 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
/**
* @package Include
*/
/**
* Gets all the possible priorities for incidents in an array
*

View File

@ -14,6 +14,10 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
/**
* @package Include
*/
/**
* Prints a complete menu structure.
*

View File

@ -14,6 +14,10 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
/**
* @package Include
*/
/**
* Creates a private message to be forwarded to other people
*

View File

@ -14,6 +14,10 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
/**
* @package Include
*/
/**
* Copy a module defined in an agent to other agent.
*

View File

@ -13,7 +13,13 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
/**
* @package Include
*/
/**
* Include modules functions
*/
require_once ('include/functions_modules.php');
/**

View File

@ -14,6 +14,9 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
/**
* @package Include
*/
/**
* Get a network profile.

View File

@ -14,6 +14,13 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
/**
* @package Include
*/
/**
* Include agents function
*/
require_once ('functions_agents.php');
require_css_file ('cluetip');
require_jquery_file ('cluetip');

View File

@ -14,6 +14,13 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
/**
* @package Include
*/
/**
* Include the usual functions
*/
require_once ($config["homedir"]."/include/functions.php");
require_once ($config["homedir"]."/include/functions_db.php");
require_once ($config["homedir"]."/include/functions_agents.php");

View File

@ -14,6 +14,10 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
/**
* @package Include
*/
/**
* Get a custom user report.
*

View File

@ -14,6 +14,10 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
/**
* @package Include
*/
/**
* Get a server.
*

View File

@ -14,6 +14,10 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
/**
* @package Include
*/
/**
* Get a list of CSS themes installed.
*

View File

@ -14,6 +14,10 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
/**
* @package Include
*/
/**
* Prints a generic message between tags.
*

View File

@ -14,6 +14,9 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
/**
* @package Include
*/
/**
*/

View File

@ -14,6 +14,9 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
/**
* @package Include
*/
/**
* Prints visual map

View File

@ -1,4 +1,8 @@
<?php
/**
* @package Include
*/
/*
Copyright (c) 2003 Danilo Segan <danilo@kvota.net>.
Copyright (c) 2005 Nico Kaiser <nico@siriux.net>
@ -32,6 +36,8 @@
* While the cache is enabled by default, it can be switched off with the
* second parameter in the constructor (e.g. whenusing very large MO files
* that you don't want to keep in memory)
*
* @package Include
*/
class gettext_reader {
//public:

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/en
*/
?>
<h1>Agent status view </h1>
Possible values of an agent status are:

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/en
*/
?>
<h1>Matches of the alert</h1>
<p>

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/en
*/
?>
<h1>Alert recovery</h1>
It defines whether Pandora FMS launches another alert when the alert condition is recovered. It has the same field1, but adds "[RECOVER]" to field2 and field3. It is disabled by default.

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/en
*/
?>
<h1>Alert type</h1>
There are some predefined alerts, in which is very likely you will have to adjust, in case your system does not provide the internal commands needed to execute those alerts. The development team has tested these alerts with Red Hat Enterprise Linux (RHEL), CentOS, Debian and Ubuntu Server.

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/en
*/
?>
<h1>Alert validation</h1>
<p>
ACK an alert only changes it's current bit and clear the "fired", so if alert fired again, the process continues. It's oriented to alerts with a long threshold, for example 1 day. If you get an alarm, and you review and fix it, you probably want to set to green status and don't wait 1 day to get green again.

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/en
*/
?>
<h1>Alerts</h1>
Assigning Alerts to modules

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/en
*/
?>
<p class="para">
The format of the outputted date string. See the formatting
options below.

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/en
*/
?>
<h1>Source agent</h1>
Only agents that have uploaded their configuration to the server will be shown.

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/en
*/
?>
<h1>Event viewer</h1>
<br><br>

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/en
*/
?>
<h1>Alerts</h1>
Alerts in Pandora FMS react to an "out of range" module value. The alert can consist of sending an e-mail or an SMS to the administrator, sending a SNMP trap, write the incident into the system log or into Pandora FMS log file, etc. Basically, an alert can be anything that can be triggered by a script configured in the Operating System where Pandora FMS Servers run.

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/en
*/
?>
<h1>Configuration management</h1>
This tool is used to several purposes:<br><br>

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/en
*/
?>
<h1>Map builder</h1>
To create a map, you must first fill the form providing:

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/en
*/
?>
<h1>Module definition</h1>
There are two modes for an agent:

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/en
*/
?>
<h1>Module type</h1>
The following list describes the module types:

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/en
*/
?>
<h1>Network Component</h1>
The Network Component combo box allows you to select a template from a list of more than a hundred and automatically fill some fields with the typical values.

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/en
*/
?>
<h1>Scheduled downtimes</h1>
<p>

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/en
*/
?>
<h1>Plugin registration</h1>
Pandora FMS Plugin registration tool is used to define what parameters Pandora FMS Plugin server needs to be used in each plugin, and what kind of data will pass after that parameter.

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/en
*/
?>
<h1>Plugin parameters</h1>
This field reffers to all parameters that can be passed to a plugin and are not defined in the form, unlike Port, Password, Max. timeout...

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/en
*/
?>
<h1>Post process</h1>
Post process is a numeric value used after get data to numerical post process in a multiplier operation. For example a data with a value of 1000 with a Post Process value of 1024 will result in a definitive data of 1024000 value. This is useful to normalize data, convert between units, etc. This also can be used to divide, using a multiplier below 1 value, like, for example, 0.001 that will divide current value by 1000.

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/en
*/
?>
<h1>Source type</h1>
<p>

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/en
*/
?>
<h1>Recon Task</h1>
<p>

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/en
*/
?>
<h1>Server Lag</h1>
<p>Server lag has 2 values. The first value (usually the larger one) shows how much seconds the modules are in the queue for that server, the second value show how many modules are in the queue.</p>

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/en
*/
?>
<h1>SNMP Community</h1>
Community needed to monitor a SNMP OID.

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/en
*/
?>
<h1>SNMP OID</h1>
Module's SNMP OID. If there is a MIB able to resolve the name in Pandora FMS Network Server, then you can use alphanumeric OIDs (i.e. SNMPv2-MIB::sysDescr.0). Numeric OID can always be used (i.e. 3.1.3.1.3.5.12.4.0.1), even if there is no specific MIB.

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/en
*/
?>
<h1>SNMP walk</h1>
Pandora FMS has also a simple SNMP browser that allows to walk the MIB of a remote device by a SNMP Walk.

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/en
*/
?>
<h1>TCP Check</h1>
<p>

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/en
*/
?>
<h1>Timestamp or time comparation</h1>
<p>

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/en
*/
?>
<h1>Origen de tiempo</h1>
<p>

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/en
*/
?>
<h1>Field number</h1>
Row number to retrieve from the WQL query result (starting from zero).

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/en
*/
?>
<h1>Key string</h1>
Optional. Substring to look for in the WQL query result. The module returns 1 if found, 0 if not.

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/en
*/
?>
<h1>Key string</h1>
Optional. WMI namespace. If unsure leave blank.

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/en
*/
?>
<h1>WMI Query</h1>
<p>

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/es
*/
?>
<h1>Coincidencias de la alerta</h1>
<p>

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/es
*/
?>
<h1>Recuperación de alerta</h1>
Define si Pandora FMS lanza otra alerta cuando la condición de la alerta se recupera. Tiene el mismo «campo1» pero añade «[RECOVER]]» al «campo2» y al «campo3». De forma predeterminada está desactivada.

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/es
*/
?>
<h1>Tipo de alerta</h1>
Existen algunas alertas predefinidas, las cuales es muy probable que tenga que configurar en caso de que su sistema no proporcione los comandos necesarios para ejecutarlas. El equipo de desarrollo ha probado estas alertas con Red Hat Enterprise Linux (RHEL), CentOS, Debian y Ubuntu Server.

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/es
*/
?>
<h1>Validación de alerta</h1>
<p>
Validar una alerta sólo cambia su bit de estado y limpia el estado &laquo;disparado&raquo;, de tal forma que si la alerta se dispara de nuevo el proceso continua. Está orientado a alertas con grandes umbrales, por ejemplo, 1 día. Si obtiene una alarma y la revisa y la marca como vista, probablemente quiera establecer su estado a verde y no quiere esperar 1 día a que se vuelva a poner verde.

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/es
*/
?>
<h1>Alertas</h1>
Asignar alertas a módulos

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/es
*/
?>
<p class="para">
El formato de la salida de la cadena de fecha. Consulte las opciones de formato debajo.
</p>

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/es
*/
?>
<h1>Agente origen</h1>
Sólo se mostrarán los agentes que han cargado su configuración en el servidor.

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/es
*/
?>
<h1>Alertas</h1>
Las alertas en Pandora FMS reaccionan ante un valor &laquo;fuera de rango&raquo;. La alerta puede consistir del envío de un correo-e o un SMS al administrador, enviar un trap SNMP, escribir un incidente en el fichero <i>log</i> del sistema o en el <i>log</i> de Pandora FMS, etc. Básicamente, una alerta puede ser cualquier cosa que se pueda dispoarar desde un <i>script</i> configurado en el Sistema Operativo donde Pandora FMS se ejecuta.

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/es
*/
?>
<h1>Gestión de la configuración</h1>
Ésta herramienta se usa para diversos propoósitos:<br><br>

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/es
*/
?>
<h1>Constructor de mapas</h1>
Para crear un mapa primero debe rellenar el formulario proporcionando:

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/es
*/
?>
<h1>Definición de módulo</h1>
<p>

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/es
*/
?>
<h1>Tipo de módulo</h1>
La siguiente lista describe los tipos de módulos:

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/es
*/
?>
<h1>Componente de red</h1>
<p>

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/es
*/
?>
<h1>Desconexiones programadas</h1>
<p>

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/es
*/
?>
<h1>Registro de complementos</h1>
La herramienta de registro de Pandora FMS se usa para definir los parámetros que el servidor de complementos de Pandora FMS necestia usar con cada complemento, y qué tipo de datos se le pasarán posteriormente después del parámetro.

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/es
*/
?>
<h1>Parámetros del complemento</h1>
Este campo hace referencia a todos los parámetros que se le pueden pasar al complemento y no están definidos en el formularo, a diferencia de «Puerto», «Contraseña», «Máx. tiempo de expiración», ...

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/es
*/
?>
<h1>Posprocesado</h1>
El posprocesado es un valor numérico usado después de obtener el dato para posprocesar dicho dato de forma numérica en una multiplicación. Por ejemplo, datos con un valor de 1000 con un valor de Posprocesado de 1024 darán como resultado un valor final de 1024000. Esto es útil para normalizar los datos, convertir entre unidades, etc. Esto también se puede usar para dividir, usando un valor de multiplicador inferior a 1, como, por ejemplo, 0.001 que dividirá el valor actual por 1000.

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/es
*/
?>
<h1>Módulo origen</h1>
<p>

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/es
*/
?>
<h1>Tarea de reconocimiento (<i>recon</i>)</h1>
<p>

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/es
*/
?>
<h1>Retardo del servidor</h1>
<p>El retardo del servidor tiene dos valores. El primer valor (generalmente el más largo) muestra los segundos que los módulos están en la cola para ese servidor, el segundo valor muestra el número de módulos en la cola.</p>

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/es
*/
?>
<h1>Comunidad SNMP</h1>
Comunidad necesaria parra monitorizar un OID SNMP.

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/es
*/
?>
<h1>OID SNMP</h1>
La OID SNMP del módulo. Si existe una MIB capaz de resolver el nombre en el servidor de red de Pandora FMS, entonces puede usar OID alfanumércias (ej. SNMPv2-MIB::sysDescr.0). Siempre se pueden usar OID numéricas (ej. 3.1.3.1.3.5.12.4.0.1), incluso si no hay una MIB específica.

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/es
*/
?>
<h1>SNMP walk</h1>
Pandora FMS también tiene un examinador SNMP simple que permite hacer un &laquo;walk&raquo; de un dispositivo remoto a través de un <i>SNMP walk</i>.

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/es
*/
?>
<h1>Comprobación TCP</h1>
<p>

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/es
*/
?>
<h1>Marca de tiempo o comparación de hora </h1>
<p>

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/es
*/
?>
<h1>Origen de tiempo</h1>
<p>

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/es
*/
?>
<h1>Campo número</h1>
Número de fila que obtener desde el resultado de la consulta WQL (empezando desde cero).

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/es
*/
?>
<h1>Texto clave</h1>
Opcional. Subcadena en la buscar el resultado de la consulta WQL. El módulo devuelve 1 si se encuentra, de lo contrario devuelve 0.

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/es
*/
?>
<h1>Texto clave</h1>
Opcional. Espacio de nombres (<i>namespace</i>) WMI. Si no está seguro, déjelo en blanco.

View File

@ -1,3 +1,8 @@
<?php
/**
* @package Include/help/es
*/
?>
<h1>Consulta WMI</h1>
Cualquier consulta WQL válida. Según Microsot, el lenguaje de consultas WMI (WQL) es un subconjunto del estándar ANSI SQL (American National Standards Institute Structured Query Language), con mínimos cambios semánticos para soportar WMI.

Some files were not shown because too many files have changed in this diff Show More