* src/pandroid/agent/PandroidAgentListener.java: Moved the
loading of the config values to an asynctask to force that updating
the values and then contacting the server and creating the
notification happens after all the config values have been loaded.
* src/pandroid/agent/Status.java: On resuming the app
the loading of the last values has been moved to an asynctask to force
updating the ui to wait for all the values to be loaded.
* src/pandroid/agent/*.java: Applied the Correct Indentation function
of eclipse to all code.
* res/layout/*.xml: Applied the Correct Indentation function
of eclipse to all code.
* Pandroid Agent v3.0_iso-8859-1.apk: Updated to latest version.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8127 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Tools.pm: Merged from 4.0 branch. Directly call
snmptranslate, since SNMP::translateObj does not seem to load
enterprise MIBs.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8123 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Fixes crash on inverse resolution for
GIS information on openstreetmaps. This was due function was moved from
Dataserver to Core.pm and include for LWP::Simple not :(
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8121 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DB.pm,
util/pandora_db.pl: Several improvements. Added support for detecting
other running instances of the script.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8110 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: Added to Server performance
box in tactical view total events statistic for bug #2042
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8109 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_config.php: Set a default value to
enable_metaconsole_netflow config token to avoid metaconsole
ugly notice for bug #2210
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8108 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/help/en/help_module_interval_factor.php
include/help/es/help_module_interval_factor.php
godmode/agentes/module_manager_editor_common.php: Change the
control of interval module when is data module from extended
from time to normal box with a different help tip explaining
that this control is not setted in seconds.
* operation/integria_incidents/incident.php
images/book_edit.png
general/pandora_help.php
godmode/setup/setup_general.php: Aesthetic fixes
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8103 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* mobile/index.php, mobile/include/user.class.php,
include/functions.php: Fixed i18n failure in the mobile console.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8098 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DataServer.pm: Add a default module_interval.
* util/pandora_db.pl: Moved data deletion code to a generic function.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8097 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/agent_manager.php: improved the source code style.
* godmode/agentes/configurar_agente.php: fixed the agents address
with white spaces in the both sides.
Fixes: #2171
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8094 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* src/pandroid/agent/PandroidAgentListener.java: Changed gps module
to update coordinates after a time of "interval" AND "15 metres" if
no change then uses lastKnownLocation.
* Pandroid Agent v3.0_iso-8859-1.apk: Updated to latest version.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8093 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/styles/pandora.css: Fix bad reposition
action of bar graphs values in pure mode
* include/graphs/flot/pandora.flot.js: Fix bad
reposition action of bar graphs values when resize
container
* include/functions_graph.php: Fix the graph of
database info of agents with most modules. Now
avoid pending delete and the data is showed properly
* operation/agentes/estado_generalagente.php: Fix a
missing change of agent view layout fix
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8087 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/modules/manage_network_components.php: Added
type (network/plugin/wmi) icon near the other type
(numeric/string/proc...) in the Type column in
network components list for bug #3609655
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8086 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/styles/pandora.css
include/functions_groups.php: Fix a little the
groups view style
* operation/agentes/estado_generalagente.php: Fix the
layout of the agent main view table when url addres is
setted for bug #3609651
* general/header.php: Remove completly the link of
the autorefresh button from the header when is disabled
to avoid confusing
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8085 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/styles/pandora.css
include/functions_ui.php: Fixed various styles of
header icons and tabs
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8084 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* extensions/update_manager/update_pandora.php: cleaned source code
style.
* include/functions_events.php,
operation/events/events.build_table.php: show columns by group in
metaconsole.
Fixes: #3609374
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8083 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/php_to_js_values.php: Added a separated file
to store from php interesting values to ve retrieved
from javascript
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8079 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions.php
include/javascript/pandora_modules.js
include/javascript/pandora.js
index.php
ajax.php: Added a simple system of interchange of
data from php to javascript with invisible divs.
Fixed ajax call of server plugin components macros
for bug 3612145
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8078 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* layout/spinner.xml: Changed spinnner text color to green.
* Pandroid Agent v3.0_iso-8859-1.apk: Updated to latest version.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8077 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* AndroidMainfest.xml: Set theme to themes.xml, moved permissions
and uses to top of file.
* layout/spinner.xml: Theme for spinner that sets text
color to grey.
* values/themes.xml: For setting theme on devices < sdk 11
(android 3.0)
* values-v11/themes.xml: For setting theme on device above
sdk 11
* src/pandroid/agent/Setup.java: Set spinnner to use new
theme for setting text color
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8076 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* assets/database/pandroid.zip: Removed as no longer needed
* assets/libs/android-sqlite-asset-helper: Removed as no longer
needed
* layout/setup.xml: Disabled autocorrect on server address
and agent name text edits. Changed all dip to sp. Changed order
of some objects
* layout/setupnosim.xml: Disabled autocorrect on server address
and agent name text edits. Changed all dip to sp. Changed order
of some objects
* src/pandroid/agent/Core.java: Reordered lots of code
to improve legibility.
* src/pandroid/agent/DataBaseHandler.java: Removed as
no longer needed
* src/pandroid/agent/DataBaseHandler.java: Removed as
no longer needed
* src/pandroid/agent/HelperSharedPreferences: Removed
as no longer needed
* src/pandroid/agent/PandroidAgent.java: Removed all relating
to SharedPreferences
* src/pandroid/agent/PandroidAgentListener.java: loadConf on service
start. Restored SharedPreferences getter and setter. Notification
shows the whole time alarm enabled, on stop agent dissapears. On
connection shows message(unavoidable at current time).
* src/pandroid/agent/PandroidAgentTentacle.java: Changed socket
timeout to 2000ms.
* src/pandroid/agent/Setup.java: Reordered lots of code
to improve legibility.
* src/pandroid/agent/SMSBroadcastReceiver.java: Returned
to using local SharedPreferences.
* values: Added value for choosing task to report, odd suggestions.
* Pandroid Agent v3.0_iso-8859-1.apk: Updated to latest version.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8075 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* Pandroid Agent v3.0_iso-8859-1.apk: Restored proper default values
for server and interval.
* src/pandroid/agent/Core.java: Restored proper default values
for server and interval.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8073 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* src/pandroid/agent/Core.java: Reverted to previous commit
SharedPreferences.
* src/pandroid/agent/PandroidAgent.java: Reverted to previous commit
SharedPreferences.
* src/pandroid/agent/PandroidAgentListener.java: Notification only
shows when attempting to send xml, can't work out how to have it
persistent and not dissapear when Pandroid activity is destroyed.
* src/pandroid/agent/SMSBroadcastReceiver.java: Reverted to previous
commit SharedPreferences.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8071 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* assets/database/pandroid.zip: Added buffer size initial value.
* layout: Added buffer size text edit.
* src/pandroid/agent/Core.java: Added variable for buffer size
with initial value of 256KB. Moved all preference reading/editing
to HelperSharedPreferences.
* src/pandroid/agent/DataBaseHandler.java: Now extends
sqliteassethelper library.
* src/pandroid/agent/HelperSharedPreferences: New helper class in
attempt to mitigate SharedPreferences loss.
* src/pandroid/agent/PandroidAgent.java: Removed SharedPreferences
references and methods.
* src/pandroid/agent/PandroidAgentListener.java: Rewritten all get
and put preferences to use HelperSharedPreferences instead.
* src/pandroid/agent/Setup.java: Added views for buffer size.
* src/pandroid/agent/SMSBroadcastReceiver.java: Changed to use
HelperSharedPreferences.
* values: Added buffer size to all strings.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8070 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* src/pandroid/agent/Core.java: Single SharedPreferences and
Editor objects that are retrieved when needed. getSharedData()
and putSharedData() moved to this class from
PandroidAgentListener.
* src/pandroid/agent/PandroidAgent.java: Instantiate static
SharedPreferences and Editor objects with getters for each.
* src/pandroid/agent/PandroidAgentListener.java: buildXML() and
contact() are now background tasks. Implemented buffer, if xml fails
to send it stays in the system, next succesful conection after sends
all of the unsent xml files, current buffer size = 99 files.
* src/pandroid/agent/PandroidAgentTentacle.java: Changed socket to
timeout after 1000ms.
* src/pandroid/agent/SMSBroadcastReceiver.java: Changed SharedPreferences
to static version from PandroidAgent.java
* Pandroid Agent v3.0_iso-8859-1.apk: Updated to include latest
changes.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8069 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/styles/pandora.css: Fix aesthetical issues
* include/functions_modules.php: Mark as needy to calculate
the module status count in an agent when disable/enable one of
his modules. The part of server to avoid disabled modules in
counts was made by ramon. BUG #3611683
* godmode/users/configure_user.php: Fix warnings due the
latest fields added to database schemma
* images/blank.gif: Add a missed image
* godmode/agentes/agent_template.php: Fix a little feedback
bug on template application and add category id to the
fields copied from components to modules when apply a template
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8068 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/alerts/alert_list.list.php,
godmode/setup/setup_general.php, extensions/pandora_logs.php: some
fixes in the source code from the indications of bug in the tracker.
Fixes: #3611333
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8063 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* src/pandroid/agent/Core.java: Separate load and store
methods for SharedPreferences and database.
* src/pandroid/agent/PandroidAgent.java: Values retrieved from
database onCreate. onPause and onDestroy values are saved to
database.
* src/pandroid/agent/PandroidAgentListener.java: Reverted to using
SharedPreferences at runtime, database used when app not in view.
Added module as proof of iso-8859-1 now working.
* Pandroid Agent v3.0_iso-8859-1.apk: For testing whether
configuration is no longer lost after an amount of time.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8062 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f