* operation/agentes/estado_generalagente.php,
godmode/setup/setup.php: Added support for new option for have enabled or
disabled the agent access data/graphs.
* include/functions_db.php: Modified the agent_delete function to don't delete
all data, just delete agent and mark modules for deletion. This increase a lot
the massive agent deletion. This fixes bug #2809015.
* include/config_process.php: Updated version/build.
* include/functions_config.php: Added autoupdate to config check for
non-existant values. Added new agentaccess config token.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1767 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/agentes/estado_monitores.php: add organization list of monitors, add
row in table with title the monitor group.
* include/styles/pandora.css: add new class for cell used monitor group title
in the list of monitors in estado_monitores.php
Fixes: #2805001
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1764 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/modificar_agente.php: add another "create agent" before
the list for more usability
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1758 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* Fix the error introduced by Miguel de Dios in 2009-06-18, The error
was add repeated rows with language_code in DB.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1754 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: Return false if no data were found
on get_agentmodule_sla(). Fixes#2777541
* operation/reporting/reporting_viewer.php: Style correction.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1748 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/agentes/networkmap.php: Avoids a warning when no nodes
were found on generate_dot(). Shows a message when no nodes were
found. Fixes#2786516.
* operation/menu.php: Changed label of network maps.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1746 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/agent_manager.php: Fixed string filter when
searching agents. Avoids a PHP notice when none found
* godmode/agentes/configurar_agente.php: Solved a mess with variable
names.
* godmode/agentes/module_manager_editor_prediction.php: Improved
the prediction module selection, adding a filter for agents and
module. Fixes#2707907
* include/javascript/jquery.pandora.controls.js: Returns
whenever callbackBefore returns false.
* include/javascript/pandora_modules.js: Check for module selection
when creating a prediction one.
* include/styles/pandora.css: Added style to prediction module
selection.
* godmode/alerts/alert_list.php: callbackBefore on pandora.controls
elements must return true now.
* godmode/agentes/module_manager_editor_common.php: Added moduletype
hidden input to be used in javascript.
* godmode/agentes/module_manager_editor.php: Use pandora.controls and
added a string for javascript.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1744 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/reporting/reporting_builder.php: Fixed a couple of typo
errors when adding a SLA report.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1743 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/agent_manager.php: Added autocomplete support
to parent selection, which is no a dropdown anymore. Partial fix for
#2707924.
* godmode/agentes/configurar_agente.php: Parent data is now the
agent name, not the agent id.
* include/javascript/jquery.ajaxqueue.js,
include/javascript/jquery.autocomplete.js,
include/javascript/jquery.bgiframe.js: Added to repository.
Autocompleter jQuery plugin.
* include/styles/pandora.css: Added autocomplete styles.
* include/functions_db.php: Added more support for search
parameter to get_group_agents() so you can pass a filter array now.
* operation/agentes/estado_agente.php: Style correction.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1741 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/styles/help.css, include/styles/pandora_minimal.css,
include/styles/ie.css, include/styles/menu.css,
include/styles/install.css, include/styles/pandora_red.css,
include/styles/pandora_black.css, include/styles/pandora_width.css:
Removed an extra close comment character that causes broken CSS.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1740 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/reporting/reporting_builder.php: Replaced SQL with pandora
database functions. Do not order period values. Some style to delete
icons.
* include/functions_reports.php: Tiny fix on update_report() when
checking if report exists. Fixes#2791058.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1730 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/setup/file_manager.php: Many fixes to the interface. Removed
the dropdown menu when uploading a file, it now uploads it to the
current dir, which is more natural. Do not show "No files found"
anymore, because user may want to create subdirs. Fixes image for
previous dir and show it again.
* include/javascript/jquery.ui.datepicker.js: Changed default date
format.
* include/functions_filemanager.php: Changed
get_file_manager_available_directories() to add subdirs too.
Changed is_file_manager_writable_dir() to check if parent dir is
writable.
* operation/agentes/estado_agente.php: Use array filters instead
of SQL code chunks.
* operation/reporting/reporting_viewer.php: Fixed link to timeentry
jQuery file.
* images/status_sets/color_text/*, images/status_sets/default/*,
images/pixel_yellow.png, images/pixel_gray.png,
images/pixel_fucsia.png, images/pixel_red.png,
images/pixel_black.png: Use Tango palette. Softer and cleaners
colors.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1729 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* extras/pandora_diag.php: Diagnostic tool. This reports some
details of database usage, configuration and version who can
Pandora FMS dev. team some hints about possible problems.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1726 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/massive_edit_modules.php: Renamed ff_event field
to min_ff_event to match tagente_modulo field name. Better code for
process_manage_edit(). Fixes#2785011.
* include/functions_modules.php: Fixed an error on
update_agente_module() when no name was given, also added extra
check for empty values.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1724 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_menu.php: Added menu_icon class.
* include/styles/menu.css: Split background style for menu icons.
Recovered menu colors.
* include/styles/pandora.css: Added body.pure element.
* include/styles/pandora_blackmetal.css,
include/styles/pandora_black.css: Improve to reuse pandora.css
* include/functions_ui.php: Use pure class on body element
on process_page_body(). Better comment when creating the css array on
process_page_head().
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1723 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: Return -1 on get_agent_status() on case
the agent last contact has exceed the agent interval.
* include/functions_visual_map.php: Call get_agent_status() when
an element is to monitor a whole agent. Fixes#2761712
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1720 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* install.php: Use server address if the db host is not localhost.
Fixes#2796790.
* include/functions_agents.php: Fixed an array cast on
get_agent_alerts_compound().
* include/functions_events.php: Critical and warning colors where
swapped on print_events_table().
* include/functions_reporting.php: Fixed alerts count on
get_group_stats() and count combined alerts too. Fixes#2791577
* operation/agentes/tactical.php: Style corrections.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1719 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/configurar_agente.php: Should fix bug #2785154. Wasn't
clear on how to duplicate but from what I understand this should fix it.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1714 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/configurar_agente.php: Style correction.
* operation/snmpconsole/snmp_view.php: Fixed creation link when
the agent is not found by address. Fixes#2777409
* godmode/agentes/agent_manager.php: Use address as name on creation
when it's given.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1713 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/configurar_agente.php: Use pandora functions to
create and update modules. Some fixes when these operations could
not be done so the editor appears again. Fixes#2762316
* godmode/agentes/module_manager_editor.php: Some patches to work
better with configurar_agente.php
* include/functions_modules.php: Avoid setting an empty name on
update_agent_module()
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1711 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* reporting/fgraph.php: Do not short agent name on
graphic_combined_module(). It was causing collisions. Fixes#2785193.
* reporting/pchart_graph.php: Use AddSerie on combined_graph().
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1710 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: return_status_agent() renamed to
get_agent_status(). Improved get_agentmodule_status() documentation
and code.
* include/functions_visual_map.php: Styles correction. Use a switch
instead of many ifs. Fixed get_layout_status() so the bad values have
preference. Fixes#2787197.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1708 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/modules/manage_network_components.php: Fixed a typo on
onsubmit paramter that was avoiding asking for confirmation.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1706 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f