* modules/pandora_module_logevent.h: Updated the EventID mask. The
Windows Event Log Viewer seems to ignore the most significant 16
bits of the event id.
* modules/pandora_module_logevent.cc: Do not discard existing
events when running in debug mode.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8644 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* bin/pandora_agent.conf: removed old references to ODBC feature
not supported anymore. New defaults (inventory, remote config and
IP detection now by default).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8407 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* windows/pandora_wmi.cc: When concatenating IP addresses, do not
output a comma unless the IP can be parsed.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8390 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* windows/winevt.h: Added to repository. Headers for Wevtapi.dll.
* modules/pandora_module_logevent.cc,
modules/pandora_module_logevent.h,
pandora_strutils.cc,
pandora_strutils.h: Added support for the new XML based eventing model
introduced in Windows Vista.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8358 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* modules/pandora_module_exec.cc: Fixed possible resource leaks,
only when CreateProcess() or CreatePipe() would fail.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7968 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* 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
* 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
* 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
* bin/util/pandora_revent.exe: Added to repository. Compiled version of
pandora_revent.pl.
* installer/pandora.mpi: Added pandora_revent.exe and curl.exe to the
installer.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7839 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* modules/pandora_module_logevent.cc: Changed the flags of
LoadLibraryEx. Fixes a bug when loading event descriptions
from exe files.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7266 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* modules/pandora_module_factory.cc: Added macros
support to the module_exec command of the module
configuration
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7162 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* 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
* modules/pandora_module.h
modules/pandora_module_factory.cc
modules/pandora_module.cc: Added several new module fields
to the XML
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7154 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* modules/pandora_module.cc: Default to generic_data if no module_type
is not set.
* installer/pandora.mpi: Remove the util directory from the PATH when
uninstalling.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6038 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* installer/pandora.mpi: Added an uninstall action to delete
the agent's at job.
* installer/scripts/delete_at_job.bat: Added to repository. Batch
script to delete the agent's at job.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5474 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* modules/pandora_module_regexp.cc: Do not open the file in the
constructor to avoid trouble if other modules modify it before
the regexp module runs.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5448 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* modules/pandora_module_perfcounter.cc,
modules/pandora_module_perfcounter.h: Use MinrGW's pdh.h
instead of our own definitions.
* modules/pandora_module.cc: Fixed a bug in pre-conditions that led to an
infinite loop.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5257 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* 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
* windows/pandora_wmi.cc: Added a debug message.
* modules/pandora_module_perfcounter.cc,
modules/pandora_module_perfcounter.h,
modules/pandora_module_factory.cc: Added support to read the
'cooked' value of a performance counter.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5244 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* modules/pandora_module_logevent.cc,
modules/pandora_module_logevent.h: Added support for regular
expressions to the pattern filter.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5220 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* modules/pandora_module_snmpget.cc: Modified the call to snmpget.exe
to directly retrieve the value.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5204 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* modules/pandora_module.h,
modules/pandora_module_exec.cc,
modules/pandora_module_exec.h,
modules/pandora_module_list.cc,
modules/pandora_module_factory.cc,
modules/pandora_module.cc,
Makefile.am: Added native ping and SNMP get modules that wrap the
calls to ping.exe and snmpget.exe.
* modules/pandora_module_ping.h,
modules/pandora_module_snmpget.h,
modules/pandora_module_ping.cc,
modules/pandora_module_snmpget.cc: Added to repository. Ping and
SNMP get modules.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5203 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* windows/pandora_wmi.cc: Use double instead of long for intermediate
result to avoid overflows. Fixes bug #3422900.
* modules/pandora_module_perfcounter.cc: Print PDH errors in a more
descriptive format.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5167 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* 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