* lib/PandoraFMS/SNMPServer.pm: Rewrite my commit at rev7388 in more
general way. logger() call was deleted here, because the corresponding
error message is recorded by pandora_crash(). Merged from 4.0.x.
* lib/PandoraFMS/Core.pm: Fixed that invalid regex in
critical_str or warning_str could make server down at worst.
Not used logger() here, because the corresponding error
message is recorded by pandora_crash(). Merged from 4.0.x.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7410 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/NetworkServer.pm: Added log traces to inform
about the problem of undefined return of snmpget command.
MERGED FROM 4.0.3
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7405 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/NetworkServer.pm: Controlled an error if output of
SNMP command is empty and fixed several error comparing port of SNMP
as numbers instead as strings.
MERGED FROM 4.0.3
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7402 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DataServer.pm: Fixed a bug which creates modules
with names which have \n\r and later create problems when editing
the module information.
MARGED FROM 4.0.3
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7394 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/SNMPServer.pm: Made sure SNMP filter is valid
before performing string matching. It could make Pandora Server
down at worst. Merged from 4.0 branch.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7389 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm,
lib/PandoraFMS/DataServer.pm,
util/pandora_db.pl: Implemented a real not-init status. Small fixes.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7324 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Return async modules to normal after
twice the module interval has elapsed.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7313 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Added new function to update
replicated events (enterprise feature) and fix some little
bugs
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7311 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DataServer.pm: Unset a missed data of the
parameters hash when create module on dataserver
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7286 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf
lib/PandoraFMS/Config.pm
lib/PandoraFMS/DB.pm
lib/PandoraFMS/Core.pm
bin/pandora_server: Added new thread to the
event replication process (enterprise feature)
and control this one and the policy queue patrol
process with new two configuration parameters
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7278 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/SNMPServer.pm: Added missing safe_output()
for trap filters. This fixed a bug that a backslash could not
escape its following character.
Merged from 4.0 branch.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7212 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Added fired alert count.
* lib/PandoraFMS/DataServer.pm: Do not process more than one XML from
the same agent at the same time.
* util/pandora_db.pl: Recalculate total module count.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7196 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm
lib/PandoraFMS/DataServer.pm: Added support for new agent data in
the XML as custom_id, url_address and custom fields
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7150 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Changed the unknown status treatment
as independent status to fit new needs. Change the internal command
to create event to have more parameters
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7114 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/NetworkServer.pm,
lib/PandoraFMS/Tools.pm: Added support for custom timeouts and retries
to remote modules.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7109 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf,
lib/PandoraFMS/Config.pm,
lib/PandoraFMS/DataServer.pm: Added a new configuration option to
make the data server process XML files in a stack instead of a queue.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7086 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm,
lib/PandoraFMS/Tools.pm: Added support for remote cron modules. Small
fixes.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7082 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Fixed bug: periodic (monthly and weekly)
planned downtime is not stopped at expected time.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7062 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/NetworkServer.pm,
lib/PandoraFMS/Tools.pm: Disable a module if a text obj tag cannot
be converted to an OID.
* lib/PandoraFMS/ReconServer.pm: Small improvements.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7008 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Added support for inverse intervals when calculating
the status of a module.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6978 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: changed to use own code instead the
external module Time::Piece.
* lib/PandoraFMS/Tools.pm: added function "month_have_days" for
to get the count of days for any month in any year.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6955 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: refactoriced the code for the new Planned
Downtime, now check the downtimes once and periodical and the
subtypes of downtimes.
* bin/pandora_server: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6925 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Server.pm:: added the feature to set a agent in
"Quiet" mode.
* lib/PandoraFMS/Core.pm, bin/pandora_server: cleaned source code
style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6897 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/PluginServer.pm: Adapted the plugin server to
new macros system and add check to timeout == 0
* util/pandora_migrate_plugins.pl: Add a new migration script
MANDATORY when upgrade Pandora FMS 4.0.x to 5.0 to adapt the
existing plugins to new macros system
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6866 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/PredictionServer.pm: changed for the SLA service
calculate alone instead before it was calculate for the module
service.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6857 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DB.pm: added function "get_agentmodule_data" to
get some data in a time period from a module.
* lib/PandoraFMS/PredictionServer.pm: into the function
"exec_prediction_module" avoid to fill the service modules with
"subtype" SLA because this modules fill automallity after process
the main modules for the service.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6823 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f