* lib/PandoraFMS/Core.pm
util/pandora_manage.pl: Moved and renamed the module
creation from hash function from CLI to Core
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3420 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql: Alter some trecon_task info to avoid problems on new
custom script items (due the referencial integrity).
* pandoradb_data.sql: Octopods instead octopus.
* godmode/menu.php,
* godmode/servers/recon_script.php: Added new option to manage recon scripts
* godmode/servers/manage_recontask.php,
godmode/servers/manage_recontask_form.php: Changes to manage the new recon
tasks using custom-defined scripts to detect and monitor things (neeed some
Javascript improvements).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3418 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* extensions/insert_data.php: added first version of extension to added
data in any module in any agent, by form or csv.
Pending tasks: #3063417
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3416 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* DEBIAN/control: Removed apache and apache php mod from deps, giving
user chance to use another HTTP server.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3414 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb_migrate_v3.1_to_v3.2.sql: Variable for SQL custom reports has
more size now (custom SQL reports could be huge SQL sentences).
* godmode/reporting/reporting_builder.php,
godmode/reporting/reporting_builder.item_editor.php: Added suppor for the
new SQL graph reports (vbar, hbar and pie).
* include/fgraph.php: Support for new SQL graphs, with new function
graph_custom_sql_graph().
* include/functions_reporting.php: Support for new SQL graphs.
* operation/reporting/reporting_xml.php: Fixed some problems and added
support for graphs using session_id.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3413 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/alerts/alert_list.list.php
godmode/alerts/alert_list.builder.php: Fixed the ugly layout of
the alert views
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3409 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/module_manager_editor_network.php: added lines to unblock
SNMP community when the module is adopt.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3407 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/agentes/ver_agente.php: Safe output the list of
modules from an agent in the ajax control
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3405 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_modules.php
godmode/agentes/module_manager.php
godmode/agentes/configurar_agente.php: Added clone module
into an agent to the manage modules view
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3404 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql, extras/pandoradb_migrate_v3.1_to_v3.2.sql: added in the
table "tagente_modulo" the field "policy_adopted" for to set a module
pre exist in policy as adopted.
*operation/agentes/status_monitor.php,
operation/agentes/estado_ultimopaquete.php,
operation/agentes/estado_monitores.php,
godmode/agentes/module_manager_editor_common.php,
godmode/agentes/module_manager.php: show the icon of "adopted" or "adopted
but unlinked" in the list of modules.
Pending tasks: #3083123
* include/functions_modules.php: cleaned source code style in function
"update_agent_module".
* godmode/agentes/module_manager_editor_network.php: fixed warning messages
when use this file in policies.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3402 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_html.php
include/functions_io.php
include/functions_ui.php
godmode/agentes/module_manager.php: Created a new safe input
function more soft than safe_input() for html code. Applied this
function (safe_input_html()) in few functions like print_image
or print_page_header.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3399 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* PandoraFMS/Core.pm: Fixed bug #3085249 about empty
extra_macros hash.
* util/pandora_backup.sh: Fixed bug #3080826 about backup of
links, now are using -h parameter on tar to get the real file instead the
link.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3398 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* extensions/system_info.php: add TODO.
* godmode/agentes/module_manager_editor.php: fixed the ajax with the new
safe_ouput function.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3395 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_standby_alerts.php: Fixed alert listing is not
affected by group selection.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3394 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* Core.pm: Force XML::Simple to use XML::Parser instead SAX to manage XML
due a bug processing some XML with blank spaces.
* DataServer.pm: Checking for BADXML is 2 times with 2 secs of delay now.
Aditional check before deleting / procesing XML.
* pandora_server: Added handle of BadXML error to avoid see "unhandled"
errors on log, and set to verbose level 2.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3388 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* extensions/system_info.php: finally I finished (I hope) the extension of
get system info, now the console part run.
Pending task: #3065357
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3386 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: cleaned source code style.
* extensions/system_info.php: first version of extension for extract system
info of Pandora System, at the moment run as PHP script shell, the source
code for console is commented because I will change for new source code.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3385 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/config_process.php: fixed the execution in as script.
* include/fgraph.php: fixed in the "graphic_combined_module" when is empty.
And cleaned source code style.
* include/functions_extensions.php: cleaned source code style.
* extensions/pandora_logs.php: cleaned source code style. And set to
translation a string.
* extras/pandora_diag.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3382 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: Fixed problem with SQL custom reports
because the SQL html encoding. Added a SQL check for secure user-input
SQL code.
* include/functions.php: Added check_sql() function to do a basic
safety check on SQL code.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3381 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_io.php: Added \s character to list of HTML decoded/encoded
items to be converted from user entries (Safety for XSS and SQL Injection).
* pandoradb_data.sql: Added more default templates, actions and commands.
This is for remote agent management (refresh).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3376 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_io.php: Added functions ascii_to_html and html_to_ascii.
Also use this functions to convert no printing chars in function safe_input
and to revert the conversion in function safe_output.
* include/functions_db.php: Added function escape_string_sql, is a
wrapper db indepenten function to do the same that function mysql_real_escape_string
* index.php: Use function escape_string_sql with login parameters.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3372 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/pandora.js
include/functions_agents.php
operation/agentes/ver_agente.php
godmode/massive/massive_add_alerts.php
godmode/massive/massive_delete_alerts.php: Improved the
addition/deletion of alerts in massive operations to
select not only the agents (the modules too) for pending
task 3082862
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3371 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* unix/pandora_agent_daemon: Kill with -9 to be sure is killed,
because UDP server mode "captures" the INT signal to restart
the agent when receibe REFRESH AGENT on UDP client.
* unix/Linux/pandora_agent.conf: New config tokens to support
UDP server options.
* unix/pandora_agent: UDP Server mode implemented in the
Unix/Perl agent, only for REFRESH AGENT option, no remote commands
possible.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3370 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: Fixed the function get_agentmodule_id
to avoid the pending_delete modules
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3369 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/module_manager_editor_common.php
godmode/agentes/module_manager_editor.php: Fixed SQL
error when try to create a module called 0
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3368 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/alerts/alert_list.list.php: Another ugly warning fixed due
an undefined array. PLEASE dont use foreach on arrays non-checked !
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3366 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf: Removed multicast options
* Makefile.PL: Removed need for dependencies on Mail::Sendmail
and Traceroute::PurePerl, now are included in the Pandora FMS
distribution.
* lib/PandoraFMS/Config.pm: Removed options for multicast
* lib/PandoraFMS/Traceroute.pm,
lib/PandoraFMS/Sendmail.pm,
lib/PandoraFMS/Traceroute/PurePerl.pm: Now included on Pandora FMS
distribution, this will help to do easier installs of Pandora, because
that packages was difficult to build/install in different distros.
* lib/PandoraFMS/Core.pm: Removed the old multicast-on change enterprise
feature, not used/supported anymore.
* lib/PandoraFMS/ReconServer.pm: Now uses the internal Traceroute Pureperl
implementation.
* lib/PandoraFMS/Tools.pm: Now uses the internal Mail::Sendmail copy.
* bin/pandora_server: Removed the multicast option from main loop.
* FreeBSD/pandora_server.conf: Removed multicast from options.
* util/mcast_client.pl: Deleted sample client for multicast.
* util/pandora_logrotate: Updated the rotate options for SNMP logfile.
* util/compaq_chassis_trap_manager2.pl: Added sample of SNMP Trap
postprocessor.
* pandora_server.redhat.spec,
pandora_server.spec,
DEBIAN/control: Updated packages deps and other minor changes (xprobe2 is not
mandatory now).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3365 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/configurar_agente.php: Added custom fields to the global
edit/insert code. Not really used here, but for the future.
* godmode/modules/module_list.php: Show ID of modules, useful information.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3364 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f