* include/javascript/pandora_alerts.js: Added to repository.
Javascript functions for alerts.
* pandoradb_data.sql: Added missing field in a talert_commands row.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1333 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_alerts.php: Removed debug output. Show no SQL
error on delete_alert_* functions.
* index.php: Added missing jQuery script.
* godmode/alerts/alert_templates.php: Added a missing br. Show "empty"
string if no value was set.
* godmode/alerts/alert_commands.php: Added a check to avoid internal
commands removal.
* pandoradb.sql: Removed talerta table.
* pandoradb_data.sql: Data from talerta moved to talert_commands.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1332 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/alert_manager.php: Complete rewritten of the alert
system when assigned alerts to an agent.
* pandoradb.sql: New tables for alert system. These are:
talert_commands, talert_actions, talert_templates,
talert_template_modules, talert_template_module_actions. No migration
tool is available yet.
* godmode/alerts/configure_alert_template.php,
godmode/alerts/configure_alert_action.php,
godmode/alerts/alert_templates.php,
godmode/alerts/configure_alert_command.php,
godmode/alerts/alert_actions.php: Added to repository. Administration
interface to new alert system.
* godmode/alerts/modify_alert.php: Deleted from repository.
* godmode/setup/setup.php: Added an example of the date format. Main
table has now percentage width.
* godmode/menu.php, operation/menu.php: Added new alert options.
Removed refr value when it's not neccesary.
* include/styles/pandora.css: Added width to textarea elements. Style
correction and cleanup. Tables doesn't have a odd-even pattern, but
the hovered row now changes its colour. New styles for alert pages.
* include/functions_custom_graphs.php: Added to repository. custom
graphs functions moved here.
* include/functions_incidents.php, include/functions_events.php: Moved
to LGPL. Style comment corrections.
* include/functions_html.php: Documentation style correction. Added
print_input_file() and print_label().
* include/functions_ui.php: Doc style correction.
* operation/reporting/graph_viewer.php: Include new function file with
custom graphs. Use generic functions.
* index.php: Unset pass from POST and REQUEST arrays.
* include/functions_db.php: Some documentation updated to new format.
Added format_array_to_update_sql() to generate SQL sentences for
updates. Style correction.
* godmode/agentes/configurar_agente.php: Variables renamed to have a
meaning.
* extensions/update_manager/main.php: Mark an string translatable.
* extensions/update_manager/lib/libupdate_manager_client.php,
godmode/alerts/configure_alert.php, include/functions.php,
godmode/agentes/module_manager.php, operation/agentes/networkmap.php,
operation/reporting/reporting_viewer.php,
godmode/agentes/manage_config.php: Style correction.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1331 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql: Removed fields "timestamp" and "id_agente" (and altered
some indexes) on tagente_datos, tagente_datos_string and
tagente_datos_inc.
tagente_estado table: removed cambio, added status_changes, last_status.
tagente_modulo: added five new fields (warning,critical mgmt., flipflop
detection, history module and delete_pending bit.
* agent_manager.php: Group ALL not shown anymore.
* configurar_agente.php: Support for new options. Delete a module now
mark for deletion the module, not delete data (It's VERY slow!).
* modificar_agente.php: Delete agent now uses the global function,
minor fixes.
* module_manager_editor.php: New fields initializacion.
* module_manager_editor_network.php: At this time, the first module
editor who implements the new fields and improve old ones (tcp data).
* setup.php: Added support for new token: event_view_hr (Filter of max
old (in hr) for the event viewer. Removed old tokens show_unknown and
show_lastalert.
* functions.php: format_for_graph() has an important BUG that makes
all units rendered without the "K" !!!!. Fixed.
* delete_agent.php: Delete remote config (if present). Also mark
for deletion modules instead delete them (and let the data without
being deleted, because it's a HUGE consuming time, and it's left
for the daily db maintance process).
* estado_agente.php: Updated code for view new status.
* estado_generalagente.php: Total packets are removed from this view,
this was a huge time consuming SQL operation that don't give important
infomation. Groupname is now visualized.
* estado_ultimopaquete.php,
* estado_monitores.php,
* estado_grupo.php: Rewritten much code to view new status and other
minor changes.
* ver_agente.php: Data view now works under the tabs and other minor
changes.
* events.php: Support for the new events and status. Added filter for
username and for a max. hours old events. Some boxes are now hidden
by default.
* fgraph.php: Some graphs are now fixed and uses tagente_datos and
tagent_access with utimestamp and without id_agent index. Works faster
* images/*: Updated icons (module types) and two new bulb colors.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1326 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* general/footer.php, operation/agentes/sla_view.php,
operation/agentes/estado_ultimopaquete.php: Replaced time
function with get_system_time
* operation/reporting/reporting_viewer.php,
operation/reporting/reporting_xml.php, reporting/stat_win.php,
godmode/agentes/configurar_agente.php: Function renaming
* include/functions_reporting.php, include/functions_db.php,
operation/agentes/exportdata.php,
operation/agentes/estado_generalagente.php, reporting/fgraph.php,
godmode/db/db_info.php, godmode/db/db_purge.php,
godmode/agentes/modificar_agente.php: Made tagente_datos.id_agente
redundant by using the internal functions and separate queries.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1324 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* general/footer.php: Made image link relative. It wasn't working for me.
* include/functions.php, include/functions_exportserver.php,
include/functions_incidents.php, include/functions_visual_map.php,
include/functions_db.php, include/functions_extensions.php,
include/functions_reporting.php, include/functions_events.php,
include/functions_html.php, include/functions_ui.php:
Updated documentation to adhere to PHPDoc and parses without errors
* include/functions.php: Removed unsafe_string function (magic_quotes)
Made pagination possible to return instead of print
* include/functions_db.php: Removed give_modulecategory_name
(Module types etc. are now in database). Was unused.
* reporting/fgraph.php: Removed unsafe_string usage
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1323 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions.php: Removed safe_sql_string. Cleaned documenation so
it would be parsed without errors by phpdoc
* include/functions_exportserver.php: Aggregate all exportserver functions
here.
* include/functions_db.php: Cleaned up documentation. Added
get_modulegroups and get_modulegroup_name.
* godmode/db/db_refine.php: Fixed the selection box.
* godmode/agentes/agent_disk_conf_editor.php: Added todo. Don't handle
the footer anymore
* godmode/agentes/agent_template.php,
godmode/agentes/module_manager_editor_plugin.php,
godmode/agentes/module_manager_editor_wmi.php,
godmode/agentes/module_manager_editor.php,
godmode/agentes/module_manager_editor_data.php,
godmode/agentes/alert_manager_editor.php,
godmode/agentes/module_manager_editor_network.php,
godmode/agentes/module_manager.php, godmode/agentes/agent_manager.php,
godmode/agentes/alert_manager.php:
Removed the ACL part since it was redundant due to the inclusion.
Just made sure that it was included (checking on $id_agente)
* godmode/agentes/manage_config.php,
godmode/agentes/manage_config_remote.php,
godmode/agentes/planned_downtime.php: Style fix
* godmode/agentes/configurar_agente.php
godmode/agentes/module_manager_editor_prediction.php: Fixed prediction
module creation/update bugs
* godmode/setup/links.php: No more relying on antique (PHP4) functions
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1321 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/modificar_agente.php: Old functions replace with new
ones. Removed one indentation level when there's no access rights.
* include/functions_ui.php: Wrong variable was being used in
print_group_icon() to store the output and an incosistent behaviour
was happening.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1320 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_ui.php: Added to repository. Functions that prints
UI elements for Pandora. Let's make functions_html.php a single HTML
library instead of mixing it up with Pandora specific elements.
* include/functions.php: Fixed inline doc. Added functions_ui.php.
* include/functions_html.php: Functions moved to functions_ui.php.
Fixed checkbox ids in print_checkbox_extended().
* general/main_menu.php: Make refr attribute optional. Do not print
class attribut tag if no class was given.
* general/login_page.php: Show login error message if login fails.
Put POST values into the form instead of the URL.
* index.php: Cleaned up login code to become easier.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1319 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/alert_manager_editor.php,
godmode/snmpconsole/snmp_alert.php, include/functions_reporting.php,
include/functions_reporting.php:
Function updates
* include/functions.php: show_alert_show_view is now format_alert_row
* include/functions_db.php: get_simple_alerts_in_agent is now
get_agent_alerts_simple; get_combined_alerts_in_agent is now
get_agent_alerts_combined; get_alerts_in_agent is now get_agent_alerts;
dame_nombre_alerta is now get_alert_type; get_alerts_in_group is now
get_group_alerts; dame_id_grupo set to deprecated; Added
process_alerts_validate to validate alerts passed to it.
* index.php: Set UTF-8 encoding standard for multibyte functions
* operation/agentes/estado_alertas.php: Rewritten
* operation/agentes/ver_agente.php: Put alert validation in a function
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1316 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php, include/functions_db.php,
include/functions_html.php, operation/agentes/datos_agente.php,
operation/agentes/estado_agente.php,
operation/agentes/estado_generalagente.php,
operation/agentes/estado_grupo.php, operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php, operation/agentes/status_monitor.php,
operation/incidents/incident_detail.php,
operation/reporting/reporting_viewer.php,
operation/reporting/reporting_xml.php, reporting/fgraph.php,
godmode/db/db_audit.php, godmode/db/db_event.php, godmode/db/db_purge.php:
Added get_system_time in favor of time ();
* include/functions.php: Added get_system_time which gets the time from
a source based on user preference
* include/help/en/help_timesource.php: Explanation of timesource.
* godmode/setup/setup.php, include/config_process.php: Added timesource
selection and preference
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1310 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions.php: Fixed format_numeric in case there are characters
in a number or the number is not a number. Fixes notices from fmod.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1304 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* index.php: Updated build, there were some changes in last month that make
this build to change.
* include/styles/link.css: updated and renamed to menu.css, more coherent.
Updated header.
* include/styles/pandora.css: updated header. Reduced height in
administration and link menu titles.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1298 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* general/footer.php: Updated print_timestamp to always print full.
Removed the center tag (deprecated in HTML 4.01)
* general/header.php: Fixed some CSS.
* general/links_menu.php: Rewritten for new css style
* general/main_menu.php: Rewritten for new css style and to avoid
repetition in writing tags uses an array and functions
* godmode/menu.php: Rewritten for new css style and to avoid repetition
writing tags
* include/functions_html.php: Added option to override prominent time
* include/styles/link.css: Rewritten the whole CSS. Now all menu options
are directly available through slide-outs (pure CSS, no JS) and avoids div
for each single item. The pages renders quite a bit faster too.
* include/styles/pandora.css: Fixed some bad tags and removed stuff that
was for the rewritten menu.
* index.php: Added to div. IE will in some situations not render
empty divs.
* operation/menu.php: Rewritten for new CSS style
* include/styles/god.css, include/styles/op.css:
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1297 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb_data.sql, pandoradb.sql: removed extra '-' which made the
file invalid for mysql population.
* include/languages/es.po, include/languages/es.mo: Updated Spanish
translation.
* include/languages/index.pot: Updated po template.
* general/footer.php: changed format_datetime to print_timestamp.
* godmode/setup/setup.php: moved the enterprise hook so the table
fields show properly in both versions.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1296 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* general/logon_ok.php, godmode/agentes/modificar_agente.php,
godmode/agentes/planned_downtime.php,
godmode/agentes/manage_recontask.php, godmode/setup/news.php,
operation/agentes/datos_agente.php, operation/agentes/estado_agente.php,
operation/agentes/status_events.php, operation/agentes/tactical.php,
operation/events/events.php, operation/incidents/incidents.php,
operation/incidents/incident_detail.php, operation/messages/message.php:
Function updates and new function definitions
* include/functions.php: safe_input used utf_decode which gives problems
with foreign chars since everything else is (or should be UTF-8) fixed.
format_datetime is no longer necessary - use print_timestamp for output.
Extended multibyte wrapper functions.
* include/functions_db.php: give_server_name is now get_server_name;
dame_so_name is now get_os_name; dame_so_icon is now print_os_icon;
show_icon_group is now print_group_icon; give_network_profile_name is now
get_networkprofile_name; smal_event_table is now print_events_table
* include/functions_events.php: print_events_table was moved here and
fixed. Now calculates the cutoff of event and agent text.
* include/functions_html.php: Added title to print_table function and
updated documentation. print_timestamp now uses the new function
definitions (array) and handles 0-dates better. print_group_icon and
print_os_icon added and extended. Added print_agent_name. This function
fixes issues that show up when cutting off agent names with multibyte char
* operation/servers/view_server.php: Rewrite with new functions
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1295 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_html.php: Added missing documentation and fixed a
bit more. Added print_image() to prints an image HTML element.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1293 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_console/operation/agentes/datos_agente.php: Rewrite. Uses new
functions and better security and validation
* pandora_console/include/functions_db.php: Renamed some functions and
created agentmodule functions for consistency with documentation and to
avoid searching for and typing certain function names:
get_agentmodules is now get_agent_modules;
dame_grupo is now get_group_name;
dame_nombre_agente is now get_agent_name; get_agentmodule_agent is new;
dame_nombre_agente_agentemodulo is now get_agentmodule_agent_name;
dame_nombre_modulo_agentemodulo is now get_agentmodule_name;
dame_id_tipo_modulo_agentemodulo is now get_agentmodule_type;
dame_nombre_tipo_modulo is now get_moduletype_name; dame_nombre_grupo is
now get_group_name; get_agentmodule_count is get_agent_modules_count;
get_agentmodule_group is new; get_agent_group is new;
* pandora_console/include/functions_reporting.php,
pandora_console/include/functions.php,
pandora_console/operation/incidents/incident.php,
pandora_console/operation/users/user.php,
pandora_console/operation/users/user_edit.php,
pandora_console/operation/events/events.php,
pandora_console/operation/visual_console/index.php,
pandora_console/operation/agentes/estado_grupo.php,
pandora_console/operation/agentes/export_csv.php,
pandora_console/operation/agentes/estado_agente.php,
pandora_console/operation/agentes/estado_ultimopaquete.php,
pandora_console/operation/agentes/estado_generalagente.php,
pandora_console/operation/agentes/sla_view.php,
pandora_console/operation/agentes/exportdata.php,
pandora_console/operation/agentes/ver_agente.php,
pandora_console/operation/agentes/tactical.php,
pandora_console/operation/agentes/networkmap.php,
pandora_console/operation/messages/message.php,
pandora_console/operation/reporting/reporting_xml.php,
pandora_console/operation/reporting/reporting_viewer.php,
pandora_console/reporting/fgraph.php,
pandora_console/godmode/groups/group_list.php,
pandora_console/godmode/users/user_list.php,
pandora_console/godmode/users/configure_user.php,
pandora_console/godmode/db/db_refine.php,
pandora_console/godmode/db/db_info.php,
pandora_console/godmode/db/db_purge.php,
pandora_console/godmode/agentes/manage_config.php,
pandora_console/godmode/agentes/modificar_agente.php,
pandora_console/godmode/agentes/configurar_agente.php,
pandora_console/godmode/agentes/manage_config_remote.php,
pandora_console/godmode/modules/manage_network_components_form_network.php,
pandora_console/godmode/modules/manage_network_components_form_wmi.php,
pandora_console/godmode/reporting/reporting_builder.php,
pandora_console/godmode/reporting/map_builder.php,
pandora_console/godmode/reporting/graph_builder.php: Renamed functions
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1291 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions.php: format_for_graph is now much simpler and uses
format_numeric.
* include/functions_db.php: give_note_author, give_incident_author,
dame_numero_notas, borrar_incidencia, event_insert and
return_event_description are now in their respective functions_*.php files
but under a new name. Fixed delete_agent transaction error detection
* include/functions_events.php: Added get_event_description and
create_event (formerly return_event_description and event_insert)
* include/functions_html.php: print_timestamp attributes should be default
empty, not required. Added print_username for a consistent username print
* operation/agentes/ver_agente.php: Function renaming (create_event)
* operation/incidents/incident.php: Partial rewrite. Uses new functions.
Also added some of feature request #2264838
* operation/incidents/incident_detail.php: Partial rewrite. Uses new
functions. Added some of feature request #2264838 functionality.
* operation/incidents/incident_search.php,
operation/incidents/incident_statistics.php: Minor style update
* pandoradb.sql: New tincidencia and tnota layout. No use for tnota_inc
* include/functions_incidents.php: All incidents functions. Documentation
will be online soon. Also includes an upgrade mechanism for SVN users.
Mechanism should be removed for a stable version and integrated into
install/upgrade tool.
* lib/PandoraFMS/DB.pm: New table layout doesn't require timestamp anymore
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1285 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions.php: format_for_graph is now much simpler and uses
format_numeric.
* include/functions_db.php: give_note_author, give_incident_author,
dame_numero_notas, borrar_incidencia, event_insert and
return_event_description are now in their respective functions_*.php files
but under a new name. Fixed delete_agent transaction error detection
* include/functions_events.php: Added get_event_description and
create_event (formerly return_event_description and event_insert)
* include/functions_html.php: print_timestamp attributes should be default
empty, not required. Added print_username for a consistent username print
* operation/agentes/ver_agente.php: Function renaming (create_event)
* operation/incidents/incident.php: Partial rewrite. Uses new functions.
Also added some of feature request #2264838
* operation/incidents/incident_detail.php: Partial rewrite. Uses new
functions. Added some of feature request #2264838 functionality.
* operation/incidents/incident_search.php,
operation/incidents/incident_statistics.php: Minor style update
* pandoradb.sql: New tincidencia and tnota layout. No use for tnota_inc
* include/functions_incidents.php: All incidents functions. Documentation
will be online soon. Also includes an upgrade mechanism for SVN users.
Mechanism should be removed for a stable version and integrated into
install/upgrade tool.
* lib/PandoraFMS/DB.pm: New table layout doesn't require timestamp anymore
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1284 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: Now if no event, table shows "no event" text.
Cosmetic table header change.
* operation/agentes/tactical.php: Solve warning if no servers defined.
Cosmetic table header change.
* operation/events/events.php: Change "error" class to "not found" class.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1280 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/setup/setup.php: Added prominent_time value to configuration.
Also made setup.php available for singular GET requests. Implements
feature request #2267582
* include/config_process.php: Added prominent_time to configuration. Also
made sure some values are inserted into the database. Implements
feature request #2267582
* include/functions.php: Removed give_human_time(). Fixed
human_time_description_raw and human_time_comparation for 0 values
* include/functions_db.php: Called safe_input in get_agentmodules
* include/functions_html.php: Added print_timestamp for feature request
#2267582. Timestamps should be printed using this function.
* include/styles/pandora.css: Simplified CSS for f9 classes
* operation/agentes/estado_monitores: Rewrite. Also implemented
Glen Eustace's (from Godzone) feature request.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1254 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/snmpconsole/snmp_view.php, godmode/snmpconsole/snmp_view.php:
Added legend to satisfy feature request #2204169. Also made filters
persistent
* operation/events/events.php: Usage of new function
* operation/agentes/ver_agente.php,
operation/agentes/estado_monitores.php: A bit of style update
Fixed bug where $intervalo actually came from index.php
* index.php: Put refresh in config (to prevent above bug)
* include/styles/pandora_width.css, include/styles/pandora_red.css,
include/styles/pandora_black.css, include/styles/pandora.css:
Update so you can use datos_<color> in other things than td
* include/functions_db.php: give_agentinterval is now get_agent_interval
* include/functions.php: Added get_priority_class to find background
color classes
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1253 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* reporting/fgraph.php: Updated for some faster processing
and new functions.
* operation/events/events.php,
operation/agentes/estado_alertas,
include/functions_reporting.php,
godmode/reporting/reporting_bulder.php,
godmode/reporting/map_builder.php, godmode/db/db_info.php:
Function name updates
* include/functions_html.php: Small style update
* include/functions_db.php: get_agents_in_group is now
get_group_agents. Accepts array and specified case.
get_modules_in_agent is now get_agentmodules and accepts arrays
of agents as well as which details to select. Deprecated
dame_nombre_agente in favor of get_agent_name which accepts case.
Fixed get_agent_addresses for use in select boxes. Added filter
to get_agentmodule_count
* godmode/db/db_purge.php: Fixed queries and style updates
* godmode/agentes/configurar_agente.php: Fixed IP select box
* godmode/agentes/agent_manager.php: Style update and fixed a bug
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1250 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operations/snmpconsole/snmp_view.php: Removed
lang_string references in favor of __ ()
* index.php: Style updates and function name update
* include/functions_db.php: Removed lang_string function
* include/functions.php: parameter_extra_clean is now
safe_url_extraclean. Also updated it slightly
* godmode/admin_access_logs: Updated for style and speed
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1248 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/incidents/incident_detail.php, incident.php: Update ACL's
to reflect IR rights instead of default AR
* operation/events/events.php: Updated style and html for new
functions. Fixes Bug #2267593
* index.php: Put REMOTE_ADDR in $config as well. It's easier to
globalize in functions.
* include/functions_reporting.php: Updated event_reporting to accept
any type of date. Style update. get_group_stats didn't need global
* include/functions_html.php: Updated print_table documentation with
pre-existing $table->id. Also added $table->headclass[] for classes
in headers
* include/functions_events.php: New-style function file to aggregate
events functions.
* include/functions_db.php: gime_idgroup_from_idevent is now in
functions_events.php as get_events_group. Renamed get_events_in_group
to get_group_events return_priority is now get_priority_name
* include/functions.php: Added safe_int function to clean up and remove
non-ints from either single values or arrays of values. Also has min
and max limiters. Added $pagination in lieu of $config["block_size"]
to pagination function. That way larger block sizes (eg in events)
will display correctly. Added strtotime on format_datetime
* godmode/db/db_event.php: After an ACL error, it's better to exit
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1244 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: Fixed an error when calculating
working data modules that affects to strings modules. Thanks to Glen
Eustace for the report and fix.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1243 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/servers/view_server.php: Small language fix
* operation/agentes/tactical.php: Rewrite using new functions and
cleaner html. More understandable and outsourced calculations to
get_group_stats
* include/styles/pandora.css: Clean up CSS deprecated in other files
* include/javascript/pandora.js: Noticed a small style difference
* include/help/en/help_serverlag.php: Hopefully this makes server lag
somewhat more understandable (I didn't know what it was)
* include/functions_reporting.php: Renamed general_stats to
get_group_stats and made it accept arrays. Also added ACL check and
an easier output format. All calculations are now done here.
* include/functions_html.php: print_table would always reset
cellpaddings and cellspacing from 0 to 4. Fixed it
* include/functions_db.php: Deprecated server_status for
get_server_info. Added get_server_info which accepts single values or
arrays of servers to be checked.
* include/functions.php: Removed clean_output_breaks. Use built-in
function nl2br() for that instead. They're faster and cross-platform
* general/logon_ok.php: Same as tactical.php (both had to be updated)
* ChangeLog: Somebody started using spaces instead of tabs?
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1241 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/funcions_db.php: Reference to inexistant table
tagent_data_image has been deleted and fixed notice.
* install.php: Fixed default var for homeurl.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1232 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/reporting/reporting_builder.php: Fixed a notice using
get_db_value() which was replaced by get_db_sql().
* include/functions_reporting.php: Fixed an error on
get_fired_alerts_reporting_table() since id_alert field in
talerta_agente_modulo is not reliable.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1227 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/reporting/reporting_builder.php: Fixed value of 1 week
period.
* include/functions.php: Moved all human_time_* functionallity to
human_time_description_raw().
* include/functions_reporting.php: Fixed a bug in SLA calculation that
affects small periods of time (less than 24 hours) due to data
compression in the database.
* operation/reporting/reporting_viewer.php: Style correction.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1225 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: Style corrections ins give_acl(). Show
nothing on sql_error_handler based on error_reporting() level.
* ChangeLog: Fixed my previous commit date.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1223 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/snmpconsole/snmp_View.php: Added a span with title over the
time comp since some people want to know what time something went down.
This should maybe be moved into a print_ function
* operation/agentes/estado_generalagente.php: ACL check and style
changes. Use of new functions
* include/functions_db.php: dame_numero_datos - added inc and string
can also filter on agent now. Renamed give_agent_address_from_list to
get_agent_addresses. get_agent_addresses now returns an array with ips
Changed give_agent_address to get_agent_address
* godmode/agentes/manage_config.php,
godmode/agentes/configurar_agente.php: Renamed functions
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1220 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: Added sql_error_handler() to show SQL
errors. Improved SQL error messages in process_sql() so it shows now
the failing sentence, the file and the line of the call.
* index.php: Moved load_extensions() call after enterprise
instalation so enterprise extensions are installed properly.
* godmode/profiles/profile_list.php: HTML tags nesting fixed.
* ChangeLog: Fixed previous commit message style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1219 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/snmpconsole/snmp_alert.php: Fixed an error that doesn't
allow to show some fields when editing an alert. It's done using
javascript, but a PHP version might be better. Style correction.
* include/functions_db.php: Added get_agent_with_ip().
* operation/snmpconsole/snmp_view.php: Use get_agent_with_ip() since
using get_db_row() is not enough for agents with many addresses.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1193 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql: Style correction.
* godmode/agentes/agent_manager.php,
godmode/agentes/configurar_agente.php: Removed inventory server
configuration, which was moved to an enterprise hook. Style
correction.
* include/functions.php: Added slash to enterprise_include() path to
work in some rare cases.
* include/functions_db.php: Errors in process_sql() are shown using
trigger_error(), so they can be disabled setting error_reporting().
* include/functions_html.php: Added print_input_image() to show input
image HTML elements.
* index.php: Added enterprise includes and hooks to show the future
dashboard. Style corrections.
* godmode/reporting/map_builder.php: Fixed error when creating a map.
Javascript fixes. Style correction.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1185 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions.php: Improved human_time_comparation() so it won't
return nothing like "1.7 minutes". Make enterprise_include use
ENTERPRISE_DIR. Style correction.
* operation/agentes/estado_agente.php: Uses generic functions. Reduce
one indent level by using continue on a loop. Fixes status flag to
check if agent is down with no monitors. Show the exact date on last
contact column title. Style corrections.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1179 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb_data.sql, pandora_db.sql: id_npc was rendered unnecessary
with the last rewrite of the profiles page and id_np should really be
the key since that what we're selecting/sorting on.
* operation/events/events.php: Fixed Bug #2174790 and fixed the
brackets being in all the wrong places. Also added checks so that only
admins can retrieve system events
* include/functions_db.php: Added an option to get_user_groups so that
other privileges than AR can be retrieved.
* operation/visual_console/index.php: Added ACL check. Security issue
reported in bug #2174790
* operation/menu.php: Added ACL check. Security issue reported in bug
#2174790
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1177 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* fgraph.php, db_info.php, db_purge.php: Now show data also
for string modules.
* include/config_process.php, index.php: Header update for version
2.1-dev.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1165 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_html.php: Added print_error_message, a function
that will print out <h3> error messages for you given a result
* godmode/modules/manage_network_templates_form.php: Rewrite for new
style and makes it easier for mass updates to templates (eg. if you
have port 1-48 of a Cisco Switch (input, output and status) now you
don't have to click 288 times.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1163 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: Fix where the attachment wouldn't be
deleted because of a variable problem
* operation/snmpconsole/snmp_alert.php: Rewrite. Fixes bug #2166256.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1158 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: Style changes and language updates and a
fully functional delete_agent function
* include/functions.php: Comment update for safe_input
* manage_config.php: Merged Sancho's bug fixes and a rewrite. It works
it is more elegant and is more extensive in database cleanup
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1152 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/config_process.php: Added ENTERPRISE_DIR constant.
* extensions/hello.php: Use extension better than plugin which is
already used in other places.
* godmode/reporting/map_builder.php: Use process_sql() to make SQL
queries.
* include/functions_db.php: Fixed some functions documentation. Added
order_field to get_db_all_fields_in_table(). Style correction.
* include/functions_extensions.php: Support to load enterprise
extensions.
* include/functions_reporting.php: Fixed general_stats() to returns
stats also with a field name.
* include/javascript/jquery.ui.core.js,
include/javascript/jquery.ui.draggable.js,
include/javascript/jquery.ui.droppable.js: Updated to latest version
of jQuery UI.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1149 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* agent_disk_conf_editor.php: Now load enterprise code
using a normalized code.
* setup.php: Removed some features of enterprise on setup.
* functions.php: Added enterprise load code and load hook
functions.
* datos_agente.php: Fixed stupid problem with string data
deletion.
* custom_reporting.php: Now load enterprise code
using a normalized code.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1147 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/reporting/reporting_xml.php: Now correctly displays image
reports without messing up the XML
* include/functions_html.php: print_select now accepts arrays (eg. for
use in select boxes with the multiple tag set) as selected values
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1140 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* ajax.php: removed carriage return from EOF.
* index.php: Updated final version variable (YES!)
* config_process: Updated final version variable (YES!)
* libupdate_manager_client.php: Do not raise a notice (probably be hidden
for user). Show error details with a simple echo.
* footer.php: Bad reference to image, in help don't show properly fixed.
* pandora_help.php: Fancy layout :)
* manage_config.php: Now works fine. If target agents not defined used
source agent. Module mass delete now works. Added help and better deletion
of agents. Fixed bug #2157135.
* pandora_textlogo.png: Added new icon for help header.
* functions_db.php: Added delete_agent() used in manage_config.
* help_alert_validation.php, help_manageconfig.php, help_planned_downtime.php:
New help files (english only!).
* datos_agente.php: Stupid bug that don't allow to delete string data.
* estado_alertas.php: Added help to alert ACK button.
* reporting_viewer.php: Added SLA legend label (limit) and fixed render of
invalid SLA (was swapped bad for good). Combined graphs dimensions are used
now on reports.
* reporting_xml.php:; Fixed a small problem that renders header after contents.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1139 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb_data.sql: Added support for autoupdate and trap2agent
forward in tconfig.
* update_manager.php: Automatically in logon function hook detect
if is defined. If not, try to connect the first time and automatically
set autoupdate to 0 in tconfig.
* db_audit.php: Now works, before don't.
* setup.php: Added new items: trap2agent forward and autoupdate.
* snmp_view.php: Now display properly OID, Value and Custom Value. Need
changes in snmptconsole server to work and render all data. Better layout.
* config_process.php: Detect if trap2agent is not configured, and if not,
create record in tconfig (this should not be necessary but there is a lot
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1136 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: Handle empty and zero values in
get_agent_module_sla.
* include/config_process.php: SLA Period shouldn't be 0 (which is
apparently default in the database). If SLA is empty (NULL, 0, false
or '') then it get's reset to a default value.
* godmode/setup/setup.php: SLA Period was hidden because of a miscount
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1133 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/configurar_agente.php: Double values in query removed
* godmode/agentes/agent_manager.php: WMI Server now properly displays
None if no WMI server is present
* include/functions_html.php: If the query returns empty for
print_select_from_sql, a box should still be printed. Fixed.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1132 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: Removed quotes when using $order_field so
it can be used order (ASC or DESC).
* include/functions_html.php: Added thead and tbody to be more XHTML
compliant.
* operation/reporting/graph_viewer.php: Fixed a typo error that was
not allowing to remove a graph. Style correction, variables renamed to
have a meaning ($row has no scope or meaning, please do not use it!)
and better use of the parameters.
* godmode/extensions.php: Style correction.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1127 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* reporting/fgraph.php: monitors_health_pipe was in an aesthetically
bad order. Moved for yellow to be bad and green to be good
* operation/reporting/reporting_viewer.php,
godmode/reporting/reporting_builder.php: Style updates. Use the
updated database functions.
* include/functions_reporting.php: monitor_health_reporting function
updated. There was a major bug; ¬ got translated into it's ASCII
value and the graph didn't work. The graph was in a bad position as a
float, it went over the table and if the table was not big enough,it
would go over other data. So fixed all of it.
* include/functions_html.php: print_select_from_sql updated to use SQL
functions
* include/functions_db.php: get_monitors_in_group didn't work correctly
if the group was 1 (All). Removed quotes from get_db_value and
get_db_all_rows_field_filter
* include/functions.php: get_report_type_data_source returned the wrong
type for monitor_report (id 6) which made the jQuery not show the
agent/module select box and subsequently the graph failed
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1123 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/help/es: created directory for Spanish help files.
* include/help/es/help_map_builder.php,
include/help/es/help_alert_recovery.php,
include/help/es/help_network_component.php,
include/help/es/help_module_definition.php: Added some Spanish
help files.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1118 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: Fixed a small bug in get_db_value and fixed
check_server_status () to return an int at all times
* general/header.php: Removed my old table code. Fixed bug #2119102.
* ChangeLog: Made Jorge's entry use tab instead of spaces
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1112 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/styles/pandora.css: Removed some duplicate entries while
hunting down a specific tag
* include/functions_html.php: Added class to print_select () and
removed the default 'select' display in case of empty
* include/functions_db.php: Added comment to list_group so coders are
reminded to use the html functions instead. Fixed dame_nombre_real
because a user_id is not an int. Added function list_users similar to
list_group. Needed to fill input boxes with user selections.
* include/functions.php: Adhered pagination to correcter HTML style
removed single quotes and closed open tags
* operation/incidents/incident_statistics.php: Correcter HTML
* operation/incidents/incident_search.php: Style changes. Use new
functions for html objects
* operation/incidents/incident_note.php: Inherited into
incident_detail.php
* operation/incident_detail.php: Rewritten for style and security.
Uses all the functions for html and sql. Added a bunch of security
checks and made it look a little more consistent. Added virus scanner
integration with the clamav library for PHP4 or PHP5 (autodetect)
* operation/incident.php: Rewritten for style and security. Uses all
the functions for html and sql.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1103 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/agentes/estado_alertas.php: Fixed a few bugs and made it
faster by switching to the general functions. Style update
* include/functions_db.php: Made get_agents_in_group() function accept
array or a comma delimited list. This will allow us to get agents in
multiple groups. Backwards compatible (single value passed). Set an
output check on empty (array or false) for get_alerts_in_group().
* include/functions.php: Made get_alert_days() output translatable.
Made the little columns with info on alerts give more text (it does
fit). Made show_alert_show_view() use the internal functions to
retrieve name and id's. Style updates, better HTML output (tags).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1097 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/languages/pt_br.po: Removed the file from repository. The
update named pt_BR.po (note capitalization) remains. The files were
causing problems in local svn repositories based on filesystems
that don't differentiate between the 2 files.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1092 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/languages/fr.mo, include/languages/pt_BR.po, include/languages/pl.mo, include/languages/eu.po, include/languages/sv.mo, include/languages/ru.po, include/languages/zh_TW.mo, include/languages/index.pot, include/languages/zh_CN.mo, include/languages/eu.mo, include/languages/pl.po, include/languages/ru.mo, include/languages/sv.po, include/languages/zh_TW.po, include/languages/zh_CN.po: Added new po and mo translations, imported from Rosetta.
* operation/agentes/tactical.php: Added some strings for translation.
* include/languages/Makefile: added new languages to compile.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1091 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* extensions/update_manager/main.php: Added option to update packages.
* include/functions_db.php: Added default value to get_user_groups,
so if no parameter is giving, it will asume running user.
* include/languages/Makefile: Added missing options to add comments to
index.pot file.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1083 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_html.php: Fixed a typo error in print_textarea
that cause not showing the value given.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1076 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting_pdf.php: Moved to contrib branch.
* install.php: Update sample of use for homeurl variable. This should
not contain HTTP:/x.x.x.x anymore.
* operation/events/events_rss.php: Makes use of homeurl in the
correct way.
* operation/agentes/estado_agente.php: Fixed a sprintf typo.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1075 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f