* 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
* lib/PandoraFMS/Core.pm,
bin/pandora_server,
util/pandora_db.pl: Added support for on-demand module status
calculation.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7865 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_database_check.pl: added to trunk repo. Tool to
measure transaction speed in pandora. Merged from 4.x branch.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7862 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Tools.pm: Added support for ranges to server cron
modules.
* lib/PandoraFMS/ProducerConsumerServer.pm: Update queue stats after
queuing new new modules.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7850 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_xml_stress.conf: Updated conf file to use the new
threshold values in the generation of xml. Better defaults for
proc types.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7836 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_xml_stress.conf: Updated conf file to use the new
threshold values in the generation of xml.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7830 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Fixed alert fired counts when
reset internal counter and fired times in threshold loop
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7797 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Add macros substitution in all the
text fields of generate event command
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7793 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Change the update count of fired alerts
condition to increase the count only when a alert is fired first time
to avoid broke counts
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7792 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Add the new fields on snmp alerts
(now there are 10 fields). Bug 3605775
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7784 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_manage.pl: Add update counts when validate
all the alerts of a policy in CLI option. Bug 3606759
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7779 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm
lib/PandoraFMS/DataServer.pm: Clean code and fix some
forgotten changes in last GIS code
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7774 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* Config.pm: updated version.
* NetworkServer.pm,
PluginServer.pm: Fixed some more un-init values and removed
annoying message and not useful warning about empty return on SNMP call.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7760 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/PluginServer.pm: Removed several "Use of
uninitialized value in string" errors.
* lib/PandoraFMS/Core.pm: Fixed more ugly notices due
uninitialized vars.
* util/recon_scripts/snmpdevices.pl: Fixed due new interface.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7755 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DataServer.pm: Added feature to update custom
* field
on every XML process only with learning mode enabled.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7753 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f