* 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