Commit Graph

170 Commits

Author SHA1 Message Date
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 6fd5410ebe 2011-11-15 Ramon Novoa <rnovoa@artica.es>
* build.sh, modules/pandora_module_odbc.cc, Makefile.am: Made
	  changes to cross-compile in openSUSE 11.4.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5135 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-11-15 13:10:24 +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
slerena ed5c6c7ed4 2011-09-23 Sancho Lerena <slerena@artica.es>
* installer/pandora.mpi: Updated string version in agent installer.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4994 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-09-23 14:46:05 +00:00
darode a087fa61f4 2011-09-22 Dario Rodriguez <dario.rodriguez@artica.es>
* bin/util/tentacle_server.exe: Added version with memory leak bug
	fixed.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4981 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-09-22 14:01:00 +00:00
darode 0e8ca9437e 2011-09-14 Dario Rodriguez <dario.rodriguez@artica.es>
* bin/util/tentacle_server.exe: Tentacle Proxy temporal
	with temporal patch for Windows Platforms.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4951 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-09-14 12:22:26 +00:00
Ramon Novoa 19b0d9b621 2011-08-29 Ramon Novoa <rnovoa@artica.es>
* 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
2011-08-29 17:17:33 +00:00
darode 276837aa34 2011-08-29 Dario Rodriguez <dario.rodriguez@artica.es>
* 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
2011-08-29 14:44:53 +00:00
slerena c2397d41e1 2011-08-19 Sancho Lerena <slerena@artica.es>
* 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
2011-08-19 19:31:33 +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
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
slerena efc728cc59 2011-07-28 Sancho Lerena <slerena@artica.es>
* bin/util/tentacle_server.exe: Tentacle server executable to use it
        in the drone/proxy mode.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4645 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-07-28 16:54:12 +00:00
Ramon Novoa d320f55981 2011-07-14 Ramon Novoa <rnovoa@artica.es>
* 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
2011-07-14 16:45:12 +00:00
vgilc f2747e0a08 2011-05-06 Vanessa Gil <vanessa.gil@artica.es>
* win32/pandora.cc: Fixed: Windows agent log and system time are unsynchronized.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4314 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-05-06 10:38:30 +00:00
Ramon Novoa d1d4e002dd 2011-03-08 Ramon Novoa <rnovoa@artica.es>
* modules/pandora_module_regexp.cc: Added support for extended regular
	  expressions.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4068 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-08 15:50:00 +00:00
Ramon Novoa 94a23729e9 2010-12-10 Ramon Novoa <rnovoa@artica.es>
* bin/util/pandora_update.exe: Updated. Some paths may have been wrong.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3657 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-12-10 10:53:47 +00:00
Ramon Novoa b12d4b99f8 2010-12-01 Ramon Novoa <rnovoa@artica.es>
* bin/util/pandora_update.exe: Fixed md5 calculation.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3646 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-12-01 15:38:07 +00:00
Ramon Novoa d90290030d 2010-12-01 Ramon Novoa <rnovoa@artica.es>
* unix/AIX/pandora_agent.conf, unix/pandora_agent,
	  win32/ChangeLog, win32/installer/pandora.mpi,
	  win32/pandora.cc: Updated version strings.
	
	* win32/bin/PandoraAgent.exe: Updated to r3644.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3645 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-12-01 11:32:47 +00:00
Ramon Novoa 18f22eae88 2010-11-18 Ramon Novoa <rnovoa@artica.es>
* bin/PandoraAgent.exe: Updated to r3583.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3600 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-18 11:18:30 +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 c8494bfbb6 2010-11-15 Ramon Novoa <rnovoa@artica.es>
* modules/pandora_module_logevent.cc,
	  modules/pandora_module_logevent.h: Search for event log descriptions
	  in multiple DLLs if necessary. Improved event log error detection.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3588 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-15 16:30:26 +00:00
slerena 7d189d4849 2010-11-14 Sancho Lerena <slerena@artica.es>
* bin/util/pandora_update.exe: This small binary (see the Unix
        perl version to see the sources), allow to replace the running
        windows binary, by stopping the service and restarting it. Will
        allow automatic upgrades of the agent using the fille collection
        mechanism.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3582 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-15 01:37:56 +00:00
Ramon Novoa cafe7ef8e5 2010-11-12 Ramon Novoa <rnovoa@artica.es>
* windows/pandora_wmi.cc: isServiceRunning returns -1 for module
	  states other than "Running" and "Stopped".

	* modules/pandora_module_logevent.cc,
	  modules/pandora_module_logevent.h: Return a non empty string if
	  the event description can not be read. Save the event id as an
	  unsigned long int to avoid overflows.

	* modules/pandora_module_service.cc,
	  modules/pandora_module_service.h: Aesthetic fix. Removed carriage
	  returns.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3580 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-12 13:41:24 +00:00
Ramon Novoa fdf6e21673 2010-11-08 Ramon Novoa <rnovoa@artica.es>
* modules/pandora_module_logevent.cc,
	  modules/pandora_module_logevent.h: Re-wrote the module to avoid
	  using EVENTLOG_SEEK_READ, which seems to cause a lot of trouble.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3561 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-08 19:26:17 +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
Ramon Novoa d88ececb74 2010-11-03 Ramon Novoa <rnovoa@artica.es>
* bin/util/tentacle_client.exe: Updated the tentacle client.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3507 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-03 17:27:04 +00:00
Ramon Novoa 76d230a1e6 2010-10-27 Ramon Novoa <rnovoa@artica.es>
* modules/pandora_module_logevent.cc: We need more information on error
	  997, ignore it for now.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3469 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-10-27 11:52:07 +00:00
Ramon Novoa e1685c7b77 2010-10-04 Ramon Novoa <rnovoa@artica.es>
* windows/pandora_wmi.cc: Fixed inventory NIC information.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3339 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-10-04 17:24:10 +00:00
Ramon Novoa d8640d3b50 2010-10-04 Ramon Novoa <rnovoa@artica.es>
* modules/pandora_module_inventory.cc: Fixed XML generation for
	  inventory modules.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3335 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-10-04 14:02:27 +00:00
Ramon Novoa 53c2257fca 2010-08-04 Ramon Novoa <rnovoa@artica.es>
* Makefile.am: Use -static-libstdc++ to remove the dependency on
          libstdc++-6.dll.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3103 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-08-04 18:26:43 +00:00
Ramon Novoa 8855493ec9 2010-08-04 Ramon Novoa <rnovoa@artica.es>
* modules/pandora_module.cc: Free the collection if it can not
          be added to the list.

        * Makefile.am: Use -static-libgcc to remove the dependency on
          libgcc_s_sjlj-1.dll.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3101 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-08-04 17:47:44 +00:00
Ramon Novoa 6edb348195 2010-08-04 Ramon Novoa <rnovoa@artica.es>
* modules/pandora_module.cc: Run action commands through cmd.exe.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3096 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-08-04 16:28:25 +00:00
slerena 48d137cd7f 2010-08-04 Sancho Lerena <slerena@artica.es>
* win32/bin/util/df_percent.vbs: New VBS plugin to detect all 
        hardrives and return free disk on %.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3093 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-08-04 14:57:56 +00:00
Ramon Novoa 1df39b4c9d 2010-08-04 Ramon Novoa <rnovoa@artica.es>
* modules/pandora_module.cc: Changed sscanf format strings. They did
          not seem to work well in native Windows.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3092 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-08-04 12:38:42 +00:00
darode e78abe09af 2010-07-16 Dario Rodriguez <dario.rodriguez@artica.es>
* misc/pandora_file.cc: fixed unclosed directory with function closedir.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3017 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-07-16 12:10:49 +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 76e22972cf 2010-07-13 Dario Rodriguez <dario.rodriguez@artica.es>
* pandora_agent_conf.cc: Added support to parse collections
	* pandora_agent_conf.h: Added support to parse collections



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3002 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-07-13 17:24:00 +00:00
Ramon Novoa 9aed18321e 2010-07-12 Ramon Novoa <rnovoa@artica.es>
* modules/pandora_module.h, modules/pandora_module_factory.cc,
          modules/pandora_module.cc, pandora_windows_service.cc: Added the
          module_cron feature to schedule modules using a cron-like syntax and
          some small fixes.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2993 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-07-12 16:31:07 +00:00
Ramon Novoa 7095a1626b 2010-07-06 Ramon Novoa <rnovoa@artica.es>
* pandora_windows_service.cc: Fixed the autotime feature. Was not
          working since tinyXML was removed.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2964 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-07-06 11:47:43 +00:00
raulmateos 1203784e8c 2010-07-05 Raul Mateos <raulfopandora@gmail.com>
* bin/pandora_agent.conf: Added example of D Drive. Added comments
        to some modules. Added lost module_begin. Improved command.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2960 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-07-05 09:12:14 +00:00
Ramon Novoa e693d976b0 2010-07-02 Ramon Novoa <rnovoa@artica.es>
* modules/pandora_module.h, modules/pandora_module_factory.cc,
          modules/pandora_module.cc, pandora_windows_service.cc: Added the
          module_condition feature. See http://openideas.info/wiki/ for more
          information.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2956 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-07-02 14:25:53 +00:00
Ramon Novoa cdd4f87774 2010-06-30 Ramon Novoa <rnovoa@artica.es>
* windows/pandora_wmi.cc: getDiskFreeSpacePercent should not return
          any value if the drive does not exist. Fixed.

        * modules/pandora_module.h, modules/pandora_module_factory.cc,
          modules/pandora_module.cc, pandora_windows_service.cc: Added support
          for saving the value of a module as an environment variable.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2935 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-06-30 15:40:25 +00:00
slerena b59ccc26ee 2010-06-13 Sancho Lerena <slerena@artica.es>
* bin/util/logevent_log4x.vbs: Fixed a small undefinition who
        makes script not working on summer time.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2903 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-06-13 13:43:27 +00:00
Ramon Novoa 4413cceabd 2010-06-08 Ramon Novoa <rnovoa@artica.es>
* windows/pandora_wmi.cc, modules/pandora_module_logevent.cc: Removed
          unnecessary log information.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2876 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-06-08 16:49:40 +00:00
raulmateos f7d418031e 2010-05-27 Raul Mateos <raulofpandora@gmail.com>
* bin/pandora_agent.conf: Added some example. Changed
        description for Disk Free (added %). Updated build.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2807 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-27 06:59:39 +00:00
Ramon Novoa 6eb81e4838 2010-05-19 Ramon Novoa <rnovoa@artica.es>
* pandora_strutils.h, modules/pandora_module_odbc.h,
          modules/pandora_data.h, build.sh, pandora.h,
          udp_server/udp_server.h, Makefile.am: Small fixes so the agent
          builds under newer versions of MinGW.

        * installer/pandora.mpi: Updated build.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2752 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-19 15:21:10 +00:00
Ramon Novoa d4611dc1cd 2010-05-13 Ramon Novoa <rnovoa@artica.es>
* pandora_windows_service.cc: Check the return codee of the tentacle
          client. Fixes bug #2972399.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2722 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-13 15:39:52 +00:00
Ramon Novoa 85dd1e7513 2010-05-12 Ramon Novoa <rnovoa@artica.es>
* build.sh: Added to repository. Pandora Agent installer build script.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2703 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-12 08:40:48 +00:00
slerena 2219ed336e 2010-04-23 Sancho Lerena <slerena@artica.es>
* bin/pandora_agent.conf: Updated sample conf with some examples of
        inventory usage, and agent plugins (commented).

        * bin/util/df.vbs, bin/util/ps.vbs: Added flush in the end of each module

        * bin/util/logevent_log4x.vbs: New agent plugin to parse eventlog and
        generate a Log4x format.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2604 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-04-23 16:47:28 +00:00