* win32/modules/pandora_module_logevent.cc: Write to the log file
(instead of the debug log) if Wevtapi.dll cannot be found.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8762 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* 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
* 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
* 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
* win32/modules/pandora_module_logevent.cc: Get the EventID from the
InstanceID. Seems like Microsoft replaced Eventid with InstanceID at
some point.
* pc/pandora_agent.mpi: Fixed some paths.
* pc/tentacle_client,
unix/tentacle_client,
shellscript/linux/tentacle_client,
shellscript/mac_osx/tentacle_client: Specify the socket type. On some
OSs (like certain versions of Solaris) it can't be guessed and results in an error.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6844 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* win32/windows/pandora_wmi.cc: Added to the windows
agent inventory module for patches the service pack
column
Merged from 4.0.2
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6251 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* win32/bin/pandora_agent.conf
unix/Linux/pandora_agent.conf: Restore files changed
by error in last commit
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6165 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* win32/bin/pandora_agent.conf,
unix/Linux/pandora_agent.conf: Added more examples of modules enabled and
improved comments in config file for windows and linux.
MERGED FROM 4.0.2
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6141 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* win32/bin/pandora_agent.conf: Added "parent_agent_name" parameter
which was missing for windows configuration file.
MERGED FROM 4.0.2
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6082 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_agents/win32/bin/pandora_agent.conf: Added more inventory
parameters to inventory module
MERGED FROM 4.0.2
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6062 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
* win32/bin/pandora_agent.conf: Added sencodary server parameters example
in agent configuration.
MERGED FROM 4.0.2
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6037 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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