* pandora_agent: Now module_condition and module_precondition
accept numeric parameter without fractional part.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4889 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* unix/plugins/grep_log,
shellscript/linux/plugins/grep_log: Restored previous code because
it needs to start searching on the last position known. First time
plugin starts, seek to the final position to avoid fire old events
detected in the log. Plugin only gives new events once starts to work
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4873 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* unix/plugins/grep_log
shellscript/linux/plugins/grep_log: Changed parse_log
function in order to retrieve token correctly.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4859 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* modules/pandora_module_regexp.cc,
modules/pandora_module_regexp.h,
modules/pandora_module_factory.cc: Check file size to detect if the
file was truncated. Added a new configuration token to avoid seeking
to the eof.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4844 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* modules/pandora_module_factory.cc: Fixed a bug collecting some module
parameters like min_warning, max_warning, min_ff_event, etc.
Fixes: 3396949
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4840 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* win32/bin/PandoraAgent.exe: Updated the executable
with the last code build fixing "runWMIQuery error"
for bug 3394721
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4798 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_agent.spec,
pandora_agent.redhat.spec (added) Updated specs to be used
with OpenSUSE build service.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4796 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* bin/pandora_agent.conf: Ready to get the server string from the
installer
* installer/pandora.mpi: Updated installer, version, some strings
and added the question to get the agent group.
* installer/pandora.ico: New icon for windows shortcuts. Nice! :)
* pandora.cc: Updated version.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4793 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* modules/pandora_module_plugin.cc: Set a virtually infinite timeout
for plugins.
* pandora_windows_service.cc: The Pandora_Windows_Service destructor
could try to dereference a NULL pointer. Fixed.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4782 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* win32/windows/pandora_windows_info.h
win32/windows/pandora_wmi.cc
win32/windows/pandora_wmi.h
win32/windows/pandora_windows_info.cc
win32/bin/PandoraAgent.exe
win32/bin/pandora_agent.conf
win32/pandora_windows_service.cc: Added to the windows agent
the address token with manual (specified address) and auto
(detecting from WMI the address) modes
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4763 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* bin/PandoraAgent.exe: Compiled new exe with a bug fixed.
* pandora_windows_service.cc: Fixed a bug related to proxy mode.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4650 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* unix/pandora_agent: Don't remove 1st line of the result of the PROC_CMDS,
1st line isn't a header. Also fixed and simplified some commands.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4649 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_windows_service.h, pandora_windows_service.cc: Added proxy
mode feature.
* bin/PandoraAgent.exe: Created new compiled version with proxy mode
feature.
* bin/pandora_agent.conf: Added new parameters to configure proxy mode.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4646 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* unix/Linux/pandora_agent.conf: Change default memory modules to get it with free command
and using postprocessing to unit conversion. Bug: 3284422
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4580 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* modules/pandora_module.h,
modules/pandora_module_factory.cc,
modules/pandora_module.cc: Set additional module configuration
parameters from the XML.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4572 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* win32/bin/pandora_agent.conf: Add example lines with drone agents and additional configuration files.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4569 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* win32/pandora_agent_conf.cc
win32/pandora_windows_service.cc
win32/main.cc: Created runtime enviroment variables for agents and fixed bug in drone agents.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4559 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* unix/Linux/pandora_agent.conf
unix/pandora_agent: Changed the ip_address token name
to address to compatibility with the server works
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4491 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* unix/Linux/pandora_agent.conf
unix/pandora_agent: Added ip_address token to conf file and
auto and manual mode into agent script.
Added gis_exec token to obtain gis coordinates executing a
script
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4490 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* win32/pandora_windows_service.cc
win32/modules/pandora_module.cc
win32/modules/pandora_module.h
win32/modules/pandora_module_factory.cc
unix/pandora_agent: Allow the windows and unix agent to include preconditions on modules.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4474 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* win32/pandora_agent_conf.cc
win32/pandora_agent_conf.h
win32/modules/pandora_module_list.cc
win32/modules/pandora_module_list.h: Allow the windows agent to include additional configuration files.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4419 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* win32/modules/pandora_module_exec.cc,
win32/pandora_windows_service.cc: Fixed get module output part of over 4096 byte.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4305 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* AIX/pandora_agent.conf, Linux/pandora_agent.conf, HP-UX/pandora_agent.conf
SunOS/pandora_agent.conf: Deleted proxy_user parameter because is not
needed. Also fixed some comments.
* pandora_agent: Resctricted Proxy Mode to non root users. The agent must
be launched by a non root user to use Proxy Mode.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4197 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_agent_installer: Added code to install tentacle_server with
pandora agent.
* AIX/pandora_agent.conf: Added two new parameters proxy_mode and
proxy_user.
* tentacle_server: Added tentacle server with proxy support.
* pandora_agent_daemon: Add feature to stop tentacle_server when
pandora agent stops.
* Linux/pandora_agent.conf: Added two new parameters proxy_mode and
proxy_user.
* HP-UX/pandora_agent.conf: Added two new parameters proxy_mode and
proxy_user.
* pandora_agent: Added support to tentacle_server and proxy_mode.
* SunOS/pandora_agent.conf: Added two new parameters proxy_mode and
proxy_user.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4185 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* unix/pandora_agent: Fixed a typo with logfile parameter. Also fixed
the gathering of secondary_server_opts parameters when transfer mode is
Tentacle. Thanks to KIKUCHI Koichiro for the report.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4103 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* win32/modules/pandora_module_factory.cc, unix/pandora_agent: Changed
module_post_process to module_postprocess to match the documentation.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4044 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* win32/modules/pandora_module.h,
win32/modules/pandora_module_factory.cc,
win32/modules/pandora_module.cc,
unix/pandora_agent,
shellscript/linux/pandora_agent: Set the module min, max and
post_process in the XML data file.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4036 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* android/src/pandroid/agent/PandroidAgent.java
android/bin/Copy of Copy of Pandroid Agent.apk
android/res/drawable-ldpi/logo.png
android/res/drawable-ldpi/icon.png
android/res/drawable-mdpi/logo.png
android/res/drawable-mdpi/icon.png: Removed an unecessary apk
file, added icons and logos to low and middle quality,
fixed xml file deletion, setted farscape as default host
and added to the default agent name a unique identifier
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3820 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_agent: Detach threads to avoid excessive resource usage,
since threads were not joined until all modules were executed.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3818 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* android/.project
android/AndroidManifest.xml: Adding a neccesary directive
for market on manifest and update the pandroid agent version
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3809 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_agent.c: Solved some leaks
* pandora_agent.conf: Added some example modules
* pandora_config.c: Added parse_config, fill module & fill setup functions
* pandora_config.h: Fixed function prototypes
* pandora_util.c: Added xml writer & trim functions
* pandora_util.h: Added trim functions prototype
* pandora_type.h: Added pointer for the link list
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3799 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* win32/installer/pandora.mpi, win32/pandora.cc, unix/pandora_agent: Free
the threads semaphore when a module or plugin does not execute.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3796 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* android/AndroidManifest.xml
android/src/pandroid/agent/PandroidAgent.java
android/src/pandroid/agent/PandroidAgentTentacle.java
android/src/pandroid/agent/PandroidAgentListener.java
android/src/pandroid/agent/EventReceiver.java
android/bin/Pandroid Agent v0.3.apk
android/bin/pandroid/agent/PandroidAgentListener$MyLocationListener.class
android/bin/pandroid/agent/PandroidAgentListener$1.class
android/bin/pandroid/agent/PandroidAgent.class
android/bin/pandroid/agent/R$id.class
android/bin/pandroid/agent/PandroidAgentListener.class
android/bin/pandroid/agent/R$string.class
android/bin/pandroid/agent/tentacle_client.class
android/bin/pandroid/agent/R$layout.class
android/bin/pandroid/agent/PandroidAgent$1.class
android/bin/pandroid/agent/PandroidAgent$2.class
android/bin/pandroid/agent/EventReceiver.class
android/bin/pandroid/agent/PandroidAgent$3.class
android/bin/pandroid/agent/PandroidAgent$4.class
android/bin/pandroid/agent/PandroidAgent$5.class
android/bin/pandroid/agent/PandroidAgent$6.class
android/bin/pandroid/agent/PandroidAgent$7.class
android/bin/resources.ap_
android/bin/classes.dex
android/res/layout/main.xml
android/gen/pandroid/agent/R.java: Coded the heavy part of app to
background in a service and changed the way of do the contact from
loops to android alarms to fix the app sleep when screen off.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3794 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* unix/FreeBSD/pandora_agent.conf: Fixed invalid cpu usage data is
returned when system has only one disk device.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3793 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* unix/pandora_agent_daemon: Changed order of 'su' argument.
Username should be as the 1st argument on Solaris.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3781 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_agent.c: Uses pandora_types.h instead module_types.h. Now delete
the XML after sent.
* configure.in: Change version.
* pandora_config.c: Read remote_config variable and other small changes.
* pandora_util.c: New function to produce timestamp strings, now report
timestamp in XML.
* TODO: Small doc about design goals and pending things to implement.
* pandora_type.h: Renamed file with contains all structs.
* util/pandora_agent_installer: Specific installer for Busybox.
* util/pandora_agent_daemon: Specific daemon launcher for Busybox.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3763 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* unix/pandora_agent, win32/pandora.cc,
win32/installer/pandora.mpi: Updated version strings for the
3.2 release.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3715 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_agent_installer, DEBIAN/postinst, DEBIAN/prerm,
DEBIAN/make_deb_package.sh, pandora_agent.spec,
pandora_agent, SunOS/make_solaris_package/prototype,
SunOS/make_solaris_package/make_solaris_package.sh,
pandora_agent_exec: Renamed pandora_exec to
pandora_agent_exec to avoid conflicts with the pandora_exec
script installed by the server.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3708 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_agent_installer, pandora_agent_daemon: Additional
changes to run the agent as a different user. Starting and
stopping the daemon did not work except as root.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3664 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_agent_installer: Remove all init symbolic links.
* plugins/pandora_update: Give the agent daemon some time to stop.
Necessary on Windows.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3640 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* Linux/pandora_agent.conf: Set root as the default pandora_user.
* pandora_agent: Share the semaphore after creating it. Removed
an unnecessary require.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3613 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_agent, AIX/pandora_agent.conf,
pandora_agent_daemon, Linux/pandora_agent.conf,
HP-UX/pandora_agent.conf, NT4/pandora_agent.conf,
SunOS/pandora_agent.conf, FreeBSD/pandora_agent.conf: Added a new
configuration option that lets the agent run as a different user
by changing the process' EUID.
* pandora_agent_installer: Several fixes.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3609 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f