* lib/PandoraFMS/Core.pm: Fixed that unknown modules are never
recovered when module data is received correctly in/after the
race condition (module execution time exceeds its interval).
* lib/PandoraFMS/PluginServer.pm: Fixed that _plugin_param2_
and _plugin_param2_desc_ (and so on) were not replaced with
the corresponding values.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10460 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Prevent some warnings would be
written at pandora_server.error ("Use of uninitialized value
in subroutine entry at ..." and "Use of uninitialized value in
string ne at ..").
MERGED FROM BRANCH 5.0 (rev10441).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10442 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Added an internal action to
create a Integria IMS incident on the function
"pandora_execute_action". Added the function
"pandora_create_integria_ticket".
* util/pandora_manage.pl: Added an option to recreate
a collection with the function "cli_recreate_collection".
Added a call to get the Pandora FMS shared config.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10432 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Config.pm,
lib/PandoraFMS/ReconServer.pm: Added a separate timing template for
network scans, since they can be very slow.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10429 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* FreeBSD/pandora_server.conf.new,
conf/pandora_server.conf.new,
conf/pandora_server.conf.windows: Modified default configuration
to avoid put all agents in the group id #2.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10426 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/PluginServer.pm: Added new alert macros
_plugin_param1_ (,_plugin_param2_ and so on) to access to
each of plugin parameters. Also added _plugin_param1_desc_
to access to each description of plugin parameters.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10418 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* bin/pandora_server: Fixed issue that pandora_server failed to
shut down properly on non-Linux systems.
Merged r10335 from branch 5.0.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10402 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_server_installer: Refactord implementation, added
"fakeroot" installation support, small bug fixes and improvements:
fixed processing arguments, replace "test -e" with "test -f" for portability
(solaris' /bin/sh doesn't support "test -e").
* Makefile.PL: Install bin/tentacle_server if WITHOUT_TENTACLE=0 so that
MakeMaker can fix perl path in the shebang line.
* pandora_server.redhat.spec: Added missing dependency.
* FreeBSD/pandora_server.conf -> FreeBSD/pandora_server.conf.new: Renamed
* NetBSD/pandora_server.conf -> NetBSD/pandora_server.conf.new: Rename
* FreeBSD/tentacle_server: Small bug fix and improvements. Fixed
"tentacle_server_flags" and modified code to use proper variables and
to get pid more strictly.
* FreeBSD/pandora_server: Added support to start multiple pandora_server
instances.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10401 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm, lib/PandoraFMS/DataServer.pm: Fixed sql
error with MySQL 5.6 and its default sql_mode.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10400 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Fixed modules would have ignored
ff_threshold when the module shifted from normal to critical
while its status remained unknown.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10394 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/recon_scripts/snmp-recon.pl,
util/recon_scripts/wmi-recon.pl: Set a default value
for nmap_timing_template.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10392 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf.new,
lib/PandoraFMS/Config.pm,
lib/PandoraFMS/ReconServer.pm,
util/recon_scripts/snmp-recon.pl,
util/recon_scripts/wmi-recon.pl: Added a new parameter to control how
aggressive nmap should be.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10391 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* NetBSD/pandora_server.conf,
conf/pandora_server.conf.new,
conf/pandora_server.conf.windows: New default value for icmp_retries
to have default setup more realiable but a bit slower.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10387 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/NetworkServer.pm: Little syntax fix.
* util/pandora_revent_create.pl: Changed the url encode
separator of the api call from "," to "|".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10386 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Suppress "going to normal (warning,
critical)" events from "unknown" status, if you disable "Throw
unknown events" at the Console.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10380 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Fixed that unknown modules would be
set to normal if its status is not normal, when new data
arrives but ff_threshold is greater than 0.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10378 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/trap_rate.sh: Added to repository. Script to calculate the rate of
SNMP traps received by snmptrapd.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10364 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Set unknown modules to normal if new data
arrives but ff_threshold is greater than 0.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10362 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf.new,
lib/PandoraFMS/Config.pm: Added configuration tokens to disable the
translation of enterprise strings and variable bindings (SNMP console).
* lib/PandoraFMS/SNMPServer.pm: Added thread support to the SNMP console.
* lib/PandoraFMS/DB.pm: Fixed a warning.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10359 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/GIS.pm, lib/PandoraFMS/DB.pm,
lib/PandoraFMS/Core.pm, lib/PandoraFMS/ReconServer.pm,
lib/PandoraFMS/DataServer.pm: tiny fixes for to improve the support
of PostgreSQL.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10356 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_db.pl: Fixed error when 'dbengine' token is not defined
in pandora_server.conf with enterprise installed.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10355 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_xml_stress.pl: Remove new line and carriage return
characters when parsing the configuration file.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10290 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Removed an unused module.
* util/recon_scripts/snmp-recon.pl: Always perform a brute-force network scan.
Connect hosts via traceroute if no L2 information is available.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10218 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/PluginServer.pm: Fixed to handle plugin's
output that includes multibyte character string.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10207 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_manage.pl: Added support for 'each_ff' and 'ff_timeout'
to module creation and modifying options.
Fixed bug that 'enable_unkown_events' cannot be set by module creation
options.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10196 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_server/pandora_server.redhat.spec: allow
tty-less sudo for pandora to fix failure on start
tentacle_serverd service in recent RHEL derivatives.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10192 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Removed the keepalive semaphore, since down_force
is not supported in earlier versions of Thread::Semaphore. Made keep alive
modules work with an FF threshold.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10175 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* FreeBSD/pandora_server.conf, NetBSD/pandora_server.conf: Updated
default settings as the same as Linux ones.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10140 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf.new,
lib/PandoraFMS/Config.pm,
util/pandora_db.pl: Added a new option to move SNMP modules back to the
SNMP Enterprise Server.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10051 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Config.pm
lib/PandoraFMS/DataServer.pm: Ignore the agent group coming from the XML
if autocreate_group is set.
* util/recon_scripts/snmp-recon.pl: Changed the default value for a
router-less scan.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10045 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/ReconServer.pm: Fixed wrong order in
recon script parameters in the conversion from json format
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10029 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/ReconServer.pm: Fixed crash when macros help of
recon script contains \r, \n or multibyte characters.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9886 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Improved weekly planned downtime to allow
accross date. If the stopping time is smaller than the starting time,
it ends at the stopping time of the next day.
e.g.) When Saturday 23:00:00-01:00:00 is set, the weekly planned
downtime ends at Sunday 01:00:00.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9870 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f