* include/functions_reporting.php,
operation/reporting/graph_viewer.php, godmode/setup/news.php,
godmode/agentes/planned_downtime.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/map_builder.php: Fixed strings to make them
standard for translation.
* include/languages/es.po, include/languages/es.mo: Updated Spanish
translation.
* include/languages/index.pot: Updated PO template.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1649 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/module_manager_editor.php,
godmode/agentes/module_manager_editor_common.php,
godmode/agentes/module_manager_editor_data.php,
godmode/agentes/module_manager_editor_network.php,
godmode/agentes/module_manager_editor_plugin.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/agentes/module_manager_editor_wmi.php,
godmode/agentes/module_manager.php: Some fixes to allow form
reutilization.
* include/javascript/jquery.pandora.controls.js: Fixed a typo. Added
pandoraSelectGroup control.
* include/javascript/jquery.pandora.js: Separate between auto executed code
and document ready function.
* include/javascript/pandora_modules.js: Added to repository. Functions to
use on module editors.
* include/functions_agents.php: Added get_agents().
* include/functions_db.php: Added get_user_first_group(). Changed
user_access_to_agent() parameters order.
* include/functions_reporting.php: Style corrections.
* include/functions_ui.php: Added doc to print_status_image(). Added
print_ui_agents_list() to print a list of agents with a search form and
a lot of configuration options easily.
* include/functions_ui_renders.php: Added to repository. New API for
renders on UI components.
* operation/agentes/estado_agente.php: Make table wider.
* godmode/reporting/reporting_builder.php: Replaced exit with return. Use
pandoraSelectGroup control.
* godmode/servers/manage_recontask_form.php: Style corrections to fit
Pandora styles.
* godmode/servers/modificar_server.php: Removed a notice from a typo.
* godmode/setup/setup.php: Fixed table data indexes. Removed javascript
code from visual setup.
* godmode/setup/setup_visuals.php: Some strings changed. Style correction.
* godmode/menu.php: Added policies enterprise menu option.
* images/policies.png: Added to repository.
* godmode/agentes/modificar_agente.php: Style correction by using pandora
functions.
* godmode/agentes/massive_operations.php: Fixed tab styles that was showing
wrong the .
* godmode/agentes/manage_config_remote.php: Changes in
user_access_to_agent()
* general/ui/agents_list.php: Added to repository. Reusable render for an
agent list.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1632 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
* include/functions_visual_map.php,
godmode/reporting/map_builder.php: Two new types of items for map graphs:
Simple value and progress bar. Progress bar uses height to set the higher
possible limit of the value to calculage the percentile.
* reporting/pchart_graph.php: Progress bars now have percentile text without
shadow (more readable). Fixed round cut of prev. commit.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1581 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_ui.php: Added print_message(),
print_error_message() and print_success_message().
* godmode/users/configure_user.php,
operation/users/user_edit.php,
godmode/reporting/map_builder_wizard.php: Use print_error_message() or
print_success_message() when there was no other option.
* godmode/modules/manage_network_templates.php: Fixed CSV export
notice errors. Style corrections.
* godmode/modules/manage_network_templates_form.php: Style
corrections.
* include/functions_network_profiles.php: Added to repository. Network
profiles function API.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1577 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/reporting/reporting_builder.php: Some small fixes which
didn't allow creating reports or adding contents.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1569 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_alerts.php: Finished the alerts API by removing
useless and focus of problems clean_*(). All the functions now uses
process_sql_*().
* godmode/alerts/alert_actions.php,
godmode/alerts/alert_commands.php: Adapted to changes in
functions_alerts.php.
* godmode/alerts/configure_alert_template.php: Fixed default action
updating when it's set to None. Fixed textarea height.
* include/functions_reports.php: Added to repository. API to manage
user reports.
* include/functions_db.php: Moved get_reports() to
functions_reports.php. Escape ` on get_db_value(). Use
format_array_to_update_sql() on process_sql_update().
* godmode/reporting/reporting_builder.php: Use functions from reports
API.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1560 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/db/db_purge.php: Style correction.
* godmode/modules/manage_nc_groups.php: Complete rewritten.
* godmode/modules/manage_nc_groups_form.php: Use pandora functions.
Needs more love.
* godmode/reporting/map_builder.php: Some fixes to make it work in
IE7.
* include/javascript/jquery.pandora.controls.js: Execute automatically
instead of on ready. Typo fixed that was not allowing to work on IE.
* include/styles/ie.css: Bit of style corrections.
* include/functions_ui.php: Added the ie.css code at the bottom, so it
has preferences over other styles.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1534 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_visual_map: Small fixes to render backgrounds with
spaces in filename correctly
* operation/visual_console/index.php, godmode/reporting/map_builder.php:
Fixes to render icons correctly.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1522 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/pandora.js: Moved agent_changed here from map_builder
because it's quite a useful function.
* include/functions_visual_map.php: In case you want no labels (a lot of
icons on a graph) just set the color to anything not starting with #
* godmode/reporting/map_builder_wizard.php: Added the possibility to add
modules as well using the wizard. Very useful if you have a switch.
* godmode/reporting/map_builder.php: Fixed some issues with the ajax thing
and fixed issue #2527894.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1521 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/reporting/map_builder_wizard.php: Fixed small error when no
valid id was passed.
* godmode/reporting/map_builder.php: Modified code so that width and
height can be specified for all types of graphics. Fixed code where
width and height wouldn't be passed in the database
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1520 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/reporting/map_builder_wizard.php: Style correction. Use
Pandora functions instead of SQL. Force elements to have an image by
removing "None".
* include/functions_config.php: Added to repository. New file to
manage config operations such as creation and updating values or
updating the whole config array. It even sets id_user so no more usage
of $_SESSION is required from outside.
* include/config_process.php: Cleanup and usage of functions in
functions_config.php. Updated build.
* index.php: Updated to changes in config_process.php,
* godmode/setup/setup.php: All config process has been moved to
config_process.php which uses functions in functions_config.php.
* include/styles/pandora.css: Styling for pre elements. New help
class.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1515 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
* include/functions_reporting.php: Rewrote get_agentmodule_sla with
faster calculations (count in SQL).
* include/functions_ui.php: Added print_moduletype_icon that prints the
whole (correct) icon including rollover text
* include/functions_db.php: Updated some documenation and removed
deprecated functions that are now in the auth parts. Renamed
return_status_agent_module to get_agentmodule_status
* operation/agentes/sla_view.php: Made it use the 2.0 SQL and HTML
functions
* godmode/agentes/configurar_agente.php: Fixed tab links
* operation/events/events.php, include/functions_visual_map.php,
operation/agentes/networkmap.php, operation/agentes/status_monitor.php,
operation/agentes/estado_grupo.php, operation/agentes/ver_agente.php,
operation/reporting/custom_reporting.php,
operation/reporting/reporting_viewer.php,
operation/reporting/reporting_xml.php, godmode/setup/links.php,
godmode/setup/setup.php, godmode/reporting/map_builder.php,
godmode/reporting/reporting_builder.php: Fixed renamed functions
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1497 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_menu.php: Added to repository. Functions for menu.
* operation/menu.php, godmode/menu.php: Added class to menu due to
changes in print_menu().
* general/main_menu.php: temp_print_menu() moved to functions_menu.php
* include/functions_themes.php: Added to repository. Implement
functions relative to themes (only CSS themes list at this moment).
* include/styles/pandora.css, include/styles/pandora_black.css,
include/styles/pandora_minimal.css, include/styles/pandora_red.css:
Added author, name and description comments to adopt to new
get_themes() interface.
* include/styles/pandora_width.css: Improved and make lighter by
simply rewrite some classes.
* include/functions.php: Added is_ajax().
* godmode/agentes/module_manager_editor.php,
godmode/alerts/alert_actions.php, godmode/alerts/alert_commands.php,
godmode/alerts/alert_compounds.php, godmode/alerts/alert_list.php,
godmode/alerts/alert_templates.php, godmode/groups/group_list.php,
godmode/reporting/map_builder.php,
godmode/reporting/reporting_builder.php,
operation/agentes/estado_agente.php, operation/agentes/ver_agente.php,
operation/events/events.php, operation/messages/message.php: Use
is_ajax()
* godmode/setup/setup.php: Use enterprise_include() instead of manual
checking. Use get_css_themes() to show the theme list.
* include/styles/common.css: Added to repository. Minimal styles to
make pandora works and common with all the CSS themes.
* include/functions_ui.php: Added common.css file.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1496 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/groups/configure_group.php: Removed javascript console.log
* godmode/reporting/map_builder.php: Fixed typo on file_exists()
* include/functions.php: Added format_integer_round().
* include/functions_db.php: Added fields to get_db_row(). Array values
to make "IN" SQL statements were in wrong function. Added support for
order in format_array_to_where_clause_sql().
* include/functions_events.php: Added get_event(). Fixed
print_event_type_img() which causes double printing in some cases.
* operation/events/events.php: Added get_event_tooltip AJAX operation.
Style correction by replacing $row with $event.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1495 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/reporting/map_builder.php: Use process_sql_update and
process_sql_insert instead of generating SQL sentences. Added
wz_jsgraphics to draw the lines. Do not draw any lines if no map is
selected.
* include/functions_db.php: Moved return_status_layout() to
functions_visual_map.php (and renamed to get_layout_status()). Allow
passing a string to get_db_all_rows_filter()
esteban@silviojose:~/work/src/pandora/pandora_console$ head -30 ChangeLog
2009-02-23 Esteban Sanchez <estebans@artica.es>
* godmode/reporting/map_builder.php: Use process_sql_update and
process_sql_insert instead of generating SQL sentences. Added
wz_jsgraphics to draw the lines. Do not draw any lines if no map is
selected.
* include/functions_db.php: Moved return_status_layout() to
functions_visual_map.php (and renamed to get_layout_status()). Allow
passing a string to get_db_all_rows_filter()
* include/functions_visual_map.php: Moved get_layout_status() from
functions_db.php. Added get_user_layouts().
* operation/visual_console/index.php: Use get_user_layouts() to fetch
layouts.
* operation/visual_console/render_view.php: Added wz_jsgraphics and
changed direct config manipulation with require_javascript_file().
* godmode/reporting/reporting_builder.php: Style correction.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1473 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_ui.php: Added require_css_file(),
require_javascript_file() and require_jquery_file() to add CSS,
javascript and jQuery files to the header easily without changing
config object. A path parameter is addded to allow the use on
enterprise code.
* include/functions_db.php: Added
get_db_value_filter(), get_db_all_rows_filter() and
process_sql_delete(). Fixed delete_agent() style and use these
functions. Added process_page_head() from functions_ui.php and changed
a bit the config javascript object part.
* include/functions_custom_graphs.php: Get results indexed by id on
get_user_custom_graphs().
* include/functions.php: Moved process_page_head to functions_ui.php.
* godmode/agentes/manage_delete.php: New interface to perform massive
agents deletion.
* godmode/menu.php: Added new option to massive agents deletion.
* general/main_menu.php, godmode/agentes/manage_config.php,
godmode/agentes/module_manager_editor.php,
godmode/agentes/planned_downtime.php,
godmode/alerts/alert_compounds.php, godmode/alerts/alert_list.php,
godmode/alerts/configure_alert_compound.php,
godmode/alerts/configure_alert_template.php,
godmode/reporting/map_builder.php, operation/agentes/networkmap.php,
operation/reporting/reporting_viewer.php,
operation/visual_console/render_view.php: Use new functions in include
CSS and javascript files.
* index.php: Bit of style when printing the header so the HTML can be
readed easily in a editor.
* include/javascript/pandora.js: Added a variable to determine the
enterprise directory.
* include/styles/pandora.css: Added style for manage_delete.php
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1467 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/alert_manager.php: Removed from repository. Agent
alerts manager is now done in alerts/alert_list.php
* godmode/agentes/manage_config.php, godmode/alerts/configure_alert,
godmode/agentes/configurar_agente.php: Use alerts/alert_list.php
instead of deleted agentes/alert_manager.php.
* godmode/alerts/alert_list.php: It can handle now a list of agents or
be included by configurar_agente. Now it's a single page to manage all
the alerts defined in agents.
* godmode/reporting/map_builder.php: Javascript style correction.
* include/javascript/jquery.pandora.controls.js: Added
pandoraSelectAgent which allows the loading of a module list from an
agent list.
* include/styles/pandora.css: Styles for alert_list.
* include/functions_agents.php: Added options to
get_agent_alerts_compound() and get_agent_alerts_simple() to add extra
user filtering.
* pandoradb.sql, pandoradb_migrate_20_to_21.sql,
include/functions_alerts.php: Actions in an alert module has now id or
they cannot be removed.
* include/functions_db.php: format_array_to_where_clause_sql() can now
get limit and offset values.
* include/functions_html.php: Removed select- prefix to print_select
elements because it was breaking javascript code. Needs more works on
that.
* operation/agentes/estado_agente.php: Added
get_agent_module_last_value AJAX operation.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1466 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql: treport_content, changed report type to string to allow
new report types without altering DB schema. Added id_agent for supporting
reports based on agent ids. Tplugin new field for plugin type in order to
support generic Nagios plugins.
* pandoradb_migrate_20_to_21.sql: Updated with last changes.
* module_manager_editor_common.php: Removed some ugly labels :-)
* reporting_builder.php: New report (Agent detailed and grouped
event/alerts). Added support to add descriptions in each block.
* plugin.php: Support for new plugin type option.
* config_process.php: Build update.
* functions.php: Updated new report type.
* functions_db.php: Added support for new report type.
* functions_reporting.php: Fixed problem with enterprise. Added new function
to support new reports.
* events.php: Support for grouping events. Fixed graph problem. Added quick
search link to event fulltext.
* reporting_viewer.php: Added support for adding descriptions in each block.
Also show new report type.
* fgraph.php: Fixed problem in event graph.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1464 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* general/header.php, general/footer.php: Made it comply with standards
* general/main_menu.php: Fixed some typo's.
* include/javascript/jquery.pandora.js: This was loading an extension
that has a separate file already
* include/functions.php: Added process_page_head and process_page_body
these are callback functions for ob_start and add functionality like
conditional loading and external scripts in the correct places. Also adds
override functionality to certain items (like refresh) from anywhere
* include/javascript/time_en.js: Added as a placeholder
* extensions/update_manager.php: Fixed some typos
* operation/agentes/exportdata.php, operation/agentes/networkmap.php,
operation/events/events.php, operation/extensions.php,
operation/incidents/incident_detail.php,
operation/reporting/reporting_viewer.php,
operation/visual_console/render_view.php,
godmode/agentes/alert_manager.php,
godmode/agentes/module_manager_editor.php,
godmode/agentes/planned_downtime.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/configure_alert_action.php,
godmode/groups/configure_group.php, godmode/reporting/graph_builder.php,
godmode/reporting/map_builder.php, godmode/reporting/reporting_builder.php
godmode/snmpconsole/snmp_alert.php: Changed javascript, css and jquery
loading to the new buffer callback handlers.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1436 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/reporting/map_builder.php: Fixed an error when getting
layout data on AJAX and any module was selected for the node.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1394 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* images/*: Added more icons and backgrouns for visual console.
* map_builder.php: Added support for warning image. Shows in preview. Fixed
grabbing image info if no file provided.
* functions_visualmap.php, functions_db.php: Added support for warning status
in the maps. Also fixed status propagation from linked maps on agent object.
* include/auth/mysql.php: Fixed typo when update password.
* pandoradb_migrate_20_to_21.php: Added some missing lines for tusuario
table (comments).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1393 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql, pandoradb_migrate_20_to_21.sql: Added id_agent field
to tlayout_data. It's needed to give support to nodes in visual
console that represents a whole agent which turns red if any module is
down.
* operation/visual_console/render_view.php: Removed refresh countdown
and selection because it's now done in the page header.
* include/functions_visual_map.php: Some fixes to support id_agent
field in tlayout_data. Also fixed the SQL to check if any module on an
agent is down.
* godmode/reporting/map_builder.php: Update and insert id_agent when
managing a node element.
* include/styles/pandora.css: Added a style to input image elements.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1378 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* ChangeLog: Fixed tabs. Removed some conflict markups and a bit of
style here and there.
* index.php, godmode/setup/setup.php, include/styles/menu.css,
operation/agentes/estado_agente.php,
operation/agentes/estado_monitores.php,
operation/agentes/estado_ultimopaquete.php,
include/functions.php: Tab and spaces style correction.
* godmode/reporting/map_builder.php: Use generic database functions
for the insert. Now a node can represent a whole agent, changing to
bad if any module has failed.
* include/config_process.php: Use generic databse functions for
inserts. Fixed an error when inserting loginhash_pwd token. Make the
token a bit more complicated by multiplying two numbers.
* include/functions_visual_map.php: Add support to agent nodes that
will turn to bad icon when any module fails.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1363 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/configurar_agente.php: Removed references to old
talerta and talerta_modulo tables.
* godmode/agentes/alert_manager_editor.php,
godmode/alerts/configure_alert.php: Removed from repository. It became
a useless file since the new alert system is implemented.
* godmode/agentes/manage_config.php: Style correction. Copy alerts
among agents using the new tables and structures.
* godmode/reporting/reporting_builder.php: Do not sort report time
period, it was not human readable if it was alphanumeric sorted.
* include/functions_agents.php: Fixed get_agent_alerts_simple() and
commented get_agent_alerts_combined() code since it's not implemented
yet.
* include/functions_db.php, include/functions_reporting.php: Fixed
function documentation format. Use structures, functions and tables of
the new alert system.
* operation/reporting/reporting_viewer.php: Style correction.
* pandoradb.sql: Removed default values on mediumtext fields because
it was causing a SQL warning.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1356 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
* 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
* 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
* 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/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
* 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
* operation/visual_console/render_view.php: Removed short tags.
Used new functions for login check. Removed unnecessary global
* operation/agentes/estado_alertas.php: Fixed a minor bug
* godmode/reporting/map_builder.php: Removed short tags
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1098 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb_data.sql: Removed data for locale, added for new
date string format.
* include/functions_html.php: Deletion of table properties
after calling it makes a bad render on several pages that uses
some properties for other things (width).
* include/functions_reporting.php: Added several checks to avoid
notices.
* include/config_process.php: Removed locale code. Added code for
new datetime string format.
* include/locale.class.php: Removed.
* include/functions.php: pandora_help() was not returning correct output.
Added format_datetime() function to render date / time strings in user
defined format.
* include/functions_db.php: Added check in get_monitors_down() to avoid
notice in void foreach.
* operation/incidents/incident_detail.php: Solved problem with attachments.
* operation/users/user.php: Solved problem with old help_lang[] array.
* operation/messages/message.php: Sime minor fixes and style improvements.
* operation/servers/view_server.php: Remove description.
* operation/servers/view_server_detail.php: Removed bad field retrieval
from database and added format_datetime().
* reporting/fgraph.php: Fixed small problem in monitors_health_pipe().
(changed parameters).
* general/footer.php: Updated use of new functions.
* general/header.php: Added blank spaces between icons and texts.
* godmode/setup/setup.php: Management of new string format for datetime.
* godmode/profiles/profile_list.php: Submit button now uses div instead
tables.
* godmode/reporting/reporting_builder.php: Added check before foreach() to
avoid notice warnings. Changed div for buttons.
* godmode/reporting/map_builder.php: Fixed div for submit button.
* godmode/servers/modificar_server.php: Fixed typo in SQL sentence.
Removed usage of not-used-now locale format functions. Alter legend to use
a plain-formatted table to avoid background color in legend.
* /en/help_date_format.php: Added help for date format string.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1023 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* AUTHORS: Added Evi to AUTHORS file.
* pandoradb.sql: MAJOR UPDATE and normalization of database
structure. trecon_task table has changed from previous 2.0 version.
* pandoradb_data.sql: Minimal updates.
* reporting_builder.php: Fixed bug #2035570 (Two weeks instead one
week in combo to select SLA period).
.
* manage_config_remote.php: Fixed bug #2032889: Show configurations
not present in disk and fail to copy them.
* manage_recontask.php: Show OS, and some stetical changes and code
optimization. Removed old code for assigned network servers and so on.
* manage_recontask_form.php: Removed old fields, added new fields, fixed
old bugs (create incident combo).
* config_inc.php: Code cleanup, updated variables.
* config_process.php: Updated version info.
* estado_ultimopaquete.php: Added refresh icon.
* view_server.php: Added missing link to view_server_detail.php for
recon servers. Somebody take it prisoner :-)
* view_server_detail.php: Code stype update, and some fixes and new
column information.
* modificar_agente.php, configurar_agente.php: Fixed use of $id_user.
* index.php: Temporal workaround to use $id_user as global. Need to fix.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1003 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* AUTHORS: Added myself.
* include/functions_extensions.php: Added to repository. Implements
extensions functions. Extensions are some kind of plugins to the
console to add functionallity in a modular way. More work and
documentation is needed.
* godmode/reporting/reporting_builder.php, include/functions.php,
operation/agentes/networkmap.php, operation/agentes/ver_agente.php:
Style correction.
* include/functions_db.php: Added load_lang_file() to load the
languages file (useful in extensions l10n). Style correction.
* index.php: Load extensions and call them in cases.
* godmode/menu.php, operation/menu.php: Style correction, code
cleanup. Added extension menu and submenus. Use of CSS more efficient.
* include/config_process.php: Added extensions support.
* extensions/, extensions/hello.php: Added to repository, extensions
dir and example.
* include/functions.php: Style correction.
* include/styles/op.css: Cleanup and rewritten the CSS hell it was
before.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@997 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/reporting/graph_builder.php,
operation/snmpconsole/snmp_alert.php: Applied patch from Kato
Atsushi.
* include/functions_reporting.php,
operation/reporting/reporting_viewer.php,
godmode/reporting/reporting_builder.php: Adopted to changes in
get_db_* functions.
* include/functions_db.php: Removed quotes sorrounding %d characters
in sprintf. Returned empty array on get_simple_alerts_in_agent() and
get_combined_alerts_in_agent(). Style correction. Return all fields on
get_db_all_fields_in_table().
* ChangeLog: Updated previous commit message format and date.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@964 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_console/godmode/db/*.php
-require_once for config might already have loaded
-Changed mysql_real_escape_string in favor of get_parameter_post
-Process the DELETE SQL queries through process_sql()
-Changed comprueba_login() for check_login()
-Adhered some things to preferred style
-Compounded SQL queries into joins, subqueries or functions
-Removed mysql_close() from db_purge.php since the select
after the delete wouldn't work anymore (database closed)
* pandora_console/godmode/reporting/reporting_builder.php
-Fixed a bug that was introduced when the SQL functions returned false
* pandora_console/include/functions_db.php
-Made foreach instead of while loops for simpler functions
-Fixed get_reports that failed since SQL function return false
-All SQL functions now return false in case of empty
-New SQL function process_sql that can handle DELETE. Returns
affected rows in case of a changing query or an array in case
it was a selecting query or false in case of error
* pandora_console/include/functions.php
-Simplified safe_input function
* pandora_console/index.php
-Updated SQL queries, style changes
* pandora_console/operation/agentes/*.php
-Style changes and updates to use check_login
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@962 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/reporting/map_builder.php: Check background existance to
avoid warnings.
* include/functions.php: Added Giga magnitude in format_for_graph(),
thansk to tono user in openideas.
* include/functions_db.php: Check database result on
return_status_layout(). Deleted "LIMIT 1" on get_previous_data() which
was causing SQL failures. Style correction.
* include/functions_reporting.php: Check database result on
get_agent_module_sla().
* operation/agentes/datos_agente.php: Removed useless code.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@961 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/reporting/reporting_builder.php,
godmode/reporting/map_builder.php: Check if all_agents were set to
avoid warning on foreach.
* include/functions_db.php: Fixed typo in return_status_layout().
Return false on get_db_all_rows_sql().
* include/functions_visual_map.php: Check layouts_data to avoid
warning on foreach. Removed ugly comments.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@958 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/styles/pandora_red.css: Updated.
* include/styles/pandora_black.css: New style with BLACK blackground.
* include/styles/pandora.css: Updated.
* include/functions_db.php: Added auto order combos and queries.
* include/functions_visual_map.php: Added overlap on down elements if
there are more than one in the same position (This could allow to cluster
elements to shown the down status first). Removed unused code.
* operation/events/events.php: Added tooltip for group name.
* operation/visual_console/render_view.php: Adjusted controls position.
* operation/agentes/status_monitor.php: Added status for unknown monitors.
Added some database search improvement.
* operation/agentes/sla_view.php: Sorted list of items.
* operation/agentes/ver_agente.php: Updated AJAX code for network map
detail view of an agent. Added alert data.
* operation/agentes/tactical.php: Removed 'fixed' styles, now using CSS.
* operation/agentes/networkmap.php: Added ransep and font selectors.
Added alert under yellow color. Minor improvements.
* operation/reporting/graph_viewer.php: Style update.
* operation/menu.php: Visual console maps sort by name
* images/background-li.gif: This sould replace <li> image.
* general/login_page.php: Added build version on develop mode.
* godmode/reporting/map_builder.php: Sorted lists, and shown module name
instead description.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@949 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_html.php, include/functions_db.php,
operation/agentes/ver_agente.php, operation/reporting/graph_viewer.php
operation/reporting/custom_reporting.php,
godmode/reporting/reporting_builder.php: Some issues with ordered list
resolved. Some strings are now converted to lowercase to have a real
ordered (alphabetical) list.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@947 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/reporting/graph_viewer.php: Added controls to view in the
new combined graphic mode (lines), and to change size to three pre-
defined sizes.
* reporting/fgraph.php: Stacked mode support was missing by unknown
reason. Reactivated. Added a mode to view combined graphs in "wired"
mode (lines only).
* godmode/agentes/modificar_agente.php: Disabled agents was not shown,
so was unable to activate again. Fixed.
* godmode/reporting/graph_builder.php: Added support for line mode.
Disabled agents don't shown in combo. Some other minor fixes. Changed
to show the name of the module, instead of description.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@942 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/reporting/graph_builder.php: Tab style correction.
* godmode/reporting/reporting_builder.php: Button label renamed.
* include/functions_db.php: Added functions from
functions_reporting.php.
* include/functions_reporting.php: Added missing documentation. Added
check to avoid division by zero on alert_reporting(). Avoid $return
flag as parameter in some functions.
* include/functions_reporting_pdf.php: Avoid $return flag when calling
some functions.
* operation/reporting/reporting_viewer.php: Do not use a span with
font-size when showing sla report.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@937 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/reporting/reporting_builder.php: Removed extra "#" in
javascript.
* godmode/reporting/map_builder.php: Changes to try working in
Internet Explorer (not completed yet, it's really hard).
* include/functions_db.php: Changed sever_status() It won't longer
return all the modules in pandora, since it's not need in this
function, also replaced a strange SQL which was using MAX() with a more
logical DISTINCT(). Style correction.
* include/styles/pandora.css: Removed #main width, so it's as wider as
the parent. Fixed menu_tab_fram and menu_tab_frame_view divs to the
new template, aligned to the right. Tab and blankspaces correction.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@930 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/styles/pandora.css: Added cursor style for inline help.
* include/help/en/help_manage_alerts.php: Added help page for Alert
management.
* include/help/en/help_snmpcommunity.php: Added help page for SNMP
community.
* include/help/en/help_map_builder.php: Added help page for map
builder.
* include/help/en/help_postprocess.php: Checked spelling.
* include/help/en/help_module_type.php: Added help page for Module
type.
* include/help/en/help_snmpoid.php: Added help page for SNMP OID.
* include/help/en/help_alerts.php: Added help page for Alert
configuration.
* include/help/en/help_module_definition.php: Added help page for
Module definition.
* include/functions.php: Added cursor style for inline help.
* include/languages/language_en.php: Added new strings.
* operation/agentes/estado_grupo.php: Fixed wrong link and text, it is
a group, not an agent.
* operation/agentes/tactical.php: Fixed bug for empty values.
* godmode/agentes/module_manager_editor_network.php,
godmode/agentes/module_manager_editor_wmi.php,
godmode/agentes/module_manager_editor_plugin.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/agentes/alert_manager_editor.php,
godmode/agentes/module_manager_editor_data.php,
godmode/agentes/agent_manager.php,
godmode/modules/manage_network_components_form.php,
godmode/reporting/map_builder.php, godmode/alerts/plugin.php,
godmode/alerts/configure_alert.php: Added suppot for inline help.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@909 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/groups/configure_group.php: Complete rewritten. Use Pandora
functions and added javascript support.
* godmode/groups/group_list.php: Rewrite to use Pandora functions.
Code cleanup.
* godmode/reporting/map_builder.php: Added width and height support to
graphics layout items type.
* godmode/reporting/reporting_builder.php: Style correction.
* operation/agentes/networkmap.php: Unused code cleanup. Style
correction. Use hex color codes instead of names, because graphviz was
complaining about them. Avoid a warning on graphviz about "color" in a
TD. Replaced lang_label with lang_string(). Show error if map could
not be generated.
* operation/reporting/reporting_viewer_pdf.php: Style correction and
code cleanup.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@907 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: Renamed get_db_all_rows_sqlfree() to
get_db_all_rows_sql(). Replaced all occurrences of old function name.
* general/logon_ok.php, godmode/reporting/reporting_builder.php,
operation/reporting/reporting_viewer.php, reporting/fgraph.php,
include/functions_reporting.php: Replaced all occurrences
ofget_db_all_rows_sqlfree() with get_db_all_rows_sql().
* include/config_process.php: Do not add a slash to attachment_store
config variable.
* include/functions.php: Style correction.
* operation/agentes/estado_agente.php: Reduced one indentation level
by using comprueba_login() propperly.
* include/javascript/jquery.cluetip.js: Added to repository. jQuery
plugin to add cute tips support.
* images/darrowdown.gif, images/darrowright.gif, images/darrowup.gif,
images/darrowleft.gif, images/wait.gif, include/styles/cluetip.css:
Added to repository. Cute tips styling.
* operation/agentes/networkmap.php: Added support to pretty tips to
each node of the network map. Use a variable to define the name of
Pandora FMS node (maybe it would be a nice idea to let the user
configure it). Added an extra check for file existance when generating
the graphic. Use pandora functions in some cases. Style correction.
* operation/agentes/ver_agente.php: Added AJAX support to get the
current status of an agent to suit in a tooltip.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@903 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* general/logon_ok.php: Use pandora functions to show last sessions.
* index.php: Tab and blankspaces style correction.
* godmode/reporting/map_builder.php: Fixed field name when inserting a
layout_data. Fixed group icon on list.
* operation/visual_console/render_view.php: Deleted firebug debug
which was causing not to work on browsers without that extension.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@900 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* ajax.php: Sed id_user in config array.
* godmode/menu.php, general/header.php, operation/menu.php: Replaced
lang_label with lang_string().
* general/logon_ok.php: Reduced one indentation level.
* godmode/agentes/agent_manager.php: Replaced lang_label with
lang_string(). Use pandora functions.
* include/functions_html.php, godmode/agentes/configurar_agente.php:
Tab and blankspaces style correction.
* godmode/reporting/map_builder.php: Complete rewritten to provide an
intuitive way of build the maps. It's cool, useful and very simple.
* godmode/reporting/reporting_builder.php: Deleted an output debug.
* godmode/setup/setup.php: Rewritten to use pandora functions. Added a
colorpicker for color settings.
* include/config.php: Reset pandora password. We must solve things
with this file...
* include/functions.php: Check if input is an array on safe_input().
Use filename as id in array returned by list_files().
* include/functions_db.php: Renamed return_coordinate_* functions.
Style correction.
* include/javascript/jquery.js: Updated to 1.2.6.
* include/javascript/jquery.ui.datepicker.js: Code minimized.
* include/javascript/pandora.js: Style correction.
* include/javascript/wz_jsgraphics.js: Added a class to the elements
of a line, so it can be modified using javascript.
* /include/styles/pandora.css: Added style to some tables dropdowns.
Added new styles relative to visual map editor.
* operation/reporting/reporting_viewer.php: Style correction. Added
jQuery UI.
* operation/visual_console/index.php: Use Pandora functions.
* operation/visual_console/render_view.php: Drawing the map is now on
functions_visual_map.php. Added a countdown if a refresh time is set.
Use pandora functions. Style correction.
* reporting/fgraph.php: Style correction. Use graphic_error() if
there's no data on grafico_modulo_sparse().
* images/trash.png: Added to repository. Image used on trash area on
visual map editor.
* images/console/background/africa.jpg,
images/console/background/asia.jpg,
images/console/background/europe.jpg,
images/console/background/north_america.jpg,
images/console/background/oceania.jpg,
images/console/background/shouth_america.jpg,
images/console/background/world.jpg: Added to repository. Useful and
cool map backgrounds.
* include/functions_visual_map.php: Added to repository. Implements
visual map functions like drawing the map.
* include/javascript/jquery.colorpicker.js: Added to repository.
Implements a color picker widget.
* /include/javascript/jquery.countdown.js: Added to repository.
Implements a countdown widget.
* include/javascript/jquery.ui.core.js: Added to repository. jQuery UI
core.
* include/javascript/jquery.ui.draggable.js: Added to repository.
jQuery draggable plugin.
* include/javascript/jquery.ui.droppable.js: Added to repository.
jQuery droppable plugin.
* include/javascript/pandora_visual_console.js: Added to repository.
Function useful to visual map interface.
* include/languages/countdown_*.js: Added to repository. Countdown
localization.
* include/languages/date_es_la.js, include/languages/date_gl.js,
include/languages/time_es_la.js, include/languages/time_gl.js: Added
to repository. Missing localizations.
* include/styles/color-picker.css: Added to repository. Colorpicker
style sheet.
* include/styles/countdown.css: Added to repository. Countdown style
sheet.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@899 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* functions_db.php: Fixed get_agents_in_group() to handle "All" group
properly and make it capable to get disabled agents or not. Style
correction. Fixed a typo in agent_add_address().
* godmode/reporting/reporting_builder.php: Use get_agents_in_group()
to get the agents in the group of the report, specially group "All".
Added agent and module column to report content list when applies.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@893 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* functions.php: Added documentation to all the functions in JavaDoc
format, which is an facto-standard. Deleted unused functions. Improved
the code of some functions. Tab and blankspaces style correction.
Replaced old lang_label with lang_string(). Some functions to print
selects were replaced with a functio to get an array with all the
possible values so the caller will use print_select() with them.
* godmode/agentes/agent_manager.php: Use print_select() instead of
deleted function.
* godmode/agentes/alert_manager_editor.php: Use print_select() instead
of deleted function. Use print_checkbox(). Style correction
* godmode/reporting/map_builder.php, operation/agentes/ver_agente.php,
operation/messages/message.php,
operation/reporting/reporting_viewer_pdf.php:
Replaced deleted functions with their equivalents.
* include/functions_db.php: Documented some functions, some work is
still required. Added get_reports() to get all the reports a user can
see. Deleted unused functions. Replaced deleted functions with their
equivalents. Added get_db_row_sql(), get_previous_data(). Fixed errors
when calculating average, max, min and sum values of an agent module.
* include/functions_reporting.php: Fixed errors when calculating SLA.
* operation/events/events.php: Tab and blankspaces correction.
Replaced form_priority with print_select(). Style correction.
* operation/reporting/custom_reporting.php: Show all the reports a
user can see. Use Pandora functions.
* operation/reporting/reporting_viewer.php: Show unknown label if SLA
can not be calculated.
* operation/snmpconsole/snmp_alert.php: Avoid an extra indentation
level by using check_login() properly. Tab and blankspaces correction.
* index.php, operation/users/user_edit.php: Adopted to renamed
function.
* godmode/db/db_sanity.php, reporting/fgraph.php: Style correction.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@881 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql: Drop foreign key of inexistent column.
* godmode/reporting/reporting_builder.php: Fixed order when deleting a
report content. Deleted id_agent reference from treport (local
inconsistence is the reason why I couldn't see it before), also
id_user insertion was failing. Added a link to view group on report
form. Added module column on report content list. Use id_user from
config object.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@872 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/reporting/reporting_builder.php: Changing the group of a
report is not allowed. It will imply removing all the report contents
that belongs to an agent of the group. Fixed an error on javascript
changing the group.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@870 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* ajax.php: Added to repository. AJAX interface for Pandora. A new
time is coming...
* pandoradb.sql: Added id_group to treport. A report is now assigned
to a group of agents. Changes in treport_content to add an order
field, drop sla fields and use an enum for the type. NOTE: This will
break all your current defined reports, update under your
responsabillity. Added table treport_content_sla_combined to define
SLAs in the SLA types reports.
* godmode/reporting/graph_builder.php: Use Pandora functions. Adde
javascript code to display the module icon when changing from the
dropdown menu.
* godmode/reporting/reporting_builder.php: Almost complet rewritten to
use Pandora HTML functions. Style correction.
* include/functions.php: Added new report types. Style correction.
* include/functions_db.php: Use Pandora database functions to get
simple values. Added functions get_agents_in_group(),
get_modules_in_agent(), get_simple_alerts_in_agent(),
get_combined_alerts_in_agent(), get_alerts_in_agent(),
get_monitor_downs_in_period(),
get_monitor_last_down_timestamp_in_period(),
get_alert_fires_in_period(),
get_alert_last_fire_timestamp_in_period(). Deleted debug output and
fixed calling to an inexistent function in
return_moduledata_sum_value().
* include/functions_html.php: Tab style correction. Thanks to Ramon
for the advice. Fixed some errors on print_table that was causing not
to work fine if rowclass or colspan was defined.
* include/functions_reporting.php: Adde date support to
return_module_SLA(), event_reporting(). Added alert_reporting(),
monitor_health_reporting(), general_group_reporting() and
agents_detailed_reporting() to implement new report types. Style
correction.
* include/javascript/pandora.js: Added html_entity_decode() function
to decode some AJAX results.
* javascript/jquery.js: Added to repository. jQuery version 1.2.4a
* include/javascript/jquery.timeentry.js: jQuery plugin to manage time
inputs.
* include/javascript/jquery.ui.datepicker.js: jQuery plugin to manage
date inputs in a dropdown calendar.
* include/languages/date_*.js, include/languages/time_*.js: Added to
repository. Translation of date and time strings for the new calendar
javascript support.
* include/languages/language_en.php: Added new strings relatives to
reports.
* include/languages/language_de.php,
include/languages/language_fr.php, include/languages/language_gl.php,
include/languages/language_pt_br.php: Fixed a variable name.
* godmode/groups/group_list.php: Avoid the use of an extra indentation
by returning if no success on comprueba_login().
* include/styles/pandora.css: Add some classes. Tab style correction.
* operation/agentes/ver_agente.php: Added AJAX support to agent
operations.
* operation/reporting/graph_viewer.php: Period dropdown selection
improved and printed with Pandora functions.
* operation/reporting/reporting_viewer.php: Massive rewritten.
Implemented date and time support, added new report types, use Pandora
functions...
* reporting/fgraph.php: Documentation fix. Added a new graphic to show
monitors health.
* godmode/agentes/agent_manager.php,
operation/reporting/custom_reporting.php: Style correction.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@869 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting_pdf.php: New functions for PDF reporting.
* include/functions_reporting.php: Fixed alert & event reporting.
* include/functions_db.php: Fixed function give_db_value. Also
label_string now don't show ][ characters.
* include/pdf: Added ezpdf class to generate PDF reports.
* operation/reporting/reporting_viewer.php,
operation/reporting/custom_reporting.php: A few fixes on
reporting (event viewer, combined graph...)
* operation/reporting/reporting_viewer_pdf.php: render
report on PDF.
* images/pdf.gif: PDF Icon.
* images/pandora_logo.jpg: JPG logo for PDF reports (header).
* godmode/agentes/module_manager_editor_plugin.php: Added
plugin port field (was missing).
* godmode/reporting/reporting_builder.php: Fixed problem
with event reporting type.
* godmode/alerts/plugin.php: Added plugin editor.
* godmode/menu.php: Added plugin editor to menu.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@816 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/reporting/reporting_viewer.php: Fixed small bug mixing min/max values of SLA render.
* godmode/reporting/reporting_builder.php: Fixed small bug deleting item from report, that
return user to another report.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@671 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb_data.sql: Added spanish (es_es) to available languages.
* include/languages/language_es_es.php: Added new strings for 1.3
* include/languages/extract_newlines.sh: (DEV) script to get new strings, comparing two
language files. It should be used only by translators and developers.
* include/languages/language_en.php: Updated english language with some missing (was encoded
in code) strings.
* godmode/setup/setup.php: Fix a bug when selecting special style "pandora_minimal". Added a
code check
* godmode/modules/manage_network_templates_form.php: Fixed some "inline" text labels.
* godmode/reporting/graph_builder.php: Fixed some "inline" texts.
THIS IS FINAL COMMIT BEFORE PANDORA FMS 1.3 BETA2
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@638 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: Added return_status_layout() function to fix
problem in Visual Console, now recursive status of linked layouts works (Xavi)
* install.php: Add more warnings about Database destroy (Dagget)
* operation/visual_console/render_view.php: Fixed code to get recursive
status of linked layouts (Xavi).
* operation/agentes/estado_alertas.php: Fixed layout of lights. Much
more visible for operators using large screens (Javier Carranza).
* operation/agentes/status_monitor.php: Fixed layout of lights. Much
more visible for operators using large screens (Javier Carranza).
* operation/agentes/estado_monitores.php: Fixed layout of lights. Much
more visible for operators using large screens (Javier Carranza).
* operation/agentes/estado_agente.php: Fixed layout of lights. Much
more visible for operators using large screens (Javier Carranza).
* images/pixel_*.png: Added for use in previous fixes.
* reporting/fgraph.php: Fixed problem with generic_pie without data.
* godmode/reporting/map_builder.php: Fixed problem (annoy feature) reported
in lists (I cannot remember the name, sorry guy). Now modules expands by default
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@575 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/reporting/*.php: Added code to show text
if no reporting defined.
* operation/menu.php: Added code to highlight custom reporting
if selected.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@533 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/languages/language_en.php: More strings.
* pandoradb_data.sql: Solved small problem with language strings.
* operation/visual_console/index.php: Added code to show
text if no layout defined.
* godmode/reporting/*builder.php: Added code to show text
if no reporting defined.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@532 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/languages/language_en.php: More strings.
* include/functions.php: entrada_limpia() should work fine in UTF8.
* operation/incidents/incident.php: Fixed many ugly things.
* operation/incidents/incident_detail.php: Fixed many ugly things.
* operation/incidents/incident_note.php: Fixed many ugly things.
* operation/events/event_statistics.php: Fixed graphs.
* operation/events/events.php: Fixed some legend position and header.
* operation/agentes/tactical.php: Fixed divzero error.
* operation/menu.php: SNMP Alert not shown to normal users anymore.
* reporting/Image/Canvas/GD.php: Added errorlevel setting to 0
(disable warnings for graphs).
* reporting/fgraph.php: MANY graphs migrated from jpgraph to peargraph.
* general/header.php: More width for header information.
* godmode/admin_access_logs.php: Added graph to header.
* godmode/reporting/map_builder.php: Removed debug stuff
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@531 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* images/op*.gif, god*.gif: deleted. Also deleted several other
GIF files.
* images/god*.png: New png files in godmode icons.
* include/sytles/god.css, op.css: Changed to new .png icons.
* help/*, general/error*.php: Changed old .gif logo to new .png logo.
* godmode/reporting/map_builder.php: Changed cancel.gif to cross.png.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@530 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/languages/language_en.php: More new tokens added.
* include/functions.php: Added function render time for alert time
limiters format (multiplier of 30).
* pandoradb.sql: Added support for alert time limiters format.
* operation/visual_console/render_view.php: Added support for
single lines a few fixes.
* images/console/background/globalmap.jpg: Nice world background.
* images/console/icons/computer.png: Added new icon for workstation.
* godmode/agentes/configurar_agente.ph,
godmode/agentes/alert_manager.php: Added support for alert time
limiters.
* godmode/reporting/map_builder.php: Tool to build/manage maps
elements. Finished!.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@529 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/languages/language_en.php: Just a few words added.
* pandoradb.sql: Added disable field for alerts.
* operation/agentes/estado_alertas.php: Show disabled alerts.
* godmode/agentes/configurar_agente.php,
godmode/agentes/alert_manager.php: Allow to disable individual
alerts.
* godmode/reporting/map_builder.php: First version of map
builder. It doesnt work yet, but has some features implemented.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@516 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/menu.php, operation/menu.php, include/pandora.css, include/op.css,
include/god.css: Updated with styles to avoid top and bottom border.
* godmode/groups/group_list.php, godmode/users/*.php, operation/users/*.php,
godmode/servers/*.php, operation/snmpconsole/snmp_alert.php,
godmode/reporting/map_builder.php, operation/messages/message.php:
Removed old raya style and changed to new style.
* include/languages/language_en.php: Changed some typing error.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@509 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/languages/language_en.php: New text
* include/functions.php: Now all functions to render timeframes
are using lang_label variable, some small adjustements and fixes.
* operation/agentes/status_monitor.php,
operation/agentes/estado_alertas.php,
operation/agentes/estado_ultimopaquete.php: A lot of many small
fixes and improvements on render output for all timestamp fields.
* operation/agentes/exportdata.php: Now predefine last 24
hours. Fixed a bad combo (too small).
* operation/agentes/estado_monitores.php
operation/reporting/reporting_viewer.php
operation/reporting/graph_viewer.php reporting/stat_win.php
general/logon_ok.php godmode/agentes/alert_manager.php
godmode/reporting/reporting_builder.php
godmode/reporting/graph_builder.php: A lot of many small fixes and
improvements on render output for all timestamp fields and in
MIN/MAX, small icons for module types, and things like that.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@504 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/languages/language_en.php: New strings
* include/functions_reporting.php: Added generic function to parse
information of all monitors / data checks for statistical usage in
several sections of console.
* pandoradb.sql: Updated field "timestamp" of tnews table.
* operation/agentes/estado_grupo.php: Better management of unknown
monitors, this should fix odd behaviour detected.
* operation/agentes/tactical.php: New tactical view.
* operation/menu.php: New option for group view and
tactical. Default option now is tactical view.
* images/backgrounds/background4.jpg: Updated background.
* reporting/Image/Graph/Plot/Odo.php: Fixed warning in original code.
* reporting/Image/Canvas/GD.php: Again playing with canvas options.
* reporting/fgraph.php: New odo graph.
* general/logon_ok.php: New welcome screen :-)
* godmode/setup/news.php: New news manager.
* godmode/reporting/map_builder.php: Future map/visual console
editor, not ready yet.
* godmode/menu.php: Updated a few options.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@498 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/styles/god.css: Added god51 (reporting).
* include/styles/pandora.css: Added h4 (for reporting).
* include/functions_db.php:
* include/functions_reporting.php: Reporting functions should be
here. Now is SLA, tomorrow will be more ;)
* include/functions.php: Added generic POST/GET parameter
management, and a few functions to mangle dates.
* pandoradb.sql: A few changes on treport_content table.
* operation/agentes/datos_agente.php: Added option to delete
individual data from here. Useful to purge bad data.
* operation/reporting/reporting_viewer.php: New report viewer on
HTML.
* operation/reporting/custom_reporting.php: Moved.
* operation/reporting/graph_builder.php: Moved to godmode
directory.
* operation/menu.php: Added few options and removed other
(Reporting)
* reporting/fgraph.php: Few changes to use graphs in reports
without titles.
* godmode/reporting: Added.
* godmode/reporting/reporting_builder.php: The Pandora FMS report
editor :-)
* godmode/reporting/graph_builder.php: Graph builder almost done,
only a few bugs to finish.
* godmode/menu.php: New reporting options in godmode menu.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@494 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f