Commit Graph

102 Commits

Author SHA1 Message Date
fermin831 f03b1afcdb Cron bug and crontab and alert template is sended in win32 TICKETS #3355 2016-03-01 19:12:27 +01:00
fermin831 388e1ff533 Extended Debug mode. Now, agents report allways to server 2015-10-06 16:09:46 +02:00
fermin831 6b84a45ef6 Added disable_logfile token to Windows Agent 2015-09-22 18:35:19 +02:00
Ramon Novoa 80fea40223 recvTentacleDataFile should throw an exception when it fails, otherwise
remote configuration doesn't work!
2015-09-08 15:41:49 +02:00
Junichi Satoh 97c9358fa0 Improved to be able to define timeout for file transfer programs
in windows agent.
2015-06-03 16:03:27 +09:00
hkosaka ed53b3c67b Specify -C option to Launch tentacle_server when using SSL proxy mode. 2015-03-30 18:29:44 +09:00
Akihiro Uchida fad89150ee Change function name in pandoralog 2015-03-05 01:44:59 +09:00
Akihiro Uchida 83e5287613 Extend getAgentNameFromCmdExec timeout to 60s 2015-03-05 01:43:39 +09:00
Akihiro Uchida ce6d76eabc Separate getAgentNameCmdExec from getCoordinatesFromCmdExec 2015-03-04 20:36:43 +09:00
Akihiro Uchida 9ff9a41494 Extend getCoordinatesFromCmdExec timeout to 500 ms to make consistent with timeout for WaitForSingleObject 2015-03-04 20:18:47 +09:00
Akihiro Uchida 1b2eff4438 Remember the agent_name_cmd result in xml header 2015-03-04 14:07:44 +09:00
Ramon Novoa ba1c14ec4f Fixed remote_config (broken by another feature). 2015-02-09 13:38:52 +01:00
Ramon Novoa 341928b8dd Add util to the PATH before launching the proxy. Fixes ticket #1175.
(cherry picked from commit 787b76bb49)
2015-02-04 16:03:16 +01:00
Junichi Satoh eefdd73507 Improved to be able to define agent name using external command. 2014-11-16 12:04:00 +09:00
Ramon Novoa fc2e9cc698 Do not delete collections if a broker is configured (win32). 2014-10-17 16:39:30 +02:00
pandora-release 661dcbcdb9 Fixes to make the agent work on win64.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10242 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-06-20 11:16:42 +00:00
Ramon Novoa 30d5edeeb5 2013-04-15 Ramon Novoa <rnovoa@artica.es>
* win32/pandora_windows_service.cc: Open the XML data file in binary
	  mode to avoid getting extra carriage returns.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7987 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-04-15 17:12:25 +00:00
Ramon Novoa b6d9536abb 2013-04-11 Ramon Novoa <rnovoa@artica.es>
* pandora_windows_service.cc,
	  pandora_windows_service.h,
	  udp_server/udp_server.cc: Added an option to force the sending of
	  data files.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7964 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-04-11 15:39:28 +00:00
hkosaka 56399280be 2013-04-11 Hirofumi Kosaka <kosaka@rworks.jp>
* win32/pandora_windows_service.cc: Fixed possible resource leaks;
	  - putenv() could run out the environment variable area, if
            using both file_collection and broker_agent.
	  - possible handle leak at launching tentacle_client.
	* Cleaned source code style.

	Merged from branch 4.x.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7962 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-04-11 11:33:52 +00:00
koichirok af8677da4f 2013-04-04 Koichiro KIKUCHI <koichiro@rworks.jp>
* windows_service.cc,
	  pandora_windows_service.cc,
	  windows_service.h: Set iteration base ticks after sleeping startup_delay
	 to exclude time taken by startup_delay from sleep time subtraction.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7928 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-04-04 08:06:38 +00:00
zarzuelo 930b09e5f3 2012-11-20 Sergio Martin <sergio.martin@artica.es>
* pandora_windows_service.h
	  pandora_windows_service.cc: Added support for
	gis_exec (Automatic gis coordinates)



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7180 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-11-21 17:13:05 +00:00
zarzuelo d35f66391b 2012-11-20 Sergio Martin <sergio.martin@artica.es>
* pandora_windows_service.cc: Fixed some bugs
	of the type conversions 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7167 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-11-20 12:39:11 +00:00
zarzuelo 2debc7c2fc 2012-11-20 Sergio Martin <sergio.martin@artica.es>
* pandora_windows_service.cc: Added support for
	custom fields



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7166 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-11-20 12:29:00 +00:00
zarzuelo 34867c52ad 2012-11-19 Sergio Martin <sergio.martin@artica.es>
* pandora_windows_service.cc: Added new fields of 
	agent in XML header like custom_id and url_address.
	Added coordinates data (not gis_exec yet)



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7157 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-11-19 15:57:56 +00:00
Ramon Novoa bf54328305 2012-02-07 Ramon Novoa <rnovoa@artica.es>
* pandora_windows_service.cc: Convert tentacle_timeout to milliseconds.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5510 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-02-07 16:58:06 +00:00
Ramon Novoa 8589da3b27 2012-02-07 Ramon Novoa <rnovoa@artica.es>
* win32/pandora_windows_service.cc: Added a timeout to the tentacle
	  client execution.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5507 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-02-07 16:33:01 +00:00
Ramon Novoa f6818a7277 2012-01-03 Ramon Novoa <rnovoa@artica.es>
* pandora_windows_service.h,
	  modules/pandora_module.h,
	  modules/pandora_module_factory.cc,
	  modules/pandora_module.cc,
	  pandora_windows_service.cc: Added support for intensive modules.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5318 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-01-03 17:23:23 +00:00
Ramon Novoa 75116f7eba 2011-12-13 Ramon Novoa <rnovoa@artica.es>
* win32/installer/pandora.mpi,
	  win32/pandora_windows_service.cc,
	  win32/pandora.cc,
	  unix/DEBIAN/control,
	  unix/DEBIAN/make_deb_package.sh,
	  unix/pandora_agent.spec,
	  unix/pandora_agent: Fixed version strings (were wrong
	  in the previous commit).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5254 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-12-13 14:37:32 +00:00
Ramon Novoa 181c11c711 2011-12-13 Ramon Novoa <rnovoa@artica.es>
* win32/pandora_windows_service.cc: Brokers do not need to
	  modify the path.

	* win32/installer/pandora.mpi,
	  win32/pandora.cc,
	  unix/DEBIAN/control,
	  unix/DEBIAN/make_deb_package.sh,
	  unix/pandora_agent.spec,
	  unix/pandora_agent: Updated version strings.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5250 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-12-13 14:10:51 +00:00
Ramon Novoa d3d14d51c8 2011-12-12 Ramon Novoa <rnovoa@artica.es>
* windows/pandora_wmi.cc: Removed some debugging messages.

	* modules/pandora_module.h,
	  modules/pandora_module.cc,
	  pandora_windows_service.cc: Fixed pre-conditions (were not working
	  properly).

	* modules/pandora_module_regexp.cc: Improved file status detection and
	  small fixes.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5247 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-12-12 17:11:06 +00:00
Ramon Novoa 4e20886910 2011-11-22 Ramon Novoa <rnovoa@artica.es>
* pandora_windows_service.cc: Fixed a bug that resulted in a buffer
	  overflow.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5150 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-11-22 12:44:47 +00:00
Ramon Novoa f2d1a13a85 2011-11-03 Ramon Novoa <rnovoa@artica.es>
* pandora_windows_service.h,
	  pandora_windows_service.cc: Several fixes to the proxy mode and
	  broker agents.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5109 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-11-03 19:13:57 +00:00
darode 8791afb503 2011-09-26 Dario Rodriguez <dario.rodriguez@artica.es>
* pandora_windows_service.cc: Fixed a problem sending XML with broker
	mode enabled (the "master" agent didn't report).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5011 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-09-26 17:25:53 +00:00
vgilc 1d0b904818 2011-09-15 Vanessa Gil <vanessa.gil@artica.es>
* win32/pandora_windows_service.cc: Fixed problem sending xml file.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4956 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-09-15 15:30:13 +00:00
vgilc ffaee6938c 2011-09-01 Vanessa Gil <vanessa.gil@artica.es>
* win32/pandora_windows_service.php: Add information about the parent agent name to xml file.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4878 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-09-01 14:37:57 +00:00
Ramon Novoa 598ebae6e5 2011-08-19 Ramon Novoa <rnovoa@artica.es>
* 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
2011-08-19 11:58:22 +00:00
zarzuelo c35cb15176 2011-08-18 Sergio Martin <sergio.martin@artica.es>
* 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
2011-08-18 09:41:37 +00:00
darode be63cf6054 2011-07-29 Dario Rodriguez <dario.rodriguez@artica.es>
* 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
2011-07-29 09:19:50 +00:00
darode 42aaa6dc4e 2011-07-28 Dario Rodriguez <dario.rodriguez@artica.es>
* 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
2011-07-28 17:34:51 +00:00
vgilc 7389ead9b6 2011-07-14 Vanessa Gil <vanessa.gil@artica.es>
* 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
2011-07-14 08:58:18 +00:00
vgilc ca87ec849c 2011-07-11 Vanessa Gil <vanessa.gil@artica.es>
* win32/pandora_agent_conf.cc
	win32/pandora_windows_service.cc: Allow drone agents in Windows.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4545 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-07-11 15:49:29 +00:00
vgilc 76b521cbb5 2011-06-21 Vanessa Gil <vanessa.gil@artica.es>
* 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
2011-06-21 11:06:47 +00:00
vgilc cc491d5c6e 2011-04-05 Vanessa Gil <vanessa.gil@artica.es>
* 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
2011-05-05 14:05:25 +00:00
Ramon Novoa b3b7e83d00 2010-11-17 Ramon Novoa <rnovoa@artica.es>
* pandora_windows_service.cc: Fixed a typo in copyScpDataFile that made
	  it always return PANDORA_EXCEPTION.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3599 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-17 19:22:04 +00:00
Ramon Novoa 486749d686 2010-11-05 Ramon Novoa <rnovoa@artica.es>
* installer/pandora.mpi: Updated installation messages.

	* pandora_windows_service.cc: startup_delay after the service is
	  started, not before. Read all secondary server parameters.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3543 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-05 14:07:42 +00:00
slerena 1153cfdff5 2010-10-29 Sancho Lerena <slerena@artica.es>
* 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
2010-10-29 15:50:43 +00:00
darode 2b18bd0ef7 2010-07-21 Dario Rodriguez <dario.rodriguez@artica.es>
* 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
2010-07-21 10:03:20 +00:00
darode 033040b10f 2010-07-20 Dario Rodriguez <dario.rodriguez@artica.es>
* 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
2010-07-20 16:38:29 +00:00
darode 1ab8d24ba5 2010-07-16 Dario Rodriguez <dario.rodriguez@artica.es>
* misc/pandora_file.cc, pandora_file.h: Added function to remove directories
	recursively

        * win32/pandora_windows_service.cc, pandora_windows_service.h: Added
        support for unzip collections and improved functionality to manage
	collections.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3015 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-07-16 11:43:07 +00:00
darode 16f3d39f87 2010-07-14 Dario Rodriguez <dario.rodriguez@artica.es>
* 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
2010-07-14 17:16:08 +00:00