* conf/pandora_server.conf: review of all file and removed
some bad parameters (netflow daemon and other values).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7635 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf: Review of default configuration
values and some new description / comments.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7632 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* bin/pandora_server,
conf/pandora_server.conf,
lib/PandoraFMS/Config.pm,
lib/PandoraFMS/Core.pm,
util/pandora_manage.pl: Added support for event storm protection and
disabling auto event validation.
* lib/PandoraFMS/Server.pm: Improved the server status update function
to use run less queries.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7556 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
* 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/SNMPServer.pm: Parse source field to obtain source
IP address not only when trap version is SNMPv2, but also when
snmp_pdu_address set to 1.
* conf/pandora_server.conf: Fixed comment.
* FreeBSD/pandora_server.conf: Added missing configuration tokens.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5626 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf,
lib/PandoraFMS/SNMPServer.pm,
lib/PandoraFMS/Config.pm: Added two new configuration tokens
suggested by Koichiro: snmp_ignore_authfailure and snmp_pdu_address.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5623 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf,
lib/PandoraFMS/Config.pm,
lib/PandoraFMS/PluginServer.pm: Use timeout by default instead of
pandora_exec.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5459 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf: Removed checksum token since it is
no longer used.
BUG FIXES: ID 3439367
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5145 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf: Added enterprise configuration tokens to
the default conf.
* lib/PandoraFMS/Config.pm: Changed the default location of the braa
binary.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4726 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf: Added the dbengine configuration token.
* lib/PandoraFMS/DataServer.pm: Read aditional module parameters from
the XML data file.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4283 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf
lib/PandoraFMS/Config.pm
lib/PandoraFMS/DataServer.pm: Added support for Openstreetmaps
API for reverse geolocation.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4073 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_server/DEBIAN/control,
pandora_server/pandora_server.spec,
pandora_server/pandora_server.redhat.spec: Added LWP dependency for
reverse Geocoding feature. This is included on all distros.
* pandora_server/conf/pandora_server.conf,
pandora_server/lib/PandoraFMS/Config.pm,
pandora_server/lib/PandoraFMS/DataServer.pm: Added support for reverse geocoding using
GoogleMaps api.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3806 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf*: Updated version. Commented nmap/xprobe2 related paths in Windows file.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3615 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* Config.pm: Parsing for mta_from doesn't remove blanks, allowing to
use a Normal name + Email address in the from.
* Tools.pm: Email output is parsed with a html decode first.
Added timeticks option for tools (intented to use in the future).
* pandora_server.conf: Example of usage in the mta_from with a fully
composed email address.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3452 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf.windows: Sample conf for running pandora server
on Windows (see windows.README).
* lib/PandoraFMS/NetworkServer.pm: Adapted to have SNMPGET and PING functions
redefined by each SO, this will allow to have native support on pandora
to run under different OS (need to check FreeBSD and Solaris!). Windows
support implemented.
* lib/PandoraFMS/Core.pm: Removed ping functions here and moved to Tools.pm
* lib/PandoraFMS/Tools.pm: Adapted Ping functions to work with any SO, at
this time Linux and Windows only, need to check for Solaris and BSD.
* util/windows.README: Small doc on how to make Pandora Server work on
Windows servers.
* util/pandora_logrotate: Removed the index in the logrotation.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3431 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf: Removed multicast options
* Makefile.PL: Removed need for dependencies on Mail::Sendmail
and Traceroute::PurePerl, now are included in the Pandora FMS
distribution.
* lib/PandoraFMS/Config.pm: Removed options for multicast
* lib/PandoraFMS/Traceroute.pm,
lib/PandoraFMS/Sendmail.pm,
lib/PandoraFMS/Traceroute/PurePerl.pm: Now included on Pandora FMS
distribution, this will help to do easier installs of Pandora, because
that packages was difficult to build/install in different distros.
* lib/PandoraFMS/Core.pm: Removed the old multicast-on change enterprise
feature, not used/supported anymore.
* lib/PandoraFMS/ReconServer.pm: Now uses the internal Traceroute Pureperl
implementation.
* lib/PandoraFMS/Tools.pm: Now uses the internal Mail::Sendmail copy.
* bin/pandora_server: Removed the multicast option from main loop.
* FreeBSD/pandora_server.conf: Removed multicast from options.
* util/mcast_client.pl: Deleted sample client for multicast.
* util/pandora_logrotate: Updated the rotate options for SNMP logfile.
* util/compaq_chassis_trap_manager2.pl: Added sample of SNMP Trap
postprocessor.
* pandora_server.redhat.spec,
pandora_server.spec,
DEBIAN/control: Updated packages deps and other minor changes (xprobe2 is not
mandatory now).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3365 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf: Some "fixed" descriptions and sample
setup, I hope this help to clarify new users how to setup the MTA
(A LOTS of problems with this in forums), and some new inline
documentation about some configuration tokens.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2534 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf: Several typos and better formating.
* util/change_remoteconfig.pl: Tool to massive edit the server IP
in remote configuration files. Could be modified to alter any other
fixed field.
* util/gpx2pandora_agent_data.pl: Transform a standard GPX GIS data
file in several Pandora FMS XML data server compatible files with GIS
data.
* util/gis.README: Small "documentation" on how to start to using GIS
in the Server.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2474 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf: New option, update_parent to let the
agent update it's parent by sending the parent name on the XML.
* lib/PandoraFMS/Config.pm: Support for new option update_parent.
* lib/PandoraFMS/Core.pm, lib/PandoraFMS/Dataserver.pm: Modified to
update the parent of an agent at creation time and on update if
the update_parent parameter is set to 1
* man/man3/PandoraFMS::Core.pm.3: Updated manpage with the new
documentation of the interface
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2422 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf: New option, self_monitoring.
* lib/PandoraFMS/Config.pm: Support for new option self_monitoring.
* lib/PandoraFMS/Core.pm: Access update is not refreshed by network
modules anymore (gaining a lot of performance here). Added new functions
for internal statistics and automonitoring.
* lib/PandoraFMS/Tools.pm: New funtions for self_monitoring.
* bin/pandora_server: Modified error handler to avoid show info about bad
load of some optional libraries.
Modified general loop of maintance tasks in three
blocks: high, medium and low latency. Placed here in fixed steps (5, 30 and
one minute) all tasks pending before by server_threshold. Added
self_monitoring and internal statistic mode (for group and servers).
* util/pandora_db.pl: Update tconfig with last time of database maintance
time
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2377 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf, lib/PandoraFMS/Config.pm: New configuration
parameters: recon_reverse_geolocation_mode, recon_reverse_geolocation_file,
recon_location_scatter_radius. As now the Recon Server can try to geolocate
an agent when it's found by revers geoip location.
* lib/PandoraFMS/Core.pm: Added first version of POD documentation to
create the manpage and to have most of the subrutines documented. Also
it's possible to add the description of the location to the GIS information
on the pandora_update_agent and pandora_create_agent subroutines. And
finaly moved away the GIS related functions (distance_moved) to their own
new module PandoraFMS::GIS
* lib/PandoraFMS/GIS.pm: New module to keep all the GIS related functions
of Pandora FMS. Now it exports distance_moved, get_reverse_geoip_sql,
get_reverse_geoip_file and get_random_close_point.
* lib/PandoraFMS/ReconServer.pm: Updated to get GIS information by doing
reverse IP geolocation using GIS module.
* man/man3/PandoraFMS::Core.pm.3, man/man3/PandoraFMS::GIS.pm.3: New
manpages for Core and GIS modules.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2368 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* bin/pandora_server: Better error management, avoiding to show Enterprise
loading errors, and showing in console critical errors, helping to identify
silly errors like DB credentials, etc.
Added usage of pandora_get_sharedconfig() to get configuration from DB.
* Config.pm: Updated build. Added pandora_get_sharedconfig(). Force three
config tokens to be readed from DB, using default values if cannot be readen
from database (agentaccess, realtimestat and stats_interval).
* Core.pm: Added new parameter to pandora_event() to pass status of the
event (validated, not validated). Implemented auto-validation of low
priority events: normal/ok events will be always shown as autovalidated, and
warning and normal events will be validated with critical events, and when
a module is restored (normal/ok), all it's warning/critical pending events
will be validated.
Fixed also bug with FF Threshold who doesnt' trigger events until FF + 1
instead FF value.
* Server.pm,
NetworkServer.pm,
Dataserver.pm,
ReconServer.pm: Raise event with status 0 (non validated) by default.
* NetworkServer.pm: Implemented support for SNMP v3.
* util/pandora_db.pm: Very important upgrade to this script. Now will
delete all huge tables (tagente_datos, tagente_datos_string and
tagent_acccess) using several independent blocks (by default 100) avoiding
mysql locks which happen in the past.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2341 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf, lib/PandoraFMS/Config.pm: Added
location_error parameter
* lib/PandoraFMS/Core.pm: Fixed bugs in the creation and update of
the agent that where messing with the locations. Fixed distance on the
earth formula. Use of the location_error parameter to decide if an
agent has moved or not.
* util/pandora_xml_stress.pl, util/pandora_xml_stress.README: added
parameter timezone_offset_range to let the timezone be random in the
range given, and added the code to use it.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2332 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf, lib/PandoraFMS/Config.pm,
lib/PandoraFMS/Core.pm, lib/PandoraFMS/DataServer.pm: Added activate_gis
configuration parameter, and modified Core.pm and Dataserver.pm to skip
positional data processing when activate_gis is not activated
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2305 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_server.spec: Added xprobe2 dep (we made the xprobe2 rpm package
so now it's possible to satisfy dependency). Alter all paths to binary from
/usr/local/bin to /usr/bin. Other minor issues in RPM fixed.
* pandora_server_installer: Added description to get deps from zypper and yum.
Installing services in debian/ubunty systems with update-rc.d.
Make check to link from /usr/local/bin to /usr/bin if install
deploy binary at /usr/local. /usr/bin is the new default.
* pandora_server_upgrade: /usr/bin as new default. Link issue fixed.
* DEBIAN/make_deb_package.sh: Fixed Makefile replace regexp to replace all
target binary to put then in the jail under /usr/bin path.
* DEBIAN/postinst: Fixed path for tentacle_server at /usr/bin
* DEBIAN/prerm: Using native debian commands to remove services.
* Tools.pm: If there is a problem loading something in the enterprise, show it
to log.
* util/pandora_server,
util/tentacle_serverd: new path to /usr/bin/
* pandora_server.conf: new path for pandora_exec to /usr/bin/
* util/plugin/udp_nmap_plugin.sh: Check parameters before calling to namp.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2220 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_server: Incremented shutting down grace time to 60 secs
because in some systems could take a lot of time to close all threads.
* conf/pandora_server.conf: Better defaults for Pandora FMS server default
install.
* Config.pm: Hey, this is officially RC1....
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2018 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf,
lib/PandoraFMS/Config.pm,
lib/PandoraFMS/Core.pm: Removed the inhibit_alerts configuration
token. Alert inhibition is configured on a per-agent basis.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1903 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf: Added sample configurations for
inhibit_alerts and use_xml_timestamp.
* lib/PandoraFMS/Config.pm: Added the inhibit_alerts configuration
token.
* lib/PandoraFMS/Core.pm: Added the option to inhibit agent alerts if
the parent has fired a critical alert.
* lib/PandoraFMS/DataServer.pm: Use the XML file last modification time
if no timestamp is specified.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1902 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_server.spec: Added nmap to required packages, removed xprobe2.
* lib/PandoraFMS/Config.pm, conf/pandora_server.conf: New token for nmap.
* lib/PandoraFMS/ReconServer.pm: New parent detection, TCP scanning imple-
mented using NMAP. Implemented TCP profile scanning.
* lib/PandoraFMS/Tools.pm: Some reordering in pandora_get_os() gives
more accurate OS guessing. enterprise_hook() now don't yell when enterprise
is not found :-)
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1868 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/pandoraFMS/DataServer.pm, Config.pm: Fixes bug #2811605. This
add a new config token to define max files queued to avoid problems
reading incoming dir with huge number of files.
* lib/PandoraFMS/Core.pm: Adds new feature to have optional agent
access graph & data. Included to improve the performance in huge systems
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1766 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* bin/pandora_network: Better management of snmpget binary call, using
a config setup variable and checking it in startup.
* pandora_server.conf: new options added (snmpget, UDP multicast)
* Config.pm: New options managed (snmpget), new version updated (3.0-dev)
* DB.pm: Fixed two issues that makes me some problems on undefined values.
* Tools.pm: New function to manage numerical data.
* util/plugin/multicast.pl: Fixed plugin for multicast check.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1508 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf: Added mta_user parameter who defines
mail address used for alerts.
* pandora_ctl: General control script to start/stop Pandora FMS
daemons.
* util/SLES10/*: Alternative start/stop daemons for SUSE and
other systems that don't work fine with standard scripts.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1239 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_network: Minimal style changes. Added status change in
tserver table on controlled shutdown.
* pandora_server: Added status change in tserver table on controlled
shutdown. Minimal changes and optimizations. Recheck for bad XML is
adjusted to 3 instead 10.Fixed problem with "blank" agent names. Added
support for async types (data, proc and string).
* config.pm: Added support for new config token: max_log_size. This
stablish a max log filesize.
* DB.pm: Added support for postprocess (as simple multiplier value).
Fixed problem with continuous update of laststart in server keepalive.
Updated also several logger priorities (raise them).
* Config.pm: pandora_get_os() fixed for void OSes. Logger() implements
a file-rotation system with a maximum in bytes for PandoraFMS log file.
* pandora_server.conf: Updated with new options and removed some from 1.3.1
* pandora_export: Deleted skeleton file por export server.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@967 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_dbstress.pl: Added suppor for "text" moduletypes.
* pandora_recon: Now is multithreaded. Better management of already
registered IP's. Better status update. Some fixes (xprobe2 crash).
* Config.pm: Added support for recon_threads token.
* Tools.pm: added pandora_trash_ascii(), autocreate
set agent in learning mode automatically.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@879 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f