* util/pandora_remote_agent.sh: Added "-e" option to be able to
specify character encoding of the output XML. Also added PID
number to the output file name to avoid race conditions.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9128 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DataServer.pm: Fixed a bug when a parent was defined but
empty in the XML and an agent with an empty address existed in the
database.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9071 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Change the format of the comments when
create event from server to adapt it to new json format
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9049 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_revent_create.pl: Adapt the script
of event creation to new API version. Fix by Tomas
in Incident #347
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9014 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Tools.pm: Added exeptions in safe_input
and safe_output to avoid differences with the console condification
with single and double quotes. Incident #309
Merged from 4.1
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8967 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_migrate_plugins.pl: Added optional command-line
argument 'dbport' for people who use non-standard DB port.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8946 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_manage.pl: Fixed data_module feature adding the data
to be inserted into parameter list. The retro-compatibility has been
broken, but this feature was useless, so it shouldnt be a problem.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8861 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/WMIServer.pm: Some HTML entities were not being
decoded.
* lib/PandoraFMS/Core.pm: Set the severity or alert recovery events to
NORMAL.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8802 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* bin/tentacle_server: Upgraded to 0.4.0. (Imported from trunk of
tentacled repository.)
Added support for IPv6 and improved to be able to bind multiple
interfaces and/or IP addresses.
Added support for 'TCP Wrappers'. When the 'Authen::Libwrap' is
installed and -T option is specified, this feature can be used.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8796 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Validate existing events with the same 'ID extra' instead
of treating them as a single event.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8765 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* NetBSD/pandora_server.conf,
FreeBSD/pandora_server.conf,
conf/pandora_server.conf.new: Removed an unused token.
* lib/PandoraFMS/DB.pm,
lib/PandoraFMS/Core.pm: Changed the module status macro to return a
string instead of the numeric value.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8760 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf.new,
lib/PandoraFMS/Config.pm,
lib/PandoraFMS/Core.pm,
bin/pandora_server: Added support for event auto-expiry and small
fixes.
* util/pandora_manage.pl: Added support for event custom data.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8753 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/PluginServer.pm: fixed the lost decode html
entities for the value in the macros.
* util/plugin/dummy_plugin.pl: added tiny plugin server with only
purpose to testing.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8744 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Added support for treating events with the
same id_extra as a single event.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8738 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_revent.pl: fixed the script, now runs fine the tags
and set correclty the comment and owner user, and other fixes.
Fixes: #2386
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8734 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_xml_stress.pl: fixed perl warning and set the default
temp directory correctly.
* util/pandora_xml_stress.conf: added lost parameters
"directory_confs" and "directory_temp".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8725 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: into the function "pandora_module_unknown"
now checks if the module have disable unknown events.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8714 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/NetworkServer.pm: Use the agent's address if ip_target
is not set.
* lib/PandoraFMS/Core.pm: Fixed a warning.
* conf/pandora_server.conf.new,
lib/PandoraFMS/Config.pm,
lib/PandoraFMS/SNMPServer.pm: Added SNMP storm protection.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8658 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* ChangeLog: lost line about "lib/PandoraFMS/PredictionServer.pm"
uploaded changes for SLA value of service.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8628 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_snmp.sh: added first and weird version of tool to
generate a lot of traps snmp for Pandora. Needs to improve.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8627 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DataServer.pm,
lib/PandoraFMS/SNMPServer.pm,
lib/PandoraFMS/Server.pm,
lib/PandoraFMS/PluginServer.pm,
lib/PandoraFMS/ProducerConsumerServer.pm,
lib/PandoraFMS/PredictionServer.pm,
lib/PandoraFMS/ReconServer.pm,
lib/PandoraFMS/NetworkServer.pm,
lib/PandoraFMS/WMIServer.pm: Added clean-up code to avoid resource
leaks when there is a crash and the server has to auto-restart.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8611 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/NetworkServer.pm: Fixed some parentheses that prevented
remote_snmp_string modules from working.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8574 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Search for sub-strings when matching an OID
within an SNMP alert. Regular expressions should not be necessary and
this avoids having to escape dots inside the OID. Added a couple of new
SNMP macros.
* lib/PandoraFMS/Tools.pm: Added a function to check for valid regular expressions.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8568 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/plugin/snmp_remote.pl: Add SNMP remote plugin to the
default plugins on Pandora FMS server
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8524 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_db.pl: Ignore reports if the metaconsole is enabled, since
agents are never local.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8504 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Added macros _snmp_oid_ and _snmp_value_ to
SNMP alerts. Changed the behaviour of _snmp_fx_ to act as filters
and not as user defined macros.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8485 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Exported subst_alert_macros. Added support
for an arbitrarily large number of _snmp_fx_ macros.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8481 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Resolve numeric ids to strings before writing
events to an external log file.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8444 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Config.pm,
lib/PandoraFMS/Core.pm,
conf/pandora_server.conf.new: Added support for writing events to an
external log file.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8442 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/plugin/pandora_loadgen.pl,
util/plugin/ssh_pandoraplugin.sh: Fixed small problems with
plugins provided as sample.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8420 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/ReconServer.pm: Merged from 4.0 branch. Fixed a call
to get_agent_from_addr that prevented parents from being properly
detected.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8378 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql: (workaround to avoid mysql's warning
'Specified key was too long; max key length is 767 bytes'
(warning code=1071).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8350 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_xml_stress.pl: fixed the send across tentacle, now
when it can not send the file almost the log have a error entry.
And added local send method.
* util/pandora_xml_stress.conf: added confs for local send method.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8349 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Fixed comments addition in the
events with the internal action Create Pandora FMS event
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8328 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_xml_stress.pl: cleaned source code style.
* pandora_server.redhat.spec: added the directories of collections
and remote configuration into the list of chmod perms.
Fixes: #2290
MERGED FROM THE BRANCH PANDORA_4.0
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8298 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_server_installer: Fixed a bug that created
pandora_server.conf.new even if pandora_server.conf did not exists.
Remove PERL libs when uninstalling.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8274 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_db.pl: Several fixes. Save the last compact date
to avoid compacting the same interval twice.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8215 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_logrotate: Fixed several problems due rotation.
Now there is no need to restart any process, much safer.
Added correct paths for pandora console log on centos and debian.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8193 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_xml_stress.pl,
util/pandora_xml_stress.conf: Added support for data attenuation on
certain days.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8163 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Tools.pm: Merged from 4.0 branch. Directly call
snmptranslate, since SNMP::translateObj does not seem to load
enterprise MIBs.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8123 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Fixes crash on inverse resolution for
GIS information on openstreetmaps. This was due function was moved from
Dataserver to Core.pm and include for LWP::Simple not :(
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8121 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DB.pm,
util/pandora_db.pl: Several improvements. Added support for detecting
other running instances of the script.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8110 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DataServer.pm: Add a default module_interval.
* util/pandora_db.pl: Moved data deletion code to a generic function.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8097 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_db.pl: patched the code of tagente_datos purge to have n chunks,
and in each chunk run a DELETE of only 1000 records at a time (with a LIMIT),
adding a 0,0001 second usleep() there, gives time to MySQL to put other
operations between, and locks doesn't appear to be a problem anymore. This
should solve many problems detected in the past.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8040 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@8022 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_db.pl: Added a usleep() inside loops to aliviate
SQL transactions. This should help to improve performance and
avoid lockings.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8014 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/tentacle_serverd: Tiny improvement. Changed to use
target process id to check if the process has been stopped.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7942 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_server: Small improvement. Pinned target
process id to be killed when stopping Pandora Server, to avoid
to kill other processes that could be invoked in different
session by chance.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7939 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_server_installer: As the same as Linux, changed cron setting
of maintenance process for BSD to hourly.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7924 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Added a suffix to the auto-monitoring XML
so that it does not conflict with a local agent.
* util/pandora_manage.pl: Fixed a couple of bugs.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7912 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Added group ACL to 'Special days list'.
It is applied when group id is 0 (All) or the same as alert
template's group id.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7909 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* DEBIAN/postinst,
pandora_server.redhat.spec,
pandora_server.spec,
pandora_server_installer: Moved maintance process to hourly
instead daily. Improves performance and avoid locks on heavy
loaded systems.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7902 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm,
lib/PandoraFMS/Tools.pm,
lib/PandoraFMS/DataServer.pm,
lib/PandoraFMS/ReconServer.pm,
bin/pandora_server: Improved pandora_get_os to support custom operating
systems and moved it from Tools.pm to Core.pm.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7889 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_server_installer: Fixed false recognition of RHEL6.4.
(it had been recoginzed as Ubuntu incorrecty because of its
"/etc/lsb-release").
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7886 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf,
lib/PandoraFMS/Core.pm,
lib/PandoraFMS/Config.pm,
bin/pandora_server: Added the parameter braa_retries, which lets braa
retry SNMP modules a number of times before handing it over to the
network server.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7873 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f