* include/functions_reportings.php: Added functionality to show only
wrong modules
* pandoradb.sql: Added column 'only_display_wrong" to treports_content
* operation/agentes/estado_agente.php: Truncated agent name to 25 chars
* extras/pandoradb_migrate_v3.2_to_v4.0.sql: Added column
'only_display_wrong" to treports_content
* godmode/reporting/reporting_builder.php: Added functionality to show
only wrong modules
* godmode/reporting/reporting_builder.item_editor.php: Added functionality
to show only wrong modules
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3814 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php,
operation/reporting/reporting_xml.php: Draw baseline reports
in the future by default.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3687 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php, include/fgraph.php,
include/functions_db.php, images/image_problem.opaque.png: fixed the bug
because this bug was two things the access to graph with not login in the
same machine to generate, and the transparent png that not crash with the
pdf library.
Fixes: #3139079
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3674 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php
include/functions.php
operation/reporting/reporting_xml.php
godmode/reporting/reporting_builder.item_editor.php: Added the
simple baseline graph to the html and xml report exports
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3563 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
* 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_reporting.php
include/functions_visual_map.php
operation/reporting/graph_viewer.php
godmode/reporting/graph_builder.preview.php: Fixed the setting
of width and height on custom graphs setup. Increased the height
of the graph in few sections to fix the rise of the leyend
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3361 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: in function "get_agent_module_info" added
the return "status" and "alert_value".
* include/auth/mysql.php: in function "process_user_login" cleaned the
source code style.
* include/functions_ui.php: in function "print_timestamp" added in the
parameter $option the check of units ('large' and 'tiny' at the moment).
Added the function "print_group_icon2" that it is the same of
"print_group_icon" but it has a new parameter $path for to set the images
path.
* include/functions.php: in function "human_time_comparation" added the
parameter $units to set the type return text for time unit (at the moment
only "large" and "tiny"). And in the function "human_time_description_raw"
added the paramter $units for to set the type of return text for units, at
the moment only "large" and "tiny".
* include/functions_db.php, operation/agentes/ver_agente.php: cleaned source
code.
* mobile/index.php, mobile/operation/agents,
mobile/operation/agents/view_agents.php, mobile/include/db.class.php,
mobile/include/style, mobile/include/style/main.css,
mobile/include/user.class.php, mobile/include/functions_web.php,
mobile/include/system.class.php, mobile/images/bricks.png,
mobile/images/up.png, mobile/images/zoom.png, mobile/images/down.png: added
first version of file for Pandora Mobile version.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3246 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/events/events.php: Fixed bug on event searches
in different languages than english.
* include/functions_reporting.php: Fixed notice on empty foreach.
* config_process.php: Trying to supress Deprecated messages.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3179 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: Fixed the get_agent_module_info function
for avoid to show the disabled modules information
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3100 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/styles/pandora.css
include/functions_reporting.php
include/functions_ui.php
include/functions_db.php
operation/agentes/status_monitor.php
operation/agentes/estado_agente.php
operation/agentes/bulbs.php
operation/agentes/estado_monitores.php
operation/agentes/group_view.php
images/status_sets/default/module_no_data.png
images/status_sets/default/alert_fired.png
images/status_sets/default/agent_no_monitors.png
images/status_sets/default/alert_fired_ball.png
images/status_sets/default/agent_no_monitors_ball.png
images/status_sets/default/agent_down_ball.png
images/status_sets/default/agent_down.png: Fixed several modules
and agents list status to use the new unknown status. Some images was
changed too for show the same colour than the visual and network maps
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3091 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php, include/fgraph.php,
include/functions_fsgraph.php, operation/agentes/stat_win.php: Moved
min, max and avg information into the chart to make it available to
reports an custom graphs.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3084 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: Updated reporting functions to work
with uncompressed data.
* include/fgraph.php, include/functions.php: Added a generic
function to check whether a module has compressed data.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3077 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: added new parameters in the function
"get_agentmodule_sla", the parameters days of week to search and range of
time. And use new parameteres in the call for SLA data in function
"render_report_html_item".
* pandoradb.sql, extras/pandoradb_migrate_v3.1_to_v3.2.sql: in table
"treport_content" added the fields for set days of week and range time
for SLA.
* operation/reporting/reporting_xml.php: use new parameters in the call for
SLA data.
* godmode/reporting/reporting_builder.php: added source code for save,
update new fields (days of week and time range).
* godmode/reporting/reporting_builder.item_editor.php: added source code to
show the fields (days of week and time range).
Pending task: #3033457
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3070 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: Fixed the colspan
into the Custom Graph report item for bug: 3013859
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2906 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: Disabled DB cache for
get_agent_module_info () to avoid memory errors in big
environments.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2867 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php, include/functions.php,
godmode/reporting/reporting_builder.php,
godmode/reporting/reporting_builder.item_editor.php: added the code for
show a new item event_report_group.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2846 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php
operation/agentes/status_monitor.php
operation/agentes/group_view.php: Fixed the group
view table values for bug 3010321 and added the log4x
type of module to asynchronous exception for bug
3008759
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2842 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php
operation/agentes/status_monitor.php: Fixed full monitor
checks in tactical view and monitor status filter
on monitor detail
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2715 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php, include/fgraph.php,
include/functions_db.php, include/functions_fsgraph.php: Fixed
a lot of chart and report code related to Pandora FMS's data
compression algorithm.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2678 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: fixed the php notice message when the
index not exist in the var $data in the function "get_agentmodule_sla".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2667 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: changed the style to show data in the
items "TTRT", "TTO", "MTBF" and "MTTR".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2663 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: fixed in the function
"get_agentmodule_data_average" prevent to use the var without value.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2662 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: Added the
high variation for the graphs when the
parameter $mini is true
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2661 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: Added "mini"
parameter. Usefull for print the report with less
size
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2657 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: added the parameter "$html" in the
function "alert_reporting_agent" and "alert_reporting_module", this flag is
for return the html table or object table, by default the html. And fixed
the title of "alert_report_module" and "alert_report_agent", fixed return
of list "event_report_module" in the function "render_report_html_item".
* godmode/reporting/reporting_builder.item_editor.php: fixed the lost field
"period" in the item "database_serialized".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2654 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: added the parameter "$html" in the
function "get_module_detailed_event_reporting", this flag is for return
the html table or object table, by default the html.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2653 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: added function "alert_reporting_agent"
for make the html list of agent alerts, added function
"alert_reporting_module" for same thing before function instead it is for
modules. In report item "event_report_agent" fixed the output. Added report
items "alert_report_module", "alert_report_agent", "url" and
"database_serialized".
* include/functions_db.php: added function "get_agent_alert_fired" for
to extract the alerts fired of agent, and added "get_module_alert_fired"
for alerts fired of module.
* godmode/reporting/reporting_builder.php,
godmode/reporting/reporting_builder.item_editor.php: fixed the renamed
column "row_separator" of previus commit.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2631 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: in function
"get_agents_detailed_event_reporting" fixed param for $id_agents to array
type, fixed the loop to save events and fixed in the loop to make the table.
Added the function "get_module_detailed_event_reporting" for events of any
module. In function "render_report_html_item" remove trace function, added
the render option "event_report_module" for render list of events of any
module.
* include/functions_db.php: added function "get_module_events".
* operation/gis_maps/ajax.php: cleaned source code.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2619 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: added render html for "text" and "sql"
item.
* include/ajax/reporting.ajax.php: added request for the custom SQL.
* include/functions_db.php: in function "get_db_value_filter" fixed the
field when the field is escape string.
* godmode/reporting/reporting_builder.item_editor.php: added the preview of
custom SQL.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2617 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: cleaned source code of
"render_report_html_item" function for new types of report items.
* include/functions.php: cleaned source code of "get_report_types" function
and added new types of report items.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2614 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: Added function render_report_html_item()
to render a given report element in HTML format. Fixed a small problem in
SUM report type (int truncate invalidate most of SUM reports when not using
a _inc data type).
* include/functions.php: Updated all "is_module_xxx" from using ereg
(deprecated) to use preg_match.
* include/functions_db.php: Moved reporting functions
get_agentmodule_data_average(); get_agentmodule_data_max(),
get_agentmodule_data_min() and get_agentmodule_data_sum() from here
to functions_reporting.php.
* godmode/groups/group_list.php: Removing a group put all agents assigned
to that group in other available group (choosen in realtime).
* AUTHORS: Authors file update, was very outdated!.
* operation/agentes/estado_generalagente.php: Fixed bug #2990430.
* operation/reporting/reporting_viewer.php: Some changes for better
structuration of the HTML reporting viewer. Removed big chunk of code
and put in function_reporting/render_report_html_item() function.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2583 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: Solved issue with several undefined
vars.
* include/functions_servers.php: Solved issue with several undefined
vars.
* include/functions_config.php: Added metaconsola witch to readconfig.
* include/config_process.php: Update build.. is YYMMDD !
* include/functions_ui.php: Removed deprecated call to split and replaced
by preg_split.
* index.php: Activated developer mode.
* operation/agentes/estado_monitores.php: Solved small problem with modules
without history, filling missing column in table. Added headers
* godmode/alerts/configure_alert_compound.php,
operation/agentes/status_monitor.php
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_templates.php,
godmode/alerts/configure_alert_action.php,
godmode/alerts/configure_alert_command.php,
godmode/alerts/alert_actions.php,
godmode/alerts/alert_commands.php,
godmode/modules/manage_network_templates.php,
godmode/modules/module_list.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php: Removed deprecated call to include
config.php and in some cases, added new header style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2444 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* functions_events.php: Fixed typo (switched meaning) in two labels.
* include/styles/pandora.css: Changed background color of th default style.
* include/functions_reporting.php: Improved function get_group_stats(). Now
supports stats from batch-mode and get realtime stats in a more efficient
way. Fixed get_fired_alerts_reporting_table() to avoid problems in external
reporting (PDF & XML).
* include/functions_servers.php: get_server_performance() now uses batch mode
stats reporting, and improved also the realtime stats generation. Same with
function get_server_info().
* include/functions_config.php: Added new config tokens (not fully
implemented yet) for event, trap, strings and audit automatic purge.
* include/functions_ui.php: Added new print_page_header() function to set
the new standard header in all pages, using the "tabbed" format to show
the title, subtitle and other options like help, or custom-tabs for the page
* pandoradb.sql: Added tserver.stat_utimestamp field. Added indexes to
tsession table. Fixed typo in field name in tgroup_stat: agents_uknown to
agents_unknown.
* extensions/ext_backup: New directory to place "deleted" extensions.
* extensions/dbmanager/dbmanager.css: Table names now are in it's original
lowercase/uppercase format.
* extensions/dbmanager.php: Updated headers, and now return "empty" when
a search is empty, instead "error" as before.
* extensions/users_connected.php
extensions/module_groups.php
extensions/plugin_registration.php
extensions/pandora_logs.php
operation/incidents/incident.php
operation/snmpconsole/snmp_view.php
operation/users/user.php
operation/users/user_edit.php
godmode/agentes/planned_downtime.php
operation/events/events.php
operation/visual_console/index.php
operation/agentes/estado_generalagente.php
operation/agentes/estado_agente.php
operation/agentes/exportdata.php
operation/agentes/ver_agente.php
operation/agentes/status_monitor.php
operation/agentes/alerts_status.php
operation/users/user_statistics.php: Added new header format.
* operation/agentes/estado_grupo.php: Removed old group view.
* operation/agentes/tactical.php: Adapted to use new realtime/batch
statistical system. Placed events above server info. Showing only pending
events and other minor changes.
* operation/agentes/group_view.php: NEW screen, replacing old one. Probably
most ugly, but much more useful than before.
* operation/agentes/networkmap.php: Added title.
* operation/messages/message.php: Added title and adding some exists in
code was missing before.
* operation/reporting/reporting_viewer.php: Added title.
* operation/reporting/graph_viewer.php: Added title.
* operation/reporting/custom_reporting.php: Added title.
* operation/servers/view_server.php:
* operation/menu.php: Replaced old group view with new (this has english
name). Removed autorefresh "by default" in server view.
* extras/pandoradb_migrate_v3.0_to_v3.1.sql: Fixed typo.
* extras/pandora_diag.php: Minor changes, removed some info and added other.
* general/logon_ok.php: Minor aesthetic changes.
* general/header.php: Fixed missing ";"
* operation/extensions.php,
godmode/extensions.php: Added support for delete extensions.
* godmode/menu.php: New setup items.
* godmode/setup/setup.php,
godmode/setup/performance.php,
godmode/setup/setup_visuals.php: Reordered setup options, new setup section
"Performance", added new performance options to set "realtime" statistics
or "batchmode" with it's own interval. Some setup info is now shared with
the servers (but it it's any change in setup, servers should be restarted
anyway).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2390 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f