* pandora_server/lib/PandoraFMS/SNMPServer.pm
pandora_server/lib/PandoraFMS/Core.pm: SNMP Alerts now receibe
trap type on the _data_ macro.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5028 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/recon_scripts/snmpdevices.pl: Fixed a bug which creates duplicated
modules when running the script.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5016 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_manage.pl: Changed way to create and event now is possible
to create an event without agent_name and without agent_module.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5014 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_db.pl: Fixed bug when a blank space was behind
the data in the .conf file.
* util/pandora_diagnostic.sh,
util/pandora_db.pl,
util/pandora_manage.pl,
util/pandora_dbstress.pl: Updated version strings.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4993 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Config.pm: Updated version.
* lib/PandoraFMS/NetworkServer.pm: Fixed problem with SNMP v2
due incorrect call to snmpget.
* pandora_server/DEBIAN/make_deb_package.sh: Version update.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4991 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_remote_agent.sh: New remote agent script to do customized
deployments creating XML files from external scriptfiles. See docs.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4941 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_server/util/pandora_manage.pl: Applied Kosaka's patch to store
data in DB with encoding in HTML entities.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4939 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* DEBIAN/control: Updated version to 4.0 (final).
* pandora_server.spec: Updated version. Added mibs package
for dependency (Snmp mibs needed to be installed!), without
that, network server and some scripts won't run properly.
* pandora_server.redhat.spec,
lib/PandoraFMS/Config.pm: Updated version to 4.0 final.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4936 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Network.pm: Missing include for function
SNMP::translateObj. Added SNMP include: I don't understand why
that was missing ¿?.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4928 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/SNMPServer.pm: Kill snmptrapd if it's already running
when the SNMP Console starts and launch it again. Fixes bug #3402392.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4876 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Improve the delete modules
function to do the same actions of the console
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4866 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/NmapParser.pm: Updated package name to integrate
Nmap::Parser into Pandora FMS.
* lib/PandoraFMS/ReconServer.pm: Removed recursive calls. Now parent
hosts are detected with a single call to nmap via Nmap::Parser.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4829 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* ggodmode/modules/manage_network_templates.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php: added checkboxes in the elements in
the list and main checkbox to select all checkboxes, for to multiple delete.
Fixes: #3390017
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4826 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* SNMPServer.pm: Custom value and custom type are not used anymore.
All extended info comes into custom_oid which stores now all the
raw info.
* Core.pm: pandora_evaluate_snmp_alerts() function now uses complex
regular expression and new macros to allow complex SNMP trap alerts
which takes information from the trap info and puts on the alert.
* DataServer.pm: Fixed notice about undefined GIS position desc.
* pandora_db.pl: Version update.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4761 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm
bin/pandora_server: Improved Enterprise check to the policy queue
thread and fix a memory problem in the queue patrol loop
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4739 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DataServer.pm: When reading module tags use
get_tag_value to avoid trouble with empty tags.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4737 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/Core.pm: get_agent_from_addr() function is now in Core because
is used in trap alert functions. Implemented in pandora_execute_action()
the internal command "Generate event" was missing. Also altered the
way a complex trap is matched, now search for Value, Custom Value and
Custom OID. If an action containing a "event" command is the target, skip the
creation of a event to inform of SNMP alert firing.
* lib/ReconServer.pm: get_agent_from_addr() moved to Core.pm
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4731 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* bin/pandora_server: Fixed policy queue when the server is launched
in daemon mode for bug 3390085
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4728 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
* lib/PandoraFMS/DataServer.pm: Added support for custom module tags
(stored in column extended_info).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4712 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_server.spec: Removed perl-XML-SAX and added
perl-XML-Simple. Updated RPM descripcion and version for upcoming RC1 :-)
* pandora_server.redhat.spec: Updated version for upcoming RC1
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4698 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/PredictionServer.pm: Fixed some network server
modules are processed as prediction server modules.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4674 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Config.pm: Read configuration for the new enterprise
SNMP server.
* lib/PandoraFMS/Core.pm: Added server type for the new enterprise SNMP
server.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4637 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Fixed alert macro substitution. Now
alert_macro_substitute() does not substitute already substituted
part of string. Also fixed alert macro substitution for user
defined alerts to avoid alert macros other than _field[1-3]_
substituted twice.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4535 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Added support for warning/critical status
regexp (works with both numeric and string data types). Added
support for alert-only planned downtimes.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4523 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* Makefile.PL: Removed NetAddr::IP from the dependency list. Not
needed by the new improved Recon Server.
* lib/PandoraFMS/ReconServer.pm: Improved Recon server that uses nmap.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4507 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/recon_scripts/snmpdevices.pl: Improved recon script
to update existing modules, add a new parameter optative -a
to force show downed interfaces (only up are processed by default)
Get the interfaces ip (if is setted) and put it in the status interface
module description
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4506 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DB.pm
lib/PandoraFMS/Core.pm
lib/PandoraFMS/DataServer.pm: Improved the token ip
implantation adding the ip to the secondary agent ips
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4496 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DB.pm
lib/PandoraFMS/ReconServer.pm: Moved add_address function
to DB to common uses and create add_new_address_agent function
into DB library with repeated code for the same
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4492 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Tools.pm: Checked if pandora_server is already
running, in order to prevent multiple instances with same PID
file from running. And made PID file permissions 644, rather
than 666.
* bin/pandora_server: Remove PID file on shutdown.
* FreeBSD/pandora_server: Use -P option for PID file instead of
pgrep.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4481 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Config.pm: Added a new SNMP server (enterprise).
* lib/PandoraFMS/NetworkServer.pm: Small fixes.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4479 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/NetworkServer.pm: Added blank space in a couple of
queries to avoid errors when the enterprise is not installed
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4476 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Config.pm,,
lib/PandoraFMS/NetworkServer.pm: Added a new ICMP server (enterprise).
* lib/PandoraFMS/Core.pm: Reset action thresholds when an alert
recovers.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4473 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DB.pm: Added quotes to process
database functions to avoid errors when the tables
will have key words names
* lib/PandoraFMS/Core.pm: Fixed a bug change the position
of two conditions to avoid a notice
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4471 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Tools.pm: Added FreeBSD specific code to load_average()
and free_mem() functions.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4447 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DB.pm: Added a function to get the group of an agent.
* lib/PandoraFMS/Core.pm: Fixed a prototype.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4431 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DB.pm: Added a function to get the name of an alert
template given the alert id.
* lib/PandoraFMS/Core.pm: Added support for module tags.
* lib/PandoraFMS/DataServer.pm: Do not queue more than max_queue_files
files (not max_queue_files + 1!).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4417 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_inventory_change.pl
pandora_inventory_change.README: New remote plugin to check
changes in inventory, using a direct database check (only MySQL
supported).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4402 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Fixed the query to get the number of unknown
agents. Thanks to Koichiro.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4392 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/SNMPServer.pm: Applied Koichiro's patch to reuse an
already running snmptrapd.
* lib/PandoraFMS/DataServer.pm: Do not update the configuration of
policy modules.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4376 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DB.pm
lib/PandoraFMS/Core.pm
util/pandora_db.pl
util/pandora_manage.pl: Added minor functions and fixes to policy queue
and call to clean policy queue in maintenance script
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4374 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm
bin/pandora_server
util/pandora_manage.pl: Added thread in main loop of the
server with check to the policy queue.
Apply and delete agents from policy in the new thread
Deleting policies lock system from server
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4335 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DB.pm
lib/PandoraFMS/Core.pm
util/pandora_manage.pl: Moved some functions from CLI to common
files
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4317 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/ReconServer.pm: Ported changes from 3.2 on
Recon. Full topology recursive discovery and resolution, os_type
conditional.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4316 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_visual_map.php,
include/ajax/visual_console_builder.ajax.php: fixed the include the new
graph engine in the ajax calls.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4309 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_xml_stress.pl: changed the source code to generate local conf
for each agent. And in next executions you can change in remote conf in
Pandora Console Enteprise as real agent.
* util/pandora_xml_stress.README: added confs for the generate local conf.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4300 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_manage.pl: Added option to disable all the
alerts of one policy.
Updated apply_policy option to use disabled flag
on the creation and update
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4298 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DB.pm, lib/PandoraFMS/DataServer.pm: Check that a group
exists before auto-creating an agent.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4297 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_xml_stress.pl: added the generate scatter and curve data
and change the method to create fake modules.
* util/pandora_xml_stress.README: change the description of fake modules.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4291 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
* lib/PandoraFMS/Core.pm,
lib/PandoraFMS/DataServer.pm: Module status can be set from the XML
data file.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4271 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DB.pm,
lib/PandoraFMS/Core.pm,
lib/PandoraFMS/DataServer.pm: Fixed module data processing
for PostgreSQL and Oracle.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4253 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/SNMPServer.pm,
lib/PandoraFMS/NetworkServer.pm,
lib/PandoraFMS/DB.pm,
lib/PandoraFMS/Core.pm: Adding support for Oracle. The main loop
works now.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4244 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/tentacle_serverd: Changed get_pid function now also checks
tentacle_port when searchs for running tentacle server. This feature
allow you to run 2 tentacle server in different ports 1 for Pandora and
1 for Babel.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4225 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/ReconServer.pm: Fixed bug #3286027. Fix also
the "non finished" status for the Script Recon tasks, and as
new feature implements the "manual" recon task, works only when
you press the button.
Ported from Branch 3.2
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4205 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DB.pm: Moved mysql_enable_utf8 to after database
connection. It is to avoid coding conversion against multibyte
characters by mysql.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4181 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Tools.pm: Added UTF-8 flags deletion from multibyte
characters when files are opened.
* lib/PandoraFMS/DB.pm: Added mysql_enable_utf8. It enables character
semantics (support for multibyte characters).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4161 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/plugin/create_integria_incident.sh: Create script to create a new
incident in Integria, this script could be used as an action in Pandora FMS.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4100 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/plugin/babel_plugin/babel_plugin.sh: Fixed an error in help text
with a wrong parameter.
* util/plugin/babel_plugin/README: Improved README text.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4096 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
*util/plugin/babel_plugin/plugin_definition.ini,
util/plugin/babel_plugin/babel_plugin.sh: Created plugin to connect
Pandora FMS with Babel Enterprise. You can create a pspz package for
this plugin.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4093 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
* lib/PandoraFMS/Core.pm: HTML encode events.
* lib/PandoraFMS/DataServer.pm: Do not reset module parameters
unless specifically set in the XML.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3995 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Verify that there is a data server running
when computing server stats. Thanks to Tadashi Kaneda.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3921 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Tools.pm
util/pandora_recode_db.pl: Added characters to translate
to html entities into safe_input and safe_output. Clean
repeated code into recode script.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3812 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_manage.pl: Fixed invalid module id with creation of
network module. Network module should be 2.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3810 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