* lib/PandoraFMS/DB.pm: Fixed a missing $ in sub header definition for args :(
and some warnings also fixe
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@668 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf, lib/PandoraFMS/Config.pm, bin/pandora_network:
Merged code from NG branch: Added multiping check (global setting 'icmp_checks')
on network server because in some WAN enviroments with erratic packet loss on non TCP
connections would cause recurrent false positives. New config token added to config
file (icmp_checks). Updated default .conf
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@667 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DB.pm: Fixed alert that fires always one time more than
max_alert defined. Also fixed several issues with "Ceased" support for alerts
and correct internal_counter problem. Now works fine !
* util/pandora_db.pl: Purge of tagent_access was not working fine, and fixed
another problem with id_agent 0 data in tagente_datos.
After about 12 hours of intense testing this seems to work very fine, probably
this server code will be the final ! :-)
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@664 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DB.pm: Updated and fixed several problems with alerts.
Now notification of alert ceased is properly implemented and works
inside threshold timegap. Event are fired using alert description and not
alert type, and automatically ceased alerts (depending on min_alert and
internal counter) give up alert status and generate event.
* bin/pandora_snmpconsole: Updated call to execute_alert.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@663 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DB.pm: Fixed bug for autoimported modules #1805654
* lib/PandoraFMS/DB.pm: Fixed problem with fixed alerts. Now reports when
problem its fixed in event manager (after threshold expires!).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@662 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_db.pl: Added some fixes and new checks for database
consistency. Also purge non-init modules (needed to avoid unused modules
that take too much time on network servers!).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@627 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf: Final fixes for default file.
* lib/PandoraFMS/Config.pm: Fixed stupid typo in snmpconsole parameter.
* bin/*: Disabled flush for each I/O (ready for production).
This should be last commit before Beta2 :-)
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@607 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* DB.pm: Alert time support uses TIME format instead numeric (changes requested
by esanchezm).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@592 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib: Linked to bin/PandoraFMS, for use in Makefile.PL
* Makefile.PL: Perl standard interface for make (to install)
* bin/pandora_db.pl: Some small fixes and information strings updated.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@584 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_network.pl: Added concurrency locking for ICMP and
removed previos method (repeating tests). This sould work fine and
faster. ICMP Latency added as independent function. This sould go
on a new library for 1.4 or 2.0 version. Removed some debug
commented code.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@569 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_network.pl: BugFix: SNMP calls that was causing segfauls was
because NetSNMP (SNMP) library is not thread safe !. Simple locking
mechanism was enough to run code safely !. Main SQL sentence fixed,
removed some debug code.
* pandora_server.conf: added sample of network_thread token
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@566 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_server.pl: Small indenting changes.
* PandoraFMS/DB.pm: Added generic access to database using
give_db_value() function.
* pandora_network.pl: Porting code from 2.0 trunk, code from 1.3 was
too slow. Solved many issues of stability. Changed entire balancing
and task assigment algorithm.
* PandoraFMS/Config.pm: Added network_thread config option to
fine-tune network server.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@565 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* bin/pandora_recon.pl: Another patch, to create records in
tagente_estado using different values for "estado" field, (100 for
non-monitors, 0 for monitors), in the same way console does.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@561 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* bin/pandora_recon.pl: Testing changes for two items: (a) Bug
detected in forking startup (-D). (b) Bug detected due creation of
modules without inserting record in tagente_estado table.
* bin/pandora_server.pl: Updated some flags (IO flush), and
indenting some code.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@559 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* bin/pandora_server.pl: Fixed a bug which make
impossible to figure out what the error was
(if there was) when launching the pandora_server.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@557 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
Pandora Console:
* images/lupa.png: better image
* operation/reporting/reporting.php: New summary file for reportings
* operation/menu.php: Changed code to show new reporting file.
Pandora Agents:
* linux/pandora_agent.conf: Changed log and temp paths.
Pandora Server:
* conf/pandora_server.conf: Changed default incomming dir and log.
Fixed small bug with dbuser.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@549 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_doc/en/pandora_install.xml: Added explanation about
the new directory which must be created to works
with the #1744248 feature request.
* conf/pandora_server.conf: Fixed bug #1744240
* pandora_server: Added feature request #1744248
* pandora_recon: Added feature request #1744248
* pandora_network: Added feature request #1744248
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@547 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This should be definitive commit for Beta1
* General cleanup of unused or old stuff.
* bin/PandoraFMS/Config.pm: Now uses errorlog for each perl
error. Now render database bad connect string in connection phase
(useful to debug startup errors by blank spaces).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@540 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* specs/fedoracore5/pandora_server.spec: Moving PandoraFMS
perl modules to the perl directory instead of leaving them
in the pandora_server main directory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@536 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* bin/pandora_recon.pl: This sould be final modifications for recon.
Fixed a bug reported by Enrique Verdes in the development list.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@535 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* bin/pandora_recon: Threads is not a good idea, we need to use fork()
in the future. At this moment, multithread disabled for recon.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@527 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* bin/pandora_server.pl: Now keepalive subprocess uses alert_check
function fon DB.pm
* bin/PandoraFMS/Config.pm: Updated version number.
* bin/PandoraFMS/DB.pm: alert_check function now support
individual alert disable.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@518 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* bin/pandora_network.pl: Net::Ping::External does not solve our
odd problems. Fallback again to Net::Ping interface, not using a
double check to be sure that data is good. I hope this works :(
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@493 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
Important update. Now all PM files (library) goes on PandoraFMS
subdirectory from /bin. This should be copied/moved to system
default Perl libraries (like /usr/lib/perl). All .PM files changes
it's name.
We also replace Net::Ping for Alive checks because recently
problems discovered in packet lenght payload and problems with
threads. We fallback to Net::Ping::External, now rewrapped to
PandoraFMS::PingExternal and distributed with PandoraFMS for easy
deployment.
bin/*.pm: Renamed to equivalent files in ./bin/PandoraFMS dir
* bin/pandora_network.pl: Now uses ping() from PingExternal to
make alive checks. Latency checks is the only function that
actually needs root now. External Ping could be executed from any
user (it uses PING from system).
* bin/PandoraFMS: Now contains all .PM files for PandoraFMS.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@490 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_network.pm: Small bug that causes some hosts to do not reply
at ICMP request with a small payload (1 byte). Now uses by default
32 bytes per reply. Also modified icmp_data for latency checks because
was not using global timeout and has the same problems with small
payloads.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@487 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_network.pm: Small bug that causes some hosts to do not reply
at ICMP request with a small payload (1 byte). Now uses by default
32 bytes per reply.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@486 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf: Added support for dbname option.
* pandora_snmpconsole: Version and bash header updated.
* bin/pandora_config.pm: Added support for dbname option. Added
some default options for DB.
* bin/pandora_db.pm: Fixed stupid bug in alert execution. Added
support for dbname option and other minor fixes.
* bin/pandora_server.pl,
bin/pandora_network.pl,
bin/pandora_snmpconsole.pl,
bin/pandora_recon.pl: Added support for dbname option.
* pandora_server: Version update
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@468 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_network: Version banner update.
* pandora_db.pm: Fixed problem in function
module_generic_data_inc() that doesn't create record on new
data_inc modules, only updates if already exists. Fixed and
tested.
* pandora_network.pm: pandora_query_snmp() function return 0 if
cannot stablish connection. Also, snmp_data_proc value of 2 (down)
is turned to 0 for Pandora FMS. Also, now when cannot connect,
ONLY UPDATE last_try field, not timestamp field in tagente_estado
table. I don't know why was in that way until this moment ¿?
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@460 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* bin/pandora_db.pm: Fixed some problems with quotes and other aditional
checks.
* bin/pandora_network.pl: Fixed some problems with quotes and other
aditional checks. Detected a serious BUG in snmplib for Ubuntu Freeze
(already submitted as detected BUG with veryhigh priority). This makes
pandora network server unusable on feisty until fixed :(. Bug item is in
https://bugs.launchpad.net/ubuntu/+source/net-snmp/+bug/65047
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@452 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* bin/pandora_network.pl: Fix problem with ICMP timeouts.
* util/pandora_dbstress.pl: Update for new needsupdate fix in some
DB code. Needs to be improved for specific module/agent selection.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@449 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_db.pm: Added sanity checks to avoid problems when some
modules coming without names or cannot locate a valid agent.
* pandora_server.pl: Added sanity checks to avoid unnamed modules
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@444 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_tools.pm: Now expor sqlWrap() function to parse " and '
chars in some SQL sentences. Use with careful.
* pandora_network.pm: Fixed little bug with undeclared variable
warning.
* pandora_db.pm: Implemented NEW text alerts with regexp. Internal
audit now uses macros for alerts. Fixed a bug in
crea_agente_modulo() when uses ' chars in name or module
description (using sqlWrap to clean text). General code cleanup.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@432 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f