* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* modules/pandora_module_inventory.cc: Fixed a couple of XML tags.
* installer/pandora.mpi: Added the vbs scripts to the installer.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2603 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* installer/pandora.mpi, README:Preparing release
changing version to final.
* installer/logo.png: Updated logo
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2209 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* installer/pandora.mpi: Updated version and silent install mode.
* pandora_windows_service.cc: Set the path from the agent to avoid
having to reboot. Fixed a typo.
* pandora.cc: Updated version.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2137 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* Installer/Pandora_silent.mpi: Installer in silent mode. Should
replace pandora.mpi in the future, includes both, using a
command line to choose standard or un-attended install.
M win32/ChangeLog
A win32/installer/pandora_silent.mpi
M win32/installer/pandora.mpi
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2111 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* configure.in: Modified path to libregex.a instead original boost
library name (very large and complex). This should be fix with the
library package uploaded in sourceforge and compile nicely (works
for me :-)
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2029 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* windows_service.cc: Enable service recovery by default.
* pandora_windows_service.cc: Added autotime, group and description
configuration options.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2024 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* bin/PandoraAgent.exe: Last build of agent binary.
* bin/pandora_agent.conf: new default .conf for packaging.
* bin/util/getreg.exe, bin/util/cmp.exe, bin/util/sort.exe: New bin tools
for the 3.0 agent util directory.
* installer/scripts/install_service_restart.bat: Install daily agent
restart with AT command.
* installer/scripts/restart_pandora_agent.bat: Make a service restart from
command line (using net commands).
* installer/pandora.mpi: Many fixes and improvements for the installer.
* installer/README.txt: Updated readme.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2017 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* main.cc: Fixed the agent interval when running in process mode.
* pandora_windows_service.cc: Moved the startup delay to the right
place.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2001 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* ftp/pandora_ftp_client.h: Fixed the path of curl.h to match
that in the Dev-cpp libcurl devpack.
* modules/pandora_module_tcpcheck.cc: Properly close the connection
socket.
* modules/pandora_module_regexp.cc: Removed debugging code.
* modules/pandora_module_perfcounter.cc: Close the query handle even if
no data was returned to avoid memory leaks.
* windows/pandora_windows_info.h,
windows/pandora_windows_info.cc,
modules/pandora_module_proc.cc: Fixed a process handle leak.
* configure.in: Improved library detection.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2000 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* modules/pandora_module_tcpcheck.cc: WSAStartup memory management
was leaking memory, so we will create and destroy in each loop the WSA
structure. Tested and leak-proof :-))
* modules/pandora_module_inventory.cc: Fixed typo with string label of
services inventory module.
* bin/PandoraAgent.exe: New binary (woah, compiled from linux!).
* pandora_windows_service.cc: Fixed problem in os XML Tag, was os_name
not os. Fixed problem with windows version, now is passwd full string to xml.
Tentacle call is passwd between quotes, because tentacle could be
in paths with blank spaces (by default \program files\pandora_agent).
* pandora.cc: Build updated.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1969 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* windows/pandora_wmi.h, modules/pandora_module_inventory.cc: Changed
the format of the inventory XML.
* main.cc: Execute the agent and exit when compiled with debugging
enabled.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1968 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* debug_new.h, fast_mutex.h,
debug_new.cpp, static_assert.h: Added to repository. Wu Yongwei's
memory leak detection tool (part of Nvwa). Only compiled when
debugging is enabled.
* bin/util/tentacle_client.exe: Added to repository. Tentacle client
needed to build the installer.
* installer/pandora_2.0.mpi: moved to installer/pandora.mpi. Updated.
The installer can now be built directly from the installer
subdirectory.
* configure.in, Makefile.am, autogen.sh: Created a proper
configure.in and Makefile.am. The agent can now be cross-compiled
from Linux :-D
* bin/pandora_agent.conf: Fixed. A local configuration had been
uploaded.
* pandora_windows_service.h,pandora_windows_service.cc,
udp_server/udp_server.cc, udp_server/udp_server.h: Properly shutdown
the UDP server.
* modules/pandora_module_regexp.cc,
modules/pandora_module_inventory.cc,
modules/pandora_module_factory.cc,
modules/pandora_module.cc, pandora_strutils.cc,
pandora.h, pandora.cc: Fixed a couple of memory leaks. Small changes
to avoid compile warnings when cross-compiling from Linux.
* windows_service.cc: Removed the interactive service flag to avoid
'black windows'.
* main.cc: Include the memory leak detection tool if debugging is
enabled.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1966 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* windows/pandora_windows_info.h,
windows/pandora_windows_info.cc: Added a new function that searches
the Windows registry for installed software.
* windows/pandora_wmi.cc, windows/pandora_wmi.h: Avoid reading numeric
values from WMI query results into strings.
* modules/pandora_module_inventory.h,
modules/pandora_module_inventory.cc,
modules/pandora_module_factory.cc: Added a new inventory module that
lists system services. Updated the software module to use the new
function. Fixed some typos.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1927 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f