* godmode/gis_maps/index.php: Fixed regresion, standarized using map_id
as parameter.
* pandoradb.sql, extras/pandoradb_migrate_v3.0_to_v3.1.sql: Added column
default_map to table tgis_map to mark the default map
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2340 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql: Changes in several tables and new tgroup_stat table.
Added several index and dropped some fields in tagente_datos and
tagente_datos_string tagent_access.
* godmode/setup/setup.php,
* include/functions_config.php: Management of new timezone settings and
realtime stats parameters.
* include/config_process.php: New timezone management. Updated build.
* pandoradb_data.sql: Build update. Added new tokens realtimestats and
stats_interval.
* install.php: Several changes: Now display GPL licence, better SQL error
management, and steps are shown now as text instead a progress bar. Also
show version and build of the installer.
* extensions/dbmanager.php: Removed some warnings
* extras/pandoradb_migrate_v3.0_to_v3.1.sql: Updated with latest changs.
* godmode/agentes/module_manager_editor_network.php
godmode/agentes/configurar_agente.php
godmode/agentes/module_manager_editor.php: Implemented partial support for
SNMP v3. Miguel will finish the work :-)
* index.php: Session close function deprecated, replaced by a more standard
method with unset.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2338 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* extras/pandoradb_migrate_v3.0_to_v3.1.sql: Added group column to control
ACLs as it was done in pandoradb.sql.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2304 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql, extras/pandoradb_migrate_v3.0_to_v3.1.sql,
pandoradb_data.sql: Modified the GIS related tables, to make a better
GIS Data model, also included the activate_gis config parameter on tconfig.
Added column timezone_offset to table tserver_export so the export server
can send timezone information
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2298 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql, extras/pandoradb_migrate_v3.0_to_v3.1.sql: Added column
number_of_packages to tgis_data to track the number of data packages
received while the agent is in the same position.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2275 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql, extras/pandoradb_migrate_v3.0_to_v3.1.sql: Modified DB
schema to give a default value to start_timestamp on tgis_data, without
it as is a timestamp MySQL sets the default value as CURRENT_TIMESTAMP
and also sets the CURRENT_TIMESTAMP ON UPDATE, setting the DEFAULT
CURRENT_TIMESTAMP prevents MySQL to set the ON UPDATE CURRENT_TIMESTAMP.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2273 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql, extras/pandoradb_migrate_v3.0_to_v3.1.sql: Modified DB
schema to add, group_id and zoom_level to the table tgis_map and set the
primary keys of the new tables as autoincremet.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2271 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql, extras/pandoradb_migrate_v3.0_to_v3.1.sql: Modified DB
schema to store more efficiently the GIS information,and added some
comments to explain the use of the new columns. Also added the last
change on the graph weights to the migrate script.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2267 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql: upps, too small, in huge systems could give a
problem in the autoinsert ID.
* extras/pandoradb_migrate_v2.x_to_v3.0.sql: Fixed a broken line
that make problems in our upgrade script. Added upgrade for
update manager from 2.x to 3.0 version URL.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2259 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql, extras/pandoradb_migrate_v2.x_to_v3.0.sql: change the field
"name" in the table "tagente" to binary varchar.
* include/functions_events.php, operation/events/events.php: add new
columns, the severity colummn and the validate colummn.
* images/tag_red.png, images/tick.png,
images/status_sets/default/severity_informational.png,
images/status_sets/default/severity_maintenance.png,
images/status_sets/default/severity_critical.png,
images/status_sets/default/severity_warning.png,
images/status_sets/default/severity_normal.png: add the new files to use in
the events list new colummns.
* include/help/en/help_eventview.php: change the content in this help for
show help info of new colummns.
Comments: I hate the massive and mixed commits...but I have not choice, and
in this commit there are two parts, the changes in the sql table and the
changes in the event list colummn.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2011 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql: Added id_group to talert_action, talert_templates and
tplanned_downtime to be able to segregate all pandora functions for
different groups/users. Need to implement in interface code.
* extras/pandoradb_migrate_v2.x_to_v3.0.sql: Updated migration script
for latest SQL changes.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1985 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql: more changes to schema :(. Added id_group to custom graph
* pandoradb_data.sql: Updated build number of DB schema,
* extras/pandoradb_migrate_v2.x_to_v3.0.sql: Added new field for upgrade
script.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1958 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb_data.sql: Updated version, added two new module groups and
some cleanup.
* pandoradb.sql: Added cascade_protection field in tagente and removed
old server information from 2.x scheme.
* extras/pandoradb_migrate_v2.x_to_v3.0.sql: Added new fields (trecon_task
and tagente) and drop old server information from tagente table.
* configurar_agente.php, agent_manager.php: Added cascade protection
GUI checkbox and logic.
* images/help: Added graph directory for help.
* help/en/cascade_protection.php: Added help topic.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1898 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
* extras/pandoradb_migrate_v2.x_to_v3.0.sql,
pandoradb.sql: Added id_plugin. Database breakage requested and
approved.
* godmode/modules/manage_network_components_form_common.php,
godmode/modules/manage_network_components_form_plugin.php: Added
to repository. New editor for network components.
* godmode/modules/manage_network_components_form_network.php,
godmode/modules/manage_network_components_form_wmi.php,
godmode/modules/manage_network_components.php: Adapted to changes
in component editors and missing fields. Added option to create
plugin components.
* godmode/modules/manage_network_components_form.php: Make the
different network component editors to reutilize the code and
have a common UI.
* godmode/agentes/module_manager_editor.php: Style correction.
* include/styles/pandora.css: Style for network component editor.
* include/functions_ui.php: Security fix in get_url_refresh() to
avoid showing login info.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1702 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/agent_manager.php: Fixed an error when an agent was
created without name. Added support for new server assignment via server
name instead of lot of comboboxes. Added os preview.
* godmode/agentes/configurar_agente.php: Added support for new server
assignment via server name. Do not show tabs on creation mode. Some
translatable strings replaced with common ones.
* godmode/agentes/modificar_agente.php: Use Pandora agents.
* godmode/modules/manage_nc_groups.php,
godmode/setup/news.php,
godmode/modules/manage_network_components.php,
godmode/reporting/map_builder.php,
godmode/agentes/planned_downtime.php: Some translatable strings replaced
with common ones.
* godmode/servers/modificar_server.php: Updated to changes in tserver. Use
get_server_info() for that.
* include/functions_db.php: Updated to changes in tserver about
server_type field on get_server_info(). Style correction.
* include/functions_servers.php: Added to repository. Servers API.
* operation/servers/view_server.php: Style correction.
* extras/pandoradb_migrate_v2.x_to_v3.0.sql, pandoradb.sql: Less space on
server_name field on tagente.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1615 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql: Final DB changes proposed for closing this month the DB
scheme. tagente-> new server_name field to assign server (old fields will
be removed). talert_templates has two new types (warning, critical).
tevento has "user_comment" new field. Tserver has three new fields,
server_type (so some old fields will be deleted), threads and queued_modules
this last two are for statistical options. Tusuario add language type to
override global language.
* update_manager/main.php: Minor changes for correct ACL usage. Non PM
users could see in what revision it the system, but only that.
* pandoradb_migrate_v2.x_to_v3.0.sql: Updated script for new DB changes.
* general/noaccess.php: Added footer and ending div. Page was very ugly
when showing noaccess errors, nobody see it ???.
* godmode/menu.php: A LOT of ACL fixes on several options.
* godmode/agentes/agent_manager.php: Fixed a crazy floating icon.
* godmode/agentes/manage_config_remote.php: A LOT of changes, rewriting
stuff, because was not working. This also adds a lot of ACL checks.
* godmode/agentes/massive_config.php, massive*: ACL changes.
* godmode/agentes/modificar_agente.php: Fixed ACL problems.
* godmode/agentes/module_manager_editor.php: Fixed bad module categories for
some types (data, plugin and prediction).
* godmode/alerts/alert_list.php: Fixed ACL problem.
* godmode/reporting/graph_builder.php: Added ACl restriction for
non-viewable agents for current user. Seems to be a problem with data
with more than 2 sources.
* godmode/reporting/map_builder.php: ACL checks improved.
* godmode/reporting/reporting_builder.php: ACL checks added (was missing),
some code ported from 2.1, other is new. New fields shown in list.
* include/functions.php: Fixed the annoying bug of "bad counters" in
function human_time_description_raw(). Function used,format_numeric() should
not be used never to calculate nothing, only to print formatted strings.
* include/functions_db.php: Added function user_access_to_agent() to know
if a given user has access to a given agent.
* include/functioins_report.php: get_report() should let admin to watch any
report. Fixed.
* agentes/alerts_status.php: Fixed ACL problem for view alert.
* operation/incidents/incident.php: Bad call for pagination() was giving
problems to pagination call. Somebody changes pagination() interface and
make this broken. Please if you change any interface, be sure that is compatible
with old code or make a post in the list about this !
* godmode/users/user_edit.php: Additional ACL check to do not let anybody
to watch non accesible users. Even for see the username or description.
* reporting/pchart_graph.php:Progress bar shown text in white when > 60%.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1594 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* extras/pandoradb_migrate_v2.x_to_v3.0.sql: Removed id on tconfig
inserts.
* godmode/agentes/configurar_agente.php: Min and max module values
were not being updated.
* godmode/alerts/configure_alert_template.php: Removed duplicated
example. Added support for next warning and critical template types.
* include/functions_ui.php, include/functions_alerts.php: Added new
alert template types.
* include/functions_db.php: temp_sql_delete() moved out of
delete_agent() because there were errors if it was calling more than
once.
* include/functions_reports.php: Fixed doc for get_reports().
* include/config_process.php: Updated build number.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1589 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql, extras/pandoradb_migrate_v2.x_to_v3.0.sql: Added
priority field to talert_templates and removed from
talert_template_module.
* godmode/alerts/alert_list.php: Fixed SQL notice when fetching
groups.
* godmode/alerts/alert_templates.php: Added priority to the template
tooltip.
* godmode/alerts/configure_alert_template.php: Added priority field to
alert templates.
* include/functions_db.php: Style correction.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1585 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql, extras/pandoradb_migrate_v2.x_to_v3.0.sql: Fixed
constraint restrictions on alert actions.
* godmode/users/configure_user.php: Many bugfixes when creating and
editing.
* include/auth/mysql.php: Fixed return value on create_user() because
it does not return an insert id.
* include/functions_db.php: Call debug() on SQL errors to get a
backtrace.
* include/functions_ui.php: Added a return value to debug().
* operation/users/user_edit.php: Renamed user_update().
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1574 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql: SLA parameters now accept float values.
* extras/pandoradb_migrate_v2.x_to_v3.0.sql: SLA parameters now accept
float values after a table update.
* godmode/setup/filemgr.php: New feature: a file manager, accesible only by
pandora Administrators. Have some security checks but is not intended to be
used by anyone not admin.
* godmode/menu.php: Added filemanager and fixed minor problem under SNMP
Godmode (fake submenu).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1572 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* extras/pandoradb_migrate_v2.x_to_v3.0.sql: Added field missing in
ttrap (This gives the problems with SNMP Alerts in trunk version (Manu!)).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1563 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/alerts/configure_alert_compound.php: Fixed clean up div for
variable width styles. Min and max fire values commented because it's
not implemented yet.
* include/config_process.php: Keep database connection resource in
config.
* include/functions.php: Use mysql_real_escape_string(), replacing
deprecated function.
* include/functions_alerts.php: Updated to use process_sql_*
functions. Many fixes done such as updating a template name or
escaping the value when duplicating a template.
* include/functions_ui.php: Fixed an error on refresh header when
using other web servers like Cherokee.
* operation/agentes/estado_agente.php: Style corrections.
* reporting/fgraph.php: Fixed a typo on grafico_db_agentes_paquetes().
* pandora_db.sql, extras/pandoradb_migrate_v2.x_to_v3.0.sql: Added
foreign key on treport_content and id field on
talert_compound_actions.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1555 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* extras/: New directory with extra contents (scripts, tools, samples)
* index.php: Add new permission check for /attachment directory. Probably
could be extended and wrapped into a function. This should be only called
once, this is the reason why is placed here and not in config_process.
* pandora_console_upgrade: Force MYSQL run, even if SQL return error (useful
for applying over a older 3.0 version for example).
* pandoradb_data.sql: Was missing some tconfig variables.
* extras/*.sql: Missing somre tconfig variables and other minor issues fixed
* extensions/update_manager/main.php: Description of update manager patch
wider. Probably needs more formatting in the future.
* extras/sample_login.php: Sample on how to implement autologin feature.
* footer.php: I hope solve the frakkin image problem.
* godmode/agents/agent_manager.php: proper ACL check notice.
* godmode/alerts/alert_list.php: Fixed notice.
* godmode/reporting/map_builder.php: Added link to wizard and item count.
* godmode/reporting/map_builder_wizard.php: Added new feature, a wizard
to populate the visual map, using agents from a combo, depending on the
map selected. Could have a lot of improvements, it's a basic start. Allow
to choose agents and image maps and space between images. Puts in a reticle
automatically adjusting at 600px width.
* godmode/setup.php: Checkbox for trap_forward was bad, fixed.
* config_process.php: Fixed version to 3.0-dev
* functions_html.php: Default of 0 in text boxes makes them unusable on
default values, funny :-)
* include/functions_reporting.php: Fixed a notice on unknown variable
on function get_group_stat().
* operation/agentes/alerts_status.php: Filter on module status is made now
with combos, like the rest of the filters in the GUI.
* operation/events/events.php: a missing div makes graph float outside the
filter box. TODO: Hidder filter makes free-width style buggy here.
* operation/reporting/reporting_viewer.php: Fixed layout issue.
* operation/visual_console/render_view.php: Added ACL check.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1510 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f