* general/logon_ok.php: Style correction.
* include/languages/language_en.php: Added a couple of strings.
* include/styles/pandora.css: Container div has now variable width, so
Pandora console is wider now.
* include/config.php: Replaced default values from last commit. Change
homeurl variable, which now points to base url directory.
* include/config_process.php: Style correction. Use pandora functions
and indent the code properly.
* reporting/fgraph.php, include/functions.php, ajax.php: Use
require_once instead of require which speeds up the code parsing.
* index.php: Use require_once instead of require which speeds up the
code parsing. Add all GET and POST variables when refreshing a page.
Style corrections. Use $_SERVER instead getenv.
* include/functions_db.php: Avoid including config.php and use global
instead. Replaced some id_user with the respective variable holds in
config array. Replaced SQL syntax, removed an undeclared variable and
renamed to english in event_insert(). Renamed
return_moduledata_*_value() to get_agent_module_value_*(). Fixed an
error in the sumatory when the module is incremental.
* include/functions_reporting.php: Renamed return_module_SLA() to
get_agent_module_sla().
* include/functions_reporting_pdf.php: Tabs and blankspaces
correction. Style correction. Added new reports rendering, and fixed
images references. Removed old and deprecated functions.
* operation/agentes/networkmap.php: Style correction.
* operation/agentes/sla_view.php, reporting/stat_win.php: Use renamed
functions.
* operation/reporting/reporting_viewer.php: Table reports width are
now wider. Fixed some colspan problems. Generate custom graph ids
better. Added agent and module name to SLAs. Style correction in the
use of rowclass structure since now each content has its own table.
* operation/reporting/custom_reporting.php: Removed unused variable
for PDF reporting generation link.
* operation/reporting/reporting_viewer_pdf.php: Rewrite the code to
make style corrections and use pandora functions.
* operation/menu.php: Tabs and blankspaces correction.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@916 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/config_process.php: Default back to 1 week.
* estado_monitores.php: Removed SLA check from there. Too slow for a
main view.
* operation/agentes/ver_agente.php: Modified tabs to have SLA view.
* operation/agentes/sla_view.php: New SLA specific view, show all
automatic SLA coming from monitor data and add's individual items
from a SLA report defined for any module of this agent.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@915 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* config_process.php, pandoradb_data.sql, setup.php: Added global
"sla_period" for default Monitor SLA calculation (in sec).
* estado_monitores.php: By default now shows a SLA based on "sla_period"
period.
* networkmap.php: Fixed layout to use overlap in all modes using different
techniques, depending on graph type. Tested with different map layouts in
size, topology and dimension.
* agent_manager.php: Agent names are now show in order.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@910 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
* agent_manager.php: Agent names are now show in order.
* functions.php: Added a blank space in Help icon.
* tactical.php: Added a few links in tactical view.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@906 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/plugin/udp_nmap_plugin.sh: Added UDP port check plugin
that uses NMAP to check if UDP ports are open.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@904 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
* include/functions_db.php: Renamed variable from spanish.
* include/functions_reporting.php: Splitted
agents_detailed_reporting() into agent_detailed_reporting() so now
it's possible to get the report of a single agent. Also the table
width of this report was reduced a bit to fit well in the console.
* include/styles/pandora.css: Added style to agent reportings,
basically a border.
* operation/reporting/reporting_viewer.php: Separate each report into
its own table. Flush the result to improve speed. Style correction.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@902 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* images/console/background/africa.jpg,
images/console/background/asia.jpg,
images/console/background/europe.jpg,
images/console/background/north_america.jpg,
images/console/background/south_america.jpg,
images/console/background/world.jpg,
images/console/background/oceania.jpg: Resized to fit better in
Pandora default theme.
* operation/visual_console/index.php: Delete view column and use a
link in the name instead.
* operation/visual_console/render_view.php: Replaced id_usuario with
config variable.
* operation/menu.php: Changed default option in reporting menu.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@901 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
* include/functions_db.php: Fixed typo.
* include/languages/language_es_es.php: Too long string fixed.
* operation/agentes/tactical.php: Div0 fixed.
* godmode/agentes/agent_disk_conf_editor.php: Check should be done
after reading (when updating file, because binary reads don't be afected
by magic_quotes. This SHOULD fix the problem.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@898 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: Do not show alert tables if there's
no fired alerts in the alert report. Use get_agents_in_group() in
general_group_reporting() and agents_detailed_reporting().
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@897 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions.php,
agent_disk_conf_editor.php: FINALLY, fixed problem with slashes due
to MAGIC_QUOTES. Some special input will be processed with new
function "unsafe_string" that detect MAGIC_QUOTES status and run
stripslashes over string. Could be interesting to pass over some
"safe" inputs (on godmode section only), where possible conflicting
characters like "\" or "" can be passed as parameters.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@895 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql: Removed table "tquicksession". Not ever used.
* pandoradb_data.sql: Updated Scheme build.
* agent_manager.php: Removed a debug "echo".
* db_sanity.php: Added feature to delete id_module 0 modules.
* 3.png: Added image for AIX in network maps.
* functions_db.php: Fixed a div0 in return_moduledata_avg_value().
Added server_status() that calculate modules for each server kind,
and return a consistent LAG calculation.
* menu.php: Better Server view menu visualization.
* estado_ultimopaquete.php: Don't show disabled modules anymore.
* vier_server.php,
tactical.php: Removed old server status code, and used server_status()
function to get all data.
* graph_viewer.php: Added ACL checks for each graph element.
* fgraph.php: Negative values are now rendered in single graphs.
* pandoradb*.sql (1.3 to 2.0, and 1.3 to 2.0): Deleted, not working.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@894 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
* include/functions_reporting.php: Deleted reference to localhost. Align
times fired colum. Show priority string instead on alerts.
* include/functions.php: Show only one decimal by default on
format_numeric() and format_for_graph(). Cut alert name, agent name
and module name. Style correction.
* include/functions_db.php: Function give_moduleinterval() renamed to
get_module_interval() and fixed a typo with variable name. On
get_previous_data() get the data if it's not older than the interval.
Order datas on min, max and sum calculation by the timestamp. Fixed and
improved the sumatory calculation.
* operation/agentes/status_monitor.php: Ignore disabled modules.
* operation/reporting/reporting_viewer.php: Do not use format_for_graph(),
but format_numeric() instead.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@892 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* win32/windows/pandora_wmi.cc, win32/windows/pandora_wmi.h,
win32/modules/pandora_module.h,
win32/modules/pandora_module_logevent.cc,
win32/modules/pandora_data.cc, win32/modules/pandora_data.h,
win32/modules/pandora_module.cc: Data timestamps are taken from
the log file itself.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@888 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: Added documentation to all the functions
using javadoc style. Deleted unused and useless functions. Style
correction. User pandora database functions in functions that getss
simples values. Replace lang_label with lang_string().
* include/functions_reporting_pdf.php,
operation/reporting/reporting_viewer_pdf.php,
operation/visual_console/render_view.php,
include/functions_reporting.php: Replaced deprecated functions with
equivalents.
* godmode/agentes/agent_manager.php: Fixed a bug with parent dropdown
select.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@882 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
* pandoradbdata_13_to_20.sql: prototype. not functional.
* operation/events/export_csv.php: Event export to CSV. Support
passed filters.
* images/networkmap/*.png: Updated icons for network map.
* godmode/menu.php,
* godmode/db/db_sanity.php: New sanity tool for database in interactive
mode using console (ported from pandora_db.pl).
* reporting/fgraph.php: Added graphs for string data types. Fixed
event by agent/module graph for system events.
* general/logon_ok.php, tactica.php: Fixed a div0.
* godmode/agentes/manage_config.php: Several fixes, and added a new
option to mass-deletion of agents.
* godmode/agentes/agent_manager.php,
godmode/agentes/modificar_agente.php: Delete of remote configuration
when delete an agent and manually, by user.
* operation/servers/view_server_detail.php: Added refresh option and
fixed layout.
* status_monitor.php: Added new filter by state, most code rewritten.
Added pagination fixes, and corrected labels and legends.
* operation/agentes/networkmap.php: Several fixes and modification to
render small maps and huge (>200 agents) maps. This should be fine by
now. Need "Group/Section" drawing /by click into section line/.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@880 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_dbstress.pl: Added suppor for "text" moduletypes.
* pandora_recon: Now is multithreaded. Better management of already
registered IP's. Better status update. Some fixes (xprobe2 crash).
* Config.pm: Added support for recon_threads token.
* Tools.pm: added pandora_trash_ascii(), autocreate
set agent in learning mode automatically.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@879 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/styles/datepicker.css, include/styles/timeentry.css: Added
to repository, date and time style sheets.
* images/time-entry.png, images/down.png, images/up.png: Added to
repository. Images of up and down arrows and time selection.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@877 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* win32/modules/pandora_module_logevent.cc: Now returns "empty" data
when no data is available.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@876 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* config.pm: Added options for xprobe2, and autocreate.
* tools.pm: Added functions pandora_create_agent(), pandora_get_os(),
and pandora_event() (this has been moved from DB.pm).
* pandora_server.conf: Added options for xprobe2, autocreate and
autocreate_group.
* pandora_network: Added support for TCP scanning (not implemented in
console yet), parent detection using traceroute, OS fingerprinting with
xprobe2, event creation using central functions, and some optimizations.
* pandora_server: Added support for agent autocreation, OS detection from
the XML header, and event notification "new_agent" type.
* pandora_recon: First code to implement traceroute functionality
using Pureperl module. Added code for remote OS fingerprinting.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@874 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