* include/functions_reporting.php: Fixed an error when calculating
working data modules that affects to strings modules. Thanks to Glen
Eustace for the report and fix.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1243 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/servers/view_server.php: Small language fix
* operation/agentes/tactical.php: Rewrite using new functions and
cleaner html. More understandable and outsourced calculations to
get_group_stats
* include/styles/pandora.css: Clean up CSS deprecated in other files
* include/javascript/pandora.js: Noticed a small style difference
* include/help/en/help_serverlag.php: Hopefully this makes server lag
somewhat more understandable (I didn't know what it was)
* include/functions_reporting.php: Renamed general_stats to
get_group_stats and made it accept arrays. Also added ACL check and
an easier output format. All calculations are now done here.
* include/functions_html.php: print_table would always reset
cellpaddings and cellspacing from 0 to 4. Fixed it
* include/functions_db.php: Deprecated server_status for
get_server_info. Added get_server_info which accepts single values or
arrays of servers to be checked.
* include/functions.php: Removed clean_output_breaks. Use built-in
function nl2br() for that instead. They're faster and cross-platform
* general/logon_ok.php: Same as tactical.php (both had to be updated)
* ChangeLog: Somebody started using spaces instead of tabs?
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1241 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf: Added mta_user parameter who defines
mail address used for alerts.
* pandora_ctl: General control script to start/stop Pandora FMS
daemons.
* util/SLES10/*: Alternative start/stop daemons for SUSE and
other systems that don't work fine with standard scripts.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1239 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/incidents/incident.php
operation/incidents/incident_detail.php: Fixed some bugs in
incident management that makes unusable the incident sytem
Thanks to Esben for reporting this bug that was introduced
only few days before closing 2.0 version :(
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1233 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/funcions_db.php: Reference to inexistant table
tagent_data_image has been deleted and fixed notice.
* install.php: Fixed default var for homeurl.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1232 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
* include/functions_db.php: Style corrections ins give_acl(). Show
nothing on sql_error_handler based on error_reporting() level.
* ChangeLog: Fixed my previous commit date.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1223 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/snmpconsole/snmp_View.php: Added a span with title over the
time comp since some people want to know what time something went down.
This should maybe be moved into a print_ function
* operation/agentes/estado_generalagente.php: ACL check and style
changes. Use of new functions
* include/functions_db.php: dame_numero_datos - added inc and string
can also filter on agent now. Renamed give_agent_address_from_list to
get_agent_addresses. get_agent_addresses now returns an array with ips
Changed give_agent_address to get_agent_address
* godmode/agentes/manage_config.php,
godmode/agentes/configurar_agente.php: Renamed functions
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1220 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: Added sql_error_handler() to show SQL
errors. Improved SQL error messages in process_sql() so it shows now
the failing sentence, the file and the line of the call.
* index.php: Moved load_extensions() call after enterprise
instalation so enterprise extensions are installed properly.
* godmode/profiles/profile_list.php: HTML tags nesting fixed.
* ChangeLog: Fixed previous commit message style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1219 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* bin/pandora_snmpconsole: Added support for extended trap information
(enterprise version).
* bin/pandora_network: Updated function header.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1215 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Config.pm,
lib/PandoraFMS/DB.pm,
lib/PandoraFMS/Tools.pm,
bin/pandora_snmpconsole: Added support for enterprise version
features.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1214 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DB.pm: Some people reports problems with
server stop detection. This could help, because has optimized
way to detect servers, but is not a bugfix because I cannot
reproduce the problem.
* Config.pm: Updated version (2.1)
* server/Launcher scripts: Updated version (2.1)
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1205 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* win32/installer/pandora_2.0.mpi: Updated installer to let the user start
the service during installation.
* win32/installer/scripts/*.bat: Updated bat files with new service name.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1203 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/modules/manage_network_components.php: Replaced parameters
manual check using entrada_limpia with get_parameter(). It was causing
PHP notices and was not working fine.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1197 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/snmpconsole/snmp_alert.php: Fixed an error that doesn't
allow to show some fields when editing an alert. It's done using
javascript, but a PHP version might be better. Style correction.
* include/functions_db.php: Added get_agent_with_ip().
* operation/snmpconsole/snmp_view.php: Use get_agent_with_ip() since
using get_db_row() is not enough for agents with many addresses.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1193 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/agentes/estado_agente.php: Use print_select() to show the
filter group list.
* operation/users/user.php: Fixed a typo in a string.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1192 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/snmpconsole/snmp_view.php: Style update and uses new
functions. Also uses (much) less SQL queries now. Fixed some bugs and
if an IP matches an existing agent, it gets checked against ACL
* operation/snmpconole/snmp_alert.php: Added alert priority colors for
feature request #2166257
* godmode/agentes/configurar_agente.php: Added a get_parameter for IP
addresses so creating an agent with predefined IP works. Used in SNMP
view to add agents with unknown IP. To use, pass direccion in request
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1186 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/functions.php: Improved human_time_comparation() so it won't
return nothing like "1.7 minutes". Make enterprise_include use
ENTERPRISE_DIR. Style correction.
* operation/agentes/estado_agente.php: Uses generic functions. Reduce
one indent level by using continue on a loop. Fixes status flag to
check if agent is down with no monitors. Show the exact date on last
contact column title. Style corrections.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1179 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/profiles/profile_list.php: Rewritten be more consistent and
use generic functions for HTML output. Also a bug when creating a
profile is fixed.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1178 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb_data.sql, pandora_db.sql: id_npc was rendered unnecessary
with the last rewrite of the profiles page and id_np should really be
the key since that what we're selecting/sorting on.
* operation/events/events.php: Fixed Bug #2174790 and fixed the
brackets being in all the wrong places. Also added checks so that only
admins can retrieve system events
* include/functions_db.php: Added an option to get_user_groups so that
other privileges than AR can be retrieved.
* operation/visual_console/index.php: Added ACL check. Security issue
reported in bug #2174790
* operation/menu.php: Added ACL check. Security issue reported in bug
#2174790
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1177 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/agentes/estado_agente.php: Checking if there are monitors
down has more priority than check if there are no data.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1176 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/agentes/estado_agente.php: Fixed agent status color
column. It was showing incorrect values in some cases like without
data or monitors.
* ChangeLog: Fixed Jorge previous commit style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1175 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DB.pm: Fixed a strange bug that was causing to
generate events of servers going down, the solution was to update
own keepalive before checking others server status. Tab style
correction, replacing blankspaces with tab.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1173 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/agentes/estado_agente.php, operation/agentes/bulbs.php:
fixed bug, blue monitor means it has no monitors, while gray means
it has no data.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1172 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f