* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* win32/bin/util/mibs: Added default mibs for the small snmpagent
* tool.
* win32/bin/util/getsnmp.bat,
win32/bin/util/snmpget.exe: Added tool to get snmp info from the
agent using tool from a module_exec.
* win32/installer/pandora.mpi: Updated installer to have snmpget and
mibs in the install process.
* win32/pandora_windows_service.cc: Fixed bug 3098165.
* win32/pandora.cc: Updated version
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3482 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* unix/pandora_agent_daemon: Kill with -9 to be sure is killed,
because UDP server mode "captures" the INT signal to restart
the agent when receibe REFRESH AGENT on UDP client.
* unix/Linux/pandora_agent.conf: New config tokens to support
UDP server options.
* unix/pandora_agent: UDP Server mode implemented in the
Unix/Perl agent, only for REFRESH AGENT option, no remote commands
possible.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3370 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* unix/pandora_agent, win32/modules/pandora_module.cc: Added
module_interval information to the data XML.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3260 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* unix/pandora_agent_daemon, unix/tentacle_client: Added support for
Solaris virtualization, "zone".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3144 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* win32/pandora_agent_conf.cc, pandora_agent_conf.h: Added logic to search
existing collections in config file, and checking for ".." substrings in
path for security reasons.
* win32/pandora_windows_service.h, pandora_windows_service.cc: Added logic
to remove incoherences between collections directory and collection list
of config file.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3045 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* win32/pandora_agent_conf.cc, pandora_agent_conf.h: Added a variable to
control if the collection is added to the PATH.
* win32/pandora_windows_service.h, pandora_windows_service.cc: Added logic
to check if the collection is added to the PATH or not.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3043 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* misc/pandora_file.cc: fixed unclosed directory with function closedir
and control posible delete errors.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3018 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* win32/pandora_agent_conf.cc, pandora_agent_conf.h: Added functionality
to get collection from configuration file.
* win32/pandora_windows_service.cc, pandora_windows_service.h: Added
support for manage collections
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3007 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* win32/configure.in, Makefile.am: Modified to compile executable with
version information embedded
* win32/versioninfo.rc: Added version information file for win32
executable
Fixes: #3007874
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2984 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* unix/pandora_exec: Added to repository. pandora_exec script.
* unix/pandora_agent_installer, unix/DEBIAN/postinst,
unix/DEBIAN/make_deb_package.sh, unix/pandora_agent.spec: Added the
pandora_exec script to the installation.
* unix/pandora_agent_daemon: Added support for running the agent as
an unprivileged user.
* unix/pandora_agent: Added timeout support for module_exec modules.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2915 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* unix/DEBIAN/prerm: disabled the erase conf file and plugin dir.
* unix/DEBIAN/conffiles: added plugin directory.
* unix/DEBIAN/make_deb_package.sh: cleaned source code, and now make the
plugin empty dir for package builder.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2830 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* unix/pandora_agent_installer: New version of installer. Now allow
to install the agent and all its dependencies, configuration and logfiles
inside a specific directory, for example: /opt/pandora. That directory
will contain all data, even the logs. Default configuration file and
launcher daemon script are modified in realtime to have that custom
defined directory. Removed "with-links" method.
* *.conf: Minor modification to use the new method of install in a custom
directory.
* unix/pandora_agent_daemon: Build update and some small modifications
to use the custom directory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2748 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* unix/pandora_agent_installer
linux/pandora_agent_installer
man/man1/tentacle_client.1.gz: Improved
man pages installer splitting tentacle
man page and write it on unix folder
* unix/man
man/man1/pandora_agent.1
man/man1/tentacle.1.gz: Deleted old man pages
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2710 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* linux/pandora_agent_installer
man/man1/pandora_agent.1.gz
man/man1/tentacle.1.gz: Added the man pages of
tentacle and pandora agent and modified the
agent installer script to install them
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2698 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* unix/Linux/pandora_agent.conf: Added parameters position_description
and parent_agent_name, and updated loadaverage with a more efficient
version.
* unix/pandora_agent: Added POD documentation, modified to only add
to the XML the minimum parameters (positional parameters,
parent_agent_name,...) are not sent with default values if not
deffined in the config file. Updated verion and build.
* man/man1/pandora_agent.1: ManPage generated from unix/pandora_agent
first version of the manpage.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2401 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* unix/Linux/pandora_agent.conf,
linux/pandora_agent.conf: Modified way to get loadaverage, taken from
Enriquegm from the forums.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2372 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
Updated tentacle from the tentacle repository and generated
manpage. TODO:Make the installer install the manpages
* unix/tentacle_client: Added pod documentation to generate manpages.
* man/man1/tentacle_client.1: First version of the manpages for
tentacle_client
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2369 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* linux/pandora_agent_daemon: Some ugly warnings are fixed.
* linux/pandora_agent.spec: /spool../data_out was not correctly
working, fixed.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2254 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f