* DEBIAN/conffiles: added the conffiles to tell to package maker that its
the conf file.
* DEBIAN/make_deb_package.sh: changed the script to try to be similar to
spec RPM (set the location of perl libs).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* DEBIAN/make_deb_package.sh: added cpan parameter for to make module
packages or not.
* pandora_server.spec: force the location of lib.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2757 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DataServer.pm: XML data files coming from a disabled
agent are now discarded.
* util/pandora_manage.pl: Added CLI mode to disable/enable agents from
a given group. This will help admins to implement recurrent downtime periods.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2751 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_server_upgrade: Fixed a check on pandora_db.pl script in cron.
* lib/PandoraFMS/Config.pm: Version update to 3.1rc1 and build 100515
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2750 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_server_installer
man/man1/pandora_server.1.gz
man/man1/tentacle.1.gz: Added the man pages of
tentacle and pandora server and modified the
server installer script to install them
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2699 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/plugin/bgp_plugin.pl: New plugin: Connect the device via SNMP
and performs a check of each BGP connection to verify its active
status. If cannot connect or BGP has no connection or a single
connection its down, returns a CRITICAL state. It uses password to
provide SNMP community for device. It should work with SNMP v1 and v2c
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2693 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/dns_plugin.sh: New DNS plugin for the Plugin Server. It
checks a Domain/IP pair and also get time to get response from
a given DNS server (ms).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2691 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Made cascade protection recursive to
check any of the agent's parents in the tree.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2687 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Use the data timestamp instead of the
current time in the compression algorithm. Fixed regexps in
SNMP alerts.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2668 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Changed the behaviour of SNMP alerts.
Alert conditions are ANDed, not ORed.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2642 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/gpx2pandora_agent_data.pl: Added support to process
gpx files with tracks, plus the RTE format.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2628 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Fixed call to group stats and now
process all groups (included disabled) and group 1, because
with 3.1 group id 1 is not "all" anymore.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2625 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Removed a Log4x trace. Log4x feature
has been tested at this level, and works fine.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2605 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/ReconServer.pm: Trying to fix the problem
detected with recon and new modules from a network template.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2540 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Fallback to previous version, this fix
makes Pandora server to generate events constantly.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2538 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Fixed the problem that agent status(estado)
is never updated to $new_status if initial state of new agent is
"estado != last_status" with "$new_status == last_status".
eg) When new agents are added by recontask, estado=1 and last_status=0
are set.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2535 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
* util/pandora_manage.pl: New tool to do things in Pandora (system wide)
from the command line. This pretends to unify small maintance tips on
Pandora, intead have a miriad of small tools. First features are to
enable/disable alerts globally and to disable the enterprise ACL feature.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2523 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DataServer.pm: Fix for annoying notices from
Perl due reference to undefined variable (GIS).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2504 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Automonitoring includes now status of
database maintance and warns if more than 24hrs without running
database maintance script.
* util/pandora_db.pl: Added support to new purge parameters for
event, audits, snmp traps, string data and gis data. Added new
section to clean orphaned information (using an application -
implemented database referencial integrity model).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2500 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Set tagente_estado.current_interval to
tagente.intervalo if tagente_modulo.module_interval is 0.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2498 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
* lib/PandoraFMS/Server.pm: Added spaces between server name and server
type on the event generation string.
* lib/PandoraFMS/GeoIP.pm: MaxMind GeoIP PurePerl GPL library to access
reverse geoip data.
* lib/PandoraFMS/GIS.pm: Modified to use GeoIP.pm
* lib/PandoraFMS/DataServer.pm: Moved log line in case parent_agent_name
is not defined
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2463 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/tentacle_serverd,
util/pandora_server: Fixed "stop" problem in debian/ubuntu, which was
due a problem in redefinition of several LSB functions, stop function
was not working fine and exit condition was ignored.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2432 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
* lib/PandoraFMS/Core.pm, lib/PandoraFMS/Dataserver.pm: Modified to
update the parent of an agent if in learning mode.
* man/man3/PandoraFMS::Core.pm.3: Updated manpage with the new
parameter and improved documentation for pandora_update_agent
* lib/PandoraFMS/Config.pm: Updated build
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2416 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/*.pm, DEBIAN/make_deb_package.sh, pandora_server_*:
Updated year / build. Some spaces to tabs.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2410 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Updated documentation, fixed wrong parameters
in the call to distance_moved.
* man/man3/PandoraFMS::Core.pm.3: Updated manpage.
* lib/PandoraFMS/DataServer.pm: Added the process of position_description,
parent_agent_name now is readed (TODO: process it). Fixed bug #2926077
by handling the error returned by timelocal and ignoring the received
timestamp to use the server one.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2402 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Updated docuemtation of the interface.
* 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@2389 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Added comments to new statistical functions.
Added support for log4x in statistical functions.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2387 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Restored documentation lost in one of the
last commits.
* man/man3/PandoraFMS::Core.pm.3: Updated manpage with the restored
documentation
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2381 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Modified to use the new tables
(tgis_data_history and tgis_data_status).
* man/man3/PandoraFMS::Core.pm.3: Updated manpage with the new
documentation
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2379 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/tentacle_server: Updated tentacle server and synchronized with the
version from tentacle proyect.
* man/man1/tentacle_server.1: Updated manpage from the updated pod
documentation on bin/tentacle_server
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2367 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* bin/tentacle_server: Added first version of POD documentation, there
are still room for improvement (TODO: add the example section)
* man/man1/tentacle_server.1: ManPage generated from bin/tentacle_server
using pod2man.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2358 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DataServer.pm: Validation of positiona parameters, check
if the parameters are defined and if they have valid values.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2350 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
* util/pandora_db.pl: Script upgrade to purge data in several steps
avoiding timeout and deadlocks() in high capacity enviroments.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2333 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: Fixed spec to be more compatible with other
RPM distros.
* lib/PandoraFMS/NetworkServer.pm: Fixed ugly/noisy message "Use of
uninitialized value $output in string eq at /usr/local/share/perl
/5.10.0/PandoraFMS/NetworkServer.pm line 268".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2299 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Modified to unify create and update functions
using optinal parameters as Ramon sugested.
* lib/PandoraFMS/DataServer.pm: Modified to ignore invalid positional data,
use the unified functions from Core.pm, and store the agent_timestamp
modified by the agent_timezone.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2292 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Modified distance_moved function to calculate
the distance using Havesine formula to take in account the earths curvature
Modified update_agent_position to update also number_of_packages on
tgis_data
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2276 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm, lib/PandoraFMS/DataServer.pm: Fixed a bug with
some parameters called on wrong order, standarized the order of the
position parameters so always is longitude, latitude, altitude.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2274 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Modified to have different functions for the
creation and update of the agent when it has position information, also
added some auxiliary functions to store and update this position information.
* lib/PandoraFMS/DataServer.pm: Modified to use the new functions to create
and update the agent data adding also the position information.
* lib/PandoraFMS/PluginServer.pm, lib/PandoraFMS/PredictionServer.pm,
lib/PandoraFMS/NetworkServer.pm, lib/PandoraFMS/WMIServer.pm: Modified to use
again the old functions to create and update the angent as in this servers
we don't have the position information.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2272 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* DEBIAN/* : restore previus version, I had mistake with this directory in
Eclipse aplication between Enterprise and Open.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2270 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DataServer.pm: Updated to process GIS information from
the .data (altitude, latitude, longitude and timezone_offset).
* lib/PandoraFMS/Core.pm: Added pandora_update_position function, to
store GIS information on the databse.
* lib/PandoraFMS/PluginServer.pm, lib/PandoraFMS/PredictionServer.pm,
lib/PandoraFMS/NetworkServer.pm, lib/PandoraFMS/WMIServer.pm: Updated
to send timezone_offset to pandora_update_agent function.
* util/pandora_xml_stress.pl, util/pandora_xml_stress.README: Updated
to generate agents with GIS information (altitude, latitude, longitude
and timezone_offset).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2262 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Fixed problem generating events with
character ' that makes SQL queries in console to fail.
* util/plugin/webcheck_plugin.sh: Christmas extra :-). Plugin
to check WEB content change (by MD5 stamp).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2255 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_server.spec: Start tentacle after install breaks the
Upgrade process on RPM (error if already running).
* util/pandora_server: Added mysql as "should-start" in LSB tags
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2250 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm,
lib/PandoraFMS/ReconServer.pm,
lib/PandoraFMS/DataServer.pm: Use agent provided interval for agent
auto creation. The default interval was being used instead.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2237 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Fixed some typos in planned downtime subroutine.
* bin/pandora_server: Some operations like planned downtime check and
server down detection are put in a low-priority check, more efficient and
less time-consuming.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2235 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
* DEBIAN/postinst: change the code to insert as service the server and
the server tentacle.
Fixes: 2911327
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2210 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Changed spaces for tabs.
* lib/PandoraFMS/Config.pm: Updated build to last change. Changed spaces for tabs.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2193 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_server_installer: Added variables and used in the code.
Added Ubuntu specific stop scripts. Added link removing with update-rc.d.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2168 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Config.pm: Changed string from RC2 to RC3.
Updated build due to last changes.
* DEBIAN/control, DEBIAN/make_deb_package.sh: Changed string from rc2
to RC3
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2140 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Added id_alert to alert macros. Could be
useful to pass a numeric ID to do alert correlation externally to
Pandora FMS.
* util/plugin/ssh_pandoraplugin.sh: Fixed bug in user parameter
processing. Thanks Victoria.
* util/plugin/udp_nmap_plugin.sh: Removed output of errors.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2117 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_checkdep.pl: Deleted old dep checker, not used anymore.
* pandora_server_upgrade: Several fixes, adding logrotate conf and more
link, permissions and startup scripts stuff fixed.
* DEBIAN/control: Updated to RC2, deleted old deps not used anymore.
* DEBIAN/postinst: Simplified some stuff who don't work nice (startup
script links, logrotate missing and pandora user doesn't exist. Also problems
with permissions with tentacle_server.
* DEBIAN/prerm: Simplified, fixed problems deleting startup links.
* DEBIAN/conffiles: Was not working and causes pandora_server.conf to do
not exist in target systems. Removing it works nice.
DEBian packages works 100%, tested on latest Debian Stable from scratch.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2098 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_server_installer: A few bunch of upgrades for SUSE, added
logrotate.d and some minor fixes.
* pandora_server_upgrade: Some minor fixes.
* PandoraFMS/Tools.pm: Fixes to internal SMTP Auth mechanism.
* util/pandora_logrotate: Much better configuration for pandora
logrotate config, this also rotate pandora_server.error and delete
files after 5 days.
* util/pandora_server: more fixes and small improvements to daemon
script: Removed Mysql dependency on LSB, added variable for let user
to choose timeout before KILL, and now checks for especific .conf file
on detecting PID, this should work with several servers running in the
same server.
* util/plugin/ssh_pandoraplugin.sh: rewritten to use real parameters
and be more verbose and easy to integrate in Pandora FMS Plugin server.
* util/plugin/udp_nmap_plugin.sh: Same as above.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2097 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Config.pm: Changed string from RC1 to RC2.
Use tabs instead spaces. Updated build due to last changes.
* pandora_server_installer: Added text to help the user to change the
default password. Added TO DO.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2091 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* DEBIAN/make_deb_package.sh: move the script to make the deb package into
the DEBIAN and change some things into the sourcecode for the directory
change.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2078 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* DEBIAN/control, DEBIAN/md5sums, DEBIAN/postinst, DEBIAN/prerm,
DEBIAN/conffiles: debian base files for to make a .deb package.
* make_deb_package.sh: shell script for make automatically the deb package
for standard installation in a Debian Lenny, this script make a package
"pandorafms.server_3.0.0.rc1.deb" and the other necesary packages (perl).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2072 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
First bug detected & fixed after RC1, whoah :/
* lib/PandoraFMS/Core.pm: Max/Min alert logic is inverted on match check
box/switch option in interface. Fixed in server code. This is applicable
only on max & min alert (when used both).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2043 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/SNMPServer.pm: Save as much information as possible if
the trap could not be properly parsed.
* lib/PandoraFMS/Core.pm: Changed the name of the alert name macro to
avoid conflicts with other macros.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2037 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* tools.pm, core.pm: Float data with "," will be replace this
character with "." and manage it properly as float.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2035 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_server: Updated error string when service cannot startup
(show both pandora_server.log and pandora_server.error)
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2028 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DataServer.pm: Do not process disabled modules.
* bin/pandora_server: Start logging before trying to connect to the DB.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2026 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Keepalive was not working properly. Keepalive
moduletype is now managed like a proc (0 = BAD) in get_status function.
* util/pandora_server: Start/Stop daemon now works and problem has been
fixed, and I'm very happy after so many days trying to figure what the
hell was happening here :-)
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2025 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/SNMPServer.pm: Fixed small problem in snmp2agent
forwarding and better implementation of server error control.
Also solved problem with duplicated traps in SNMP console.
* lib/PandoraFMS/Server.pm: better implementation of server error control.
* lib/PandoraFMS/Core.pm: SNMP alerts now show the IP in _agent_ macro
* lib/PandoraFMS/Tools.pm: Better management of enterprise_hook on
opensource version.
* util/alert_multicast.pl: Added sample of alert script for render
alerts as multicast XML.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2023 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
* pandora_server_installer: Fixed usage of old pathnames /usr/share/pandora
Fixed name of pandora_db cron.daily entry.
* bin/pandora_server: Multicast status report now report each 30 x
server_threshold.
* lib/Core.pm: Alert event now show more information (module name). Alert
messages like XXX going down to / going up from are replaced by more
simple "going to CRITICAL/NORMAL/WARNING", I hope this will be more clear.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2016 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DataServer.pm: Reduced timeout for sleep
on BADXML from 60 to 10 sec. This could result in bottleneck
when several BADXML found at the same time. Default code
retries 3 times x 10 secs, time enough to discard and retry.
* util/pandora_db.pl: Disabled non-init modules are not deleted.
This is needed for disabled modules coming from a remote conf
(manual or by policy) who cannot execute in agent. If are
deleted each day after purge, will appear as "unknown" and
admin will need to disable it again, and the same next day.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1994 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_server.spec: A complete uninstall for RPM. Database
is not killed because user could be just uninstalling one of
multiple servers and drop it will not be funny :-)
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1993 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Config.pm: Updatged build.
* lib/PandoraFMS/Core.pm: Added new macro fields for alerts:
id_agent, alert_priority, alert name and module name. Also
fixed a problem in macro substitution when recursive fields
was used.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1986 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_server_installer: Fixes some problems detecting Linux
(was skipping tentacle installation).
* util/tentacle_serverd: Fixed some problems starting tentacle
because short timeout after starting and because the unquoted grep.
* util/pandora_server: Incresed sleep time on start.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1965 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_server_installer: Fixed a few bugs on non-Linux platforms
* util/pandora_server, util/tentacle_serverd: Didn't work on Linux
(Ubuntu). Fixed she-bang.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1964 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_server.spec: Fixed a few details.
* bin/pandora_server: Error handler needs to be reviewed, Enterprise
errors are too nasty :(
* util/tentacle_serverd: Fixed LSB tags problems for RPM install
* util/pandora_server: Fixed LSB tags problems and fix a bug who make
script inusable :(
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1960 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_db.pl: Minor improvements in script. Added
a switch for mode without compact.
* util/pandora_server: Added higher sleep in restart mode to
wait some busy threads to stop before start.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1956 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_exec -> bin/pandora_exec: Moved.
* pandora_server -> util/pandora_server: Moved.
* plugins/pandora_loadgen.pl
plugins/pandora_server_status.pl: New plugins for generate data
and get Pandora FMS server status and load.
* Config.pm, pandora_db.pl: Version update.
* pandora_server.spec,
Makefile.PL,
pandora_server_installer: Updated paths and dependencies
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1946 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* bin/pandora_server: Now uses $Config{"enterprise"} to know if
enterprise is loaded, and don't try to call enterprise_hook if is not.
I experience a high rate of inventory-enterprise hook errors in log.
* SNMPServer.pm: Dont call snmp_get_trap2agent enterprise_hook if
not enterprise loaded.
* DataServer.pm: Dont call process_inventory_data if not
enterprise loaded.
* util/pandora_backup.sh: New command line backup and restore tool.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1936 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_server.spec: Updated dependency for sudo.
* util/tentacle_serverd: su cannot work as expected in SLES11, so
we fallback to sudo again.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1916 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/PredictionServer.pm: Fixed some warning on non init
variables.
* lib/PandoraFMS/Core.pm: Now uses alert name instead alert description
in event description.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1911 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: HTML entities in alert fields are properly
decoded. Alert emails can be sent to multiple comma separated
addresses.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1907 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: Using chkconfig for service install. Using the new
logrotate config for automatic logfile management.
* pandora_server_installer: Using new logrotate config file.
* bin/pandora_server: Enterprise load notice are shown after main banner.
* lib/PandoraFMS/Config.pm: Updated version (again).
* util/pandora_logrotate: New conf file for /etc/logrotate.d/
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1900 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/tentacle_serverd: Remote config .conf and
.md5 files are now stored in different subdirectories.
* bin/tentacle_server: Updated to latest version.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1887 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Config.pm,
lib/PandoraFMS/DataServer.pm: Added an option to ignore timestamps in
XML data files and use file timestamps instead.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1877 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/tentacle_serverd: Using SU instead SUDO, idea from
"paco", from our forums. This makes this script much more
compatible with other systems, because sudo is not so common.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1876 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/agent_names.txt, util/pandora_xml_stress.conf: delete this files
because it's the local conf files generates for local configurations, and
by mistake I upload.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1875 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Tools.pm: Undone commit of 19/8 to fix ugly mesg from
enterprise load: was breaking enterprise....
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1869 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
* pandora_server.spec: Updated some dependencies. Also included the
install of pandora_db maintance script in cron.daily.
* pandora_server, tentacle_serverd: Added short description to able
yast visualizate correctly the description in software selection screen.
* lib/PandoraFMS/Core.pm: Fixed problem with OS Detection at creation. Added
support for AUTOTIME (time of data is given by the server instead by data
coming from the agent) and autoimport of agent description.
* util/tentacle_serverd: Call to umask to let tentacle_server create
files with mask 0007, because Enterprise version need to write files
fetched with tentacle.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1861 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/tentacle_serverd: Call to umask to let tentacle_server create
files with mask 0007, because Enterprise version need to write files
fetched with tentacle.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1852 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_server: Using new method to get PID of process, compatible with
any distro (SUSE problems reported). Removed old stuff and updated headers.
* pandora_server_installer: A lot of improvementes and added separated code
for Ubuntu/Debian and SUSE targets. Fixed some minor bugs reported.
* bin/pandora_server: Added a new die handled for manage crashes and report
more information into logs and console on startup. This helps to determine
some common problems.
* Config.pm: Updated version number.
* util/tentacle_serverd: Fixed startup script to work also in SUSE. New
code for getpid compatible with all distros.
* Makefile.PL, NetworkServer.pm: Removed Net::Ping dependency,
not used anymore. Pending to remove Date::Manip from pandora_db script.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1840 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm,
lib/PandoraFMS/ReconServer.pm,
lib/PandoraFMS/DataServer.pm: Set group, description and post_process
when auto-creating an agent/module.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1828 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Add id_agente to tagente_estado when
creating a new module.
* lib/PandoraFMS/DataServer.pm: Added support for inventory XML files.
* lib/PandoraFMS/Tools.pm: Moved get_tag_value function from
DataServer.pm to Tools.pm.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1826 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* SLES10/pandora_wmi, pandora_plugin, pandora_prediction
pandora_snmpconsole, pandora_recon, pandora_server
pandora_network: Deleted from repository. We don't need these
scripts anymore.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1825 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_server.spec: Changed the architecture, changed the
release, the "_" was a mistake.
* pandora_server: Added chkconfig handling.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1798 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_server.spec: Rewriten to fit 3.0 requirements.
Succesfully built packages for: CentOS5, Fedora 11, RHEL5.Still
needs some tests in SuSe.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1777 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
* util/pandora_xml_stress.pl: Let the user specify the maximum number
of threads.
* util/pandora_xml_stress.README: Updated the documentation.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1739 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_xml_stress.pl,
util/pandora_xml_stress.README: Added to repository. XML stress tool
and README.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1728 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DataServer.pm: Created a new function to retrieve XML
tag values ('suppressempty' not needed anymore).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1727 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_diagnostic.sh: Command line diagnostic tool for
gather information in order to diagnose problems in system running
Pandora FMS. This returns a txt file with a lot of system information.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1725 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DataServer.pm: Fixed timestamps for data lists. Made
XML::Simple return an empty string instead of an empty hash when an
empty value is found in an XML data file.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1715 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Reset server status at start-up in case the
server did not cleanly shut down the last time.
* bin/pandora_server: Fixed min_ff_event calculation.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1676 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Generate one event for each alert (instead
of one event for each action).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1657 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/SNMPServer.pm, lib/PandoraFMS/Core.pm: Generate
an event when executing a SNMP alert. Small fixes.
* lib/PandoraFMS/ReconServer.pm: Enabled OS filtering.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1652 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/SNMPServer.pm: Add a newline character after
writing a trap to the SNMP log to make it more readable.
* lib/PandoraFMS/PluginServer.pm,
lib/PandoraFMS/ProducerConsumerServer.pm, lib/PandoraFMS/Server.pm,
lib/PandoraFMS/PredictionServer.pm, lib/PandoraFMS/Core.pm,
lib/PandoraFMS/DataServer.pm, lib/PandoraFMS/NetworkServer.pm,
lib/PandoraFMS/WMIServer.pm: Properly set tagente_estado.running_by.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1651 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Server.pm: Enabled thread status detection when
available.
* lib/PandoraFMS/Core.pm: Fixed module status calculation. Moved and
rewrote the old pandora_ping* functions. Small aesthetic fixes.
* lib/PandoraFMS/ReconServer.pm, lib/PandoraFMS/NetworkServer.pm: Use
the new pandora_ping* functions. The old functions were not thread
safe and had to lock.
* bin/pandora_server: Properly shutdown on error.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1643 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/ReconServer.pm: Temporarily disabled TCP scans, the
Recon Server was too slow. Fixed a bug that reset recon tasks
when scanning large networks.
* lib/PandoraFMS/DataServer.pm: Small fix.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1630 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm, lib/PandoraFMS/DataServer.pm: Properly set
module interval when auto-creating modules.
* lib/PandoraFMS/NetworkServer.pm: Disabled error messages from
snmpget. The logs where flooded with timeout messages.
* util/pandora_db.pl: Updated to work with the new code.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1626 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/ProducerConsumerServer.pm: Important fix. Queued
elements were processed in the wrong order.
* lib/PandoraFMS/Core.pm, lib/PandoraFMS/ReconServer.pm,
lib/PandoraFMS/DataServer.pm: Updated pandora_create_agent to
reflect the latest changes. Some fixes to Recon Server.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1622 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/ReconServer.pm: Fixed a typo that made the server go
down.
* bin/pandora_server: Prevent alarm from bombing the main thread when
called within a thread.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1621 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_ctl, pandora_network, pandora_wmi, pandora_plugin,
pandora_prediction, bin/pandora_wmi, bin/pandora_plugin,
bin/pandora_prediction, bin/pandora_snmpconsole, bin/pandora_recon,
bin/pandora_network, pandora_recon, pandora_snmpconsole: Deleted
from repository. Old server code and startup scripts.
* Makefile.PL, pandora_server_installer, lib/PandoraFMS/Config.pm
lib/PandoraFMS/DB.pm, lib/PandoraFMS/Tools.pm, bin/pandora_server,
pandora_package_installer, pandora_server: Updated to work with the
new code, removed unneeded dependencies, fixed some bugs etc.
* lib/PandoraFMS/SNMPServer.pm, lib/PandoraFMS/PluginServer.pm,
lib/PandoraFMS/ProducerConsumerServer.pm, lib/PandoraFMS/Server.pm,
lib/PandoraFMS/PredictionServer.pm, lib/PandoraFMS/Core.pm,
lib/PandoraFMS/ReconServer.pm, lib/PandoraFMS/DataServer.pm,
lib/PandoraFMS/NetworkServer.pm, lib/PandoraFMS/WMIServer.pm: Added
to repository. New server code.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1620 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* DB.pm: Function to process SNMP Alerts was not properly exported, so
SNMP alerts in some environments don't run. Fixed (this is ok in 2.1).
* util/udp_client.pl: Client to connect with pandora windows agent mini
server and using with alerts to manage remote process / services in Windows
* util/mcast_client.pl: Tool to check the UDP multicast notification
service of Pandora.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1593 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Tools.pm: Added Apple to the detected OS'es
* bin/pandora_recon: Added TCP scanning if ICMP fails to more accurately
detect systems that are firewalled from pings.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1571 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
* pandoradb_migrate_20_to_21.sql, pandoradb.sql: Fixed going up/down
strings
* godmode/setup/setup.php: Fixed event hours display
* operation/events/events.php: Fixed several major bugs with pagination
and the new event types.
* include/functions.php, include/functions_ui.php,
include/functions_html.php: Moved pagination and print_help_tip to
functions_ui.php. Repeat id's are now fixed backwards compatible.
Also fixed a bug in print_select where type comparisons against would
fail since PHP evaluates strings to (int) 0
* include/functions_events.php: Added print_event_type_img () and altered
the other functions to work with it
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1471 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DB.pm: Combined alerts are working again.
* bin/pandora_snmpconsole: Moved calcula_alerta_snmp to DB.pm so it
can be called from other modules.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1445 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* bin/pandora_network: An important BUG discovered in SNMP call locking
mechanism. Now calls to SNMP are using exec to snmpget command. Much
faster due solved locking problems.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1440 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_db.pl: BUGFIX. DB Maintance was deleting data older than 24hr
since commit of 12th January!.
* pandora_wmi, pandora_network, pandora_plugin: Algorithm upgraded.
First are executed modules with less margin until be considered down and
modules with flag of manual execution.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1419 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* bin/pandora_server: Fixed a typo in call to pandora_writestate() who
makes server exiting with "Can't call method 'prepare'". That affects only
to keepalive modules. Thanks to Esben for reporting.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1408 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* DB.pm: Fixed NOT behaviour of alerts, now works as supposed to do.
* pandora_db.pl: Deleted pending modules, fixed problems using bad DB
function.
* Config.pm: Version update.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1402 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/udp_client: Added to repository. Remote alert execution
script. To be used in "Command" section of the new alert system.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1399 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_server_upgrade: Script to upgrade to latest version
Pandora FMS server components / code.
* bin/panora_network: Banner on load are rendered.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1375 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DB.pm: Take into account the alert option
'matches_value'.
* bin/pandora_server: Added support for forced alert execution.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1373 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* Config.pm: Now works without breaking the server :-). Show verbose info
only when verbosity enabled (>4).
* pandora_server: more issues with verbosity level. Fixed a typo on
management of async_proc moduletypes. Freeing a hash reference on keepalive
solves a memleak.
* DB.pm: Converting to the same float when comparing two numbers.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1368 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_wmi, pandora_plugin, pandora_recon: Updates merged from
2.0 version. Different small fixes and improved performance.
* DB.pm: Support for fixes in wmi/plugin server. Call of enterprise
function pandora_mcast_change_report() is done now on real status change
code not in alert. Added update_on_error() function to update status table
when remote modules cannot init (update last_try field to avoid unnecesary
attempts).
* Config.pm: Build update, some stuff cleaned. Server startup info is show
only when verbose level is activated.
* pandora_network: Startup messages are not shown if verbose < 5.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1358 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DB.pm: Partially rewrote the alert core to support the
new DB schemas. Compound alerts have been temporarily disabled.
Rewrote alert macro substitution code.
* lib/PandoraFMS/Tools.pm,
bin/pandora_snmpconsole: Aesthetic changes to enterprise code.
* lib/PandoraFMS/Config.pm,
bin/pandora_network: Added support for UDP multicast status reports
(enterprise version).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1347 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* DB.pm: Solved an invalid reference to hash variable affecting to
postprocess calculation.
* pandora_recon: Now is compatible with the latest changes. Solved a
problem in eval() block. Also fixed a old bug mixing network profiles.
This fix will be ported to stable version ASAP.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1342 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This is a MAJOR upgrade that _BREAK_ your current 2.1 trunk version.
Needs an upgrade of DB Schema. At this time no conversion tool has been
provided. Libs and console needs also to be re-deployed.
* pandora_server: KeepAlive module is now processed OUTSIDE
pandora_lastagentcontact() function, in it's own function. This makes that
keepalive only be refreshed on agent data, not network. This should
make keepalive works as "agent down detector" in a definitive way, also
it's an important performance improvement operation.
* pandora_db.pl: Performance improvements. If compact days = 0 skip.
Compactation and delete needs to be improved in speed.
* DB.pm: Added more generic DB access functions (db_insert, db_update,
db_delete). Major rewrite of pandora_writestate(). Now uses three different
values for status (NORMAL, WARNING, CRITICAL) and manage all modules like
old monitor modules. Uses new fields for control event flip/flop with a
counter. Also uses new WARNING/CRITICAL thresholds to calculate in store-
time the status.
pandora_accessupdate() Function now uses only utimestamp. Tagente_datos and
tagente_datos_string has been updated and do not use timestamp (string) and
id_agent index anymore. Big improvement has been noticed in performance
tests after this change !. tagente_datos_inc has been modified also.
pandora_writedata() needs a lot of improvement :(. Added support for
modules without history.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1325 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* bin/pandora_recon: Added a timeout to pandora_getparent(). The call
to traceroute() would hang despite query_timeout being set.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1302 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions.php: format_for_graph is now much simpler and uses
format_numeric.
* include/functions_db.php: give_note_author, give_incident_author,
dame_numero_notas, borrar_incidencia, event_insert and
return_event_description are now in their respective functions_*.php files
but under a new name. Fixed delete_agent transaction error detection
* include/functions_events.php: Added get_event_description and
create_event (formerly return_event_description and event_insert)
* include/functions_html.php: print_timestamp attributes should be default
empty, not required. Added print_username for a consistent username print
* operation/agentes/ver_agente.php: Function renaming (create_event)
* operation/incidents/incident.php: Partial rewrite. Uses new functions.
Also added some of feature request #2264838
* operation/incidents/incident_detail.php: Partial rewrite. Uses new
functions. Added some of feature request #2264838 functionality.
* operation/incidents/incident_search.php,
operation/incidents/incident_statistics.php: Minor style update
* pandoradb.sql: New tincidencia and tnota layout. No use for tnota_inc
* include/functions_incidents.php: All incidents functions. Documentation
will be online soon. Also includes an upgrade mechanism for SVN users.
Mechanism should be removed for a stable version and integrated into
install/upgrade tool.
* lib/PandoraFMS/DB.pm: New table layout doesn't require timestamp anymore
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1286 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