* util/udp_client: Added to repository. Remote alert execution
script. To be used in "Command" section of the new alert system.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1399 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* win32/modules/pandora_module.h,
win32/modules/pandora_module_factory.cc,
win32/modules/pandora_module.cc: Added support for async data types.
* win32/modules/pandora_module_proc.cc: Removed unnecessary call
to Pandora_Wmi::runProgram.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1398 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_ui.php: print_alert_template_example() now
replaces also the value.
* godmode/alerts/configure_alert_template.php: Removed first render
example using javascript.
* godmode/alerts/alert_templates.php: Removed parameter replacement
since it's now done in the function.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1397 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* install.php: Added code to show current console URL in step 3.
Updated header. Spaces changed to tabs.
* include/functions_reporting.php: Give default value to several vars that
caused two notice errors. Updated header.
* include/functions_db.php: Solved notice error in search page that caused
not to show the user. It uses get_users() function from mysql.php.
ldap.php and dev.php define the same function, and uses different value, so they could give an error in the search page, NOT TESTED. Updated header.
* /extensions/update_manager/sql/update_manager.sql: Changed default text
value for description column, it was giving a SQL error.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1396 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
* include/auth/ldap.php: Finally fixed (hopefully) the last major bug
* godmode/extensions.php: Fixed something that prevented links from
generating
* extensions/update_manager/lib/libupdate_manager.php: Fixed proxy not
being filled in and giving error messages. Now the thing works.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1392 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/auth/mysql.php, include/auth/ldap.php,
operation/users/user_edit.php, godmode/users/configure_user.php,
godmode/users/user_list.php: Fixed some minor problems and annoyances
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1391 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb_migrate_20_to_21.sql, pandoradb.sql: Added user table updates
You'll have to do the alter tables before upgrading to the latest version
but it adds functionality and enforces unique usernames
* general/header.php: Don't rely on session variables
* include/auth/dev.php, include/functions_ui.php: Minimal changes to
comply with guidelines and new links
* include/auth/mysql.php, include/auth/ldap.php: Added functions and
removed bugs.
* include/functions_db.php: Added some functions for profile handling
* include/functions_html.php: Text input is now readonly instead of
disabled. This allows copying data from the textbox.
* include/styles/tip.css: Set min-width instead of fixed width for tip
that way we can have bigger tips without overflowing
* operation/reporting/reporting_xml.php: Added auth there as well
* operation/users/user.php, operation/users/user_edit.php,
operation/users/user_statistics.php: New auth functions, better look
* index.php: Process_user_contact sits in logon_db. Saves a query
* godmode/users/configure_user.php, godmode/users/user_list.php: New
auth functions, better look.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1390 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: Removed auth init because I fixed stat_win.php
* include/functions_html.php: Added border and onclick. Fixed double quote
* reporting/fgraph.php: Fixed some minor bugs
* reporting/stat_win.php: Added authentication there too
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1387 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/alert_manager.php: Fixed a little bug that avoids
showing the alert editor.
* godmode/alerts/alert_templates.php: Added the example text for
alert templates to the tooltip.
* godmode/alerts/configure_alert_template.php: Function
print_alert_template_example() moved to functions_ui.php. Little fix
when max or min values are not numerics.
* include/functions_ui.php: Added function
print_alert_template_example().
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1385 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/agentes/status_monitor.php: Added filter for modulegroup
* operation/agentes/estado_ultimopaquete.php: Removed link to edit.
* operation/agentes/estado_monitores.php: Fixed link to edit module
* godmode/agentes/configurar_agente.php: Edit tabs more tiny.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1383 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/alert_manager.php: Added support to disable or
enable an alert. Improved a bit the interface to make it cleaner
because the modules are a bit separated now.
* include/functions_alerts.php: Added support to disable or enable an
alert via set_alerts_agent_module_disable(). Added a flag to choose
wether to get disabled alerts on an agent or not.
* ChangeLog: Style correction again. Please, be careful.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1381 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
* godmode/agentes/alert_manager.php: Added the hability to delete
actions and alert (only when it has no actions).
* include/functions_alerts.php: Added delete_alert_agent_module() and
delete_alert_agent_module_action().
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1377 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/alerts/configure_alert_template.php,
include/functions_alerts.php: Added missing matches_value field on
creation and updating.
* ChangeLog: Added missing path to files on previous commit.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1376 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_server_upgrade: Script to upgrade to latest version
Pandora FMS server components / code.
* bin/panora_network: Banner on load are rendered.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1375 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb_migrate_20_to_21.sql: Fixes some problems.
* setup.php: Removed AD setup tokens.
* user_list.php: Link to user edition was wrong. Restored.
* functions_db.php: Support for new auth modules was missing
and fgraph fails to render graphs.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1374 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DB.pm: Take into account the alert option
'matches_value'.
* bin/pandora_server: Added support for forced alert execution.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1373 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* win32/ftp/pandora_ftp_client.cc,
win32/ftp/pandora_ftp_client.h,
win32/windows/pandora_wmi.cc,
win32/pandora_windows_service.h,
win32/pandora.h,
win32/udp_server/udp_server.cc,
win32/misc/pandora_file.cc,
win32/misc/pandora_file.h,
win32/ssh/pandora_ssh_client.cc,
win32/ssh/pandora_ssh_client.h,
win32/pandora_windows_service.cc: Removed some exceptions that made
the agent crash when the watchdog thread was running.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1371 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/alerts/configure_alert_template.php: Fixed an error when
setting max and min values on template creation.
* godmode/menu.php: Default action on "Manage alerts" is showing the
templates now.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1370 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* install.php: Added ldap module dep.
* include/functions_reporting.php, operation/agentes/status_monitor.php
operation/agentes/tactical.php, general/logon_ok.php: New filter options for
warning/critical, removed old data stats and improved filters in module view
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1369 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* Config.pm: Now works without breaking the server :-). Show verbose info
only when verbosity enabled (>4).
* pandora_server: more issues with verbosity level. Fixed a typo on
management of async_proc moduletypes. Freeing a hash reference on keepalive
solves a memleak.
* DB.pm: Converting to the same float when comparing two numbers.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1368 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_visual_map.php: Fixed a notice when the node looks
for any monitor down in an agent.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1367 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
* include/javascript/jquery.js: Downgraded to 1.2. It was causing some
errors in visual map edition.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1361 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* index.php: Added support for external authentication, based on a HASH.
* pandoradb.sql: New tables for local templates.
* pandoradb_migrate*: Updated script.
* godmode/agentes/agent_manager.php: Fixed field for inventory server.
* module_manager_editor.php: Fixed snmp community for WMI modules.
* module_manager_editor_*.php: New fields in editor (War/Crit, FF).
* config_process.php,
godmode/setup/setup.php: Added new option for hash auth.
* functions.php: Added again (please don't delete it) function to remove
quotes on automatic protection (magicquotes).
* menu.css: Added icon to inventory server option in the menu.
* estado_monitores.php: Fix module edit link, better data render on tooltip
* estado_ultimopaquete.php: Fix module edit link.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1360 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_wmi, pandora_plugin, pandora_recon: Updates merged from
2.0 version. Different small fixes and improved performance.
* DB.pm: Support for fixes in wmi/plugin server. Call of enterprise
function pandora_mcast_change_report() is done now on real status change
code not in alert. Added update_on_error() function to update status table
when remote modules cannot init (update last_try field to avoid unnecesary
attempts).
* Config.pm: Build update, some stuff cleaned. Server startup info is show
only when verbose level is activated.
* pandora_network: Startup messages are not shown if verbose < 5.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1358 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/alert_manager.php: Removed effect on AJAX tip.
* include/functions.php: Removed deprecated function.
* operation/agentes/estado_grupo.php, pandoradb_data.sql,
operation/agentes/ver_agente.php, reporting/fgraph.php,
operation/agentes/networkmap.php: Replaced references to old alert
system with new one.
* operation/agentes/networkmap.php: Replaced references to old alert
system with new one. Removed effect on AJAX tip.
* godmode/snmpconsole/snmp_alert.php: Style correction.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1357 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
* godmode/alerts/configure_alert_template.php: Some aesthetic fixes and
non-init variable fixes
* include/functions_db.php: Added get_moduletypes since I needed it and
fixed the documentation tags for 2 functions. Reparsed all documentation
* include/functions_reporting.php: Fixed get_group_stats to work faster
and now correctly returns the status even if data modules report 0.00
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1355 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* index.php: Updated year in header. Solved small notice error.
* operation/agentes/alers_status.php: Use h2 instead h3 on title. Some
separation should be between code color and text.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1353 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql: Added new field to talert_templates to specify if the
alert should fire when on match or mismatch of the values.
* general/header.php: Fixed the columns width. Added a control when
the autorefresh is clicked so the user can select the refresh time. A
countdown is also shown when the page is set to refresh.
* godmode/alerts/configure_alert_template.php: Control the new flag on
templates. Added an explanation to explain when the alert is going to
fire.
* include/javascript/jquery.js: Updated to v1.3. It promise to be
quicker in a lot of situations.
* include/javascript/jquery.countdown.js: Updated to latest version.
* include/styles/pandora.css: Fixed duplicated input.ok. Style
correction. Added invisible class and a style for alert templates
page.
* include/functions_alerts.php: Fixed a notice error on
clean_alert_template_values().
* operation/visual_console/render_view.php: Removed jquery inclusion
because it's already done in the index page.
* general/main_menu.php: Do not add refr if it's zero.
* index.php: Avoid the recursive addition of 1=1 when autorefresh is
set.
* pandoradb_migrate_20_to_21.sql: Added new fields on the tables.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1350 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DB.pm: Partially rewrote the alert core to support the
new DB schemas. Compound alerts have been temporarily disabled.
Rewrote alert macro substitution code.
* lib/PandoraFMS/Tools.pm,
bin/pandora_snmpconsole: Aesthetic changes to enterprise code.
* lib/PandoraFMS/Config.pm,
bin/pandora_network: Added support for UDP multicast status reports
(enterprise version).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1347 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/alerts/configure_alert_template.php: The steps are now
available as soon as the alert is created.
* include/functions_alerts.php: Added validate_alert_agent_module().
* include/functions_db.php: Removed deprecated
process_alerts_validate(). Improved process_sql_update() to add
a row selection parameter, the documentation and a bit fix when
joining the fields with a coma.
* operation/agentes/alerts_status.php: Use new functions to validate
an alert.
* operation/agentes/ver_agente.php: Removed validation alert codes
since it doesn't belong here.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1346 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/alerts/configure_alert_template.php: Max and min alerts
were ignored.
* include/functions_alerts.php: Ensure the max and min alert values
order.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1345 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f