* bin/pandora_server: Disabled downtime server code until
we can review changes in db structure from new code / console.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1004 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
* bin/pandora_recon: New functional recon server. It implements
different recon tasks based on OS type. Uses a production/consumer
thread model, detec OS typew and assign automatically network profiles
(including new WMI components) and WMI, Plugin, Network and Prediction
servers, taken the first master server that could found. Uses xprobe2
external tool to detect remote OS.
* Makefile.PL: Added new dependencies (HTML::Entities), and new
binary tool for controlled time executing (pandora_exec), used now
by pandora_wmi and pandora_plugin.
* Config.pm: Fixed problem parsing xprobe2 command.
* DB.pm: Functions pandora_create_agent() and pandora_event() moved
from Tools.pm to here. Removed some old DEBUG messages.
* Tools.pm: Moved pandora_create_agent() and pandora_event() to DB.pm
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1002 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* index.php: Set id_user in config array when login. This fixes errors
and notices on login screen.
* operation/menu.php: Replaced use of id_user on SESSION array with
config.
* general/logon_ok.php: Replaced lang_label with lang_string(). Use
id_user on config array. Style correction and code cleanup.
* godmode/extensions.php: It was showing main functions of extensions
instead of godmode ones.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1000 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* extensions/hello.php: Fixed old function name. Activate the
extension by default. Style correction.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@999 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/extensions.php, operation/extensions.php: Added to
repository. Extensions interface to operation and godmode modes.
* images/extensions.png: Added to repository. Extensions icon for the
menu.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@998 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
* bin/pandora_wmi: Removed the timeout mechanism.
* bin/pandora_plugin: Removed the timeout mechanism. pandora_exec is
used instead.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@996 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/help/en/help_plugin_definition.php: New help page for
plugin register section.
* include/javascript/pandora.js: Help window now shows scrollbar.
* general/pandora_help.php: Better layout for help system.
* godmode/servers/plugin.php: Fixed position / menu issues and other
menor bugs in plugin editor.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@993 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* win32/pandora_windows_service.cc: Small fixes.
* win32/modules/pandora_module.cc: time() and localtime() are used
instead of GetSystemTime().
* win32/pandora.h: Changed all instances of "Pandora" to
"Pandora FMS".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@989 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql: Some changes in structure for new export server. Removed
and extra comma in tplanned_downtime.
* pandoradb_data.sql: Deleted some stuff from Gigabit module templates,
too much.
* logon_ok.php: Header update.
* menu.php: Plugin editor moved under server section.
* modificar_agente.php: Added icon to agent config editor from manage
agents view.
* links.php: Some code cleanup.
* pandora.ico: New .ICO file for web, this will be official one for
2.0 version.
* functions_db.php: Fixed a problem in audit_db() where parameters
was not properly cleaned and with ' chars this makes an SQL error.
Fixed BUG #2032885, in function get_monitors_in_agent () where a
bad SQL forced an error in report.
* estado_agente.php, estado_generalagente.php: Added link to group
view from group icon.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@988 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql: Updated schema for tplanned_downtime
* include/functions_db.php: Small bug that gave a warning in case there were no events for an agent
* godmode/agentes/planned_downtime.php: You can now create planned downtime schedules. This
won't work yet as the server doesn't support it yet. So I didn't integrate it in the menu either, but it can be.
* general/links_menu.php: The first link will also show up. It wasn't showing up because the mysql function
that was used moved the internal pointer ahead while checking if it existed. Used new functions.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@987 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* win32/installer/pandora.ico: The new official 2.0 icon.
* win32/bin/Pandora FMS Windows Agent 2.0 (Beta1)-Setup.exe:
Probably not final, but this seems to work for us.
* win32/bin/PandoraAgent.exe: Latest binary for agent.
* win32/bin/pandora_agent.conf: A more complex sample file.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@986 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DB.pm: FIXED a stupid bug that makes impossible to
process any data :(. This bug was introducted by me at 25 July.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@983 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* functions_db.php: Style changes, updated process_sql so it can return other
interesting stuff on INSERT. No functions have direct mysql functions anymore
* logon_ok.php: Style changes. Made it use the DB functions
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@981 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* events_marquee.php: I forget to commit this file in my prev.
commit. This is a new file because I lost it :-(
* planned_downtime.php: It is LOST :(. I need to code from scratch,
probably this stuff don't see the light in weeks. Server code works.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@978 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* general/error_noconfig.php, error_install.php, error_perms.php: Updated headers, solved english language typos, deleted includes not used. Better coding style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@975 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_network: Added a defined() check for tcp_send string.
* pandora_server: Added call to function pandora_planned_downtime().
This implements planned downtimes on data server only.
* DB.pm: Small optimization on bad data: pandora_writedata and
pandora_writestate return -1 on bad values and skip processing data.
More checks on undefined data (pandora_writestate).
Added code for planned downtimes, in function pandora_planned_downtime().
Patch for adding [RECOVER] on f2/f3 if blank. Submitted by Kato Atsushi
Now Monitor down has priority Warning and Monitor UP priority normal.
* pandora_*servers*: Added inmediatly status change in tserver table on
controlled shutdown, this could be a ordered shutdown, a kill or a CTRL-C
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@974 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql: Added new tables for planned downtimes.
* godmode/menu.php: Added entry for manage downtimes.
* group_list.php: Stetic changes in table.
* modificar_server.php: Fixed timestamp render for start/update
timestamp of each server.
* functions.php: Minimal estetic changes in help function.
* functions_db.php: Change header (Flexible <- Free)
* functions_html.php: Now select admits multiselect option. Default
class for table render is now databox not databox_color.
* AUTHORS: Update list of authors and make a reference to contributors.
* function_reporting.php: Header change, updated datetime string format.
* language_en.php, language_es_es.php: Changed FREE for Flexible.
* pandora.css: Minimal changes. Update color of Monitor count in tactical.
* menu.php: Added some new event options: CSV Export, RSS and new marquee
event visualizer.
* estado_ultimopaquete.php: Header update.
* tactical.php: Added link to data module alerts.
* ver_agente.php: Fixed a problem in ajax code that was rending bad
count of down monitors. Using boolean comparation on result of function
get_db_sql(). This kind problem could be in more lines of code.
* events.php: New quicklinks to RSS, CSV and Marquee in event viewer.
* export_csv.php, events_rss.php: Fixed duped call to function includes.
* graph_viewer.php: I hope this fix FINALLY the annoying bug of graph
type selector.
* visual_console/index.php: Updated header.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@973 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* Makefile.PL: Removed reference to export_server.
* DB.pm: Fixed bug that causes to do not store string data. Added checks
for aviod null text and skip max/min checks for string types.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@972 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_console/operation/messages/message.php: Rewrote large parts.
Simplified functions. Fixed a bug where group messages sent a message
only to one member of a group. Also fixed a bug where it only displayed
your own group(s), right now it will display all users and groups a user
has rights to (using get_user_groups ()) so that you can send messages
to everyone. - This commit is only for adherence to style
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@970 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_console/operation/messages/message.php: Rewrote large parts.
Simplified functions. Fixed a bug where group messages sent a message
only to one member of a group. Also fixed a bug where it only displayed
your own group(s), right now it will display all users and groups a user
has rights to (using get_user_groups ()) so that you can send messages
to everyone.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@969 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb_data.sql: Some changes for types not implemented in 2.0
* module_manager_editor.php: Added help, more space in textareas for
tcp recv/send. Better layout.
* help.png: Smaller icon.
* view_server.php: Fixed problem with lastupdate render. This was using
and incorrect function to render data
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@968 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_network: Minimal style changes. Added status change in
tserver table on controlled shutdown.
* pandora_server: Added status change in tserver table on controlled
shutdown. Minimal changes and optimizations. Recheck for bad XML is
adjusted to 3 instead 10.Fixed problem with "blank" agent names. Added
support for async types (data, proc and string).
* config.pm: Added support for new config token: max_log_size. This
stablish a max log filesize.
* DB.pm: Added support for postprocess (as simple multiplier value).
Fixed problem with continuous update of laststart in server keepalive.
Updated also several logger priorities (raise them).
* Config.pm: pandora_get_os() fixed for void OSes. Logger() implements
a file-rotation system with a maximum in bytes for PandoraFMS log file.
* pandora_server.conf: Updated with new options and removed some from 1.3.1
* pandora_export: Deleted skeleton file por export server.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@967 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* win32/modules/pandora_module.cc: Fixed a bug that made the agent
crash when a module returned data of the wrong type.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@966 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_console/include/functions_reporting.php: Latest commit forgot a semicolon after return which resulted in an error on the front page. Fixed.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@965 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/general/logon_ok.php: Fixed bug, the latest update failed in the middle (SourceForge SVN problems) and didn't include this file.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@963 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
* linux/pandora_agent.conf: Removed enabled debug by
default. Debug set to 0.
* ChangeLog: Minor style correction.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@959 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/functions_db.php: Removed debug output to check use of
deprecated function. Please don't add message like this since there
are many people who use Pandora trunk and may find strange messages
like that.
* operation/agentes/networkmap.php: Removed warning message if file
doesn't exists on checking cache system.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@957 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f