Commit Graph

335 Commits

Author SHA1 Message Date
zarzuelo afb5bc2db3 2011-06-28 Sergio Martin <sergio.martin@artica.es>
* 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
2011-06-28 15:41:13 +00:00
zarzuelo a033c48b6f 2011-06-28 Sergio Martin <sergio.martin@artica.es>
* 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
2011-06-28 10:04:45 +00:00
jsatoh 95a1ae7c55 2011-06-27 Junichi Satoh <junichi@rworks.jp>
* lib/PandoraFMS/NetworkServer.pm: Fixed SNMP PROC modules always
	return critical state.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4484 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-06-27 03:07:44 +00:00
koichirok 80bf29aca2 2011-06-23 Koichiro Kikuchi <koichiro@rworks.jp>
* 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
2011-06-23 03:50:31 +00:00
Ramon Novoa 151313e03f 2011-06-22 Ramon Novoa <rnovoa@artica.es>
* 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
2011-06-22 16:39:00 +00:00
zarzuelo fd1eec6a3a 2011-06-21 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/DataServer.pm: Fixed numeric condition in a string
	comparation



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4477 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-06-21 15:19:43 +00:00
zarzuelo 96e9431f0f 2011-06-21 Sergio Martin <sergio.martin@artica.es>
* 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
2011-06-21 14:28:08 +00:00
Ramon Novoa a47675f219 2011-06-20 Ramon Novoa <rnovoa@artica.es>
* 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
2011-06-20 16:32:29 +00:00
zarzuelo 3f429642fc 2011-06-20 Sergio Martin <sergio.martin@artica.es>
* 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
2011-06-20 16:18:18 +00:00
Ramon Novoa e30e1a34bd 2011-06-16 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Fixed a typo.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4462 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-06-16 17:50:45 +00:00
koichirok bdeea06d24 2011-06-15 Koichiro Kikuchi <koichiro@rworks.jp>
* 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
2011-06-15 07:22:39 +00:00
slerena 241a51bf35 2011-06-13 Sancho Lerena <slerena@artica.es>
* Tools.pm: Avoid errors when provide an empty string to md5.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4437 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-06-13 14:03:59 +00:00
slerena b6d7106496 2011-06-13 Sancho Lerena <slerena@artica.es>
* NetworkServer.pm: Avoid warning messages on pandora_server.error




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4433 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-06-13 12:05:55 +00:00
Ramon Novoa 8830ccdaf3 2011-06-10 Ramon Novoa <rnovoa@artica.es>
* 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
2011-06-10 12:50:56 +00:00
Ramon Novoa cd9c926435 2011-06-08 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Use commas to separate tags.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4421 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-06-08 15:08:52 +00:00
Ramon Novoa 0035e2937e 2011-06-08 Ramon Novoa <rnovoa@artica.es>
* 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
2011-06-08 11:07:39 +00:00
Ramon Novoa 2171d8f48b 2011-06-02 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DataServer.pm: Do not include BADXML files when
	  evaluating max_queue_files.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4398 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-06-02 15:28:29 +00:00
Ramon Novoa 5a95033fc2 2011-05-30 Ramon Novoa <rnovoa@artica.es>
* 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
2011-05-30 16:53:42 +00:00
Ramon Novoa 34321f2f36 2011-05-30 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Config.pm,
	  lib/PandoraFMS/Core.pm: Added support for event alerts (Enterprise).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4388 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-05-30 10:21:15 +00:00
Ramon Novoa bb9cd2023f 2011-05-23 Ramon Novoa <rnovoa@artica.es>
* 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
2011-05-23 13:13:34 +00:00
zarzuelo 8c9c68cd84 2011-05-23 Sergio Martin <sergio.martin@artica.es>
* 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
2011-05-23 11:55:08 +00:00
zarzuelo 33da2b1406 2011-05-12 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/DB.pm: Added a function to give the address of
	one agent



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4342 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-05-12 11:11:37 +00:00
zarzuelo 2e140d4939 2011-05-11 Sergio Martin <sergio.martin@artica.es>
* 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
2011-05-11 10:15:04 +00:00
zarzuelo 59c2600490 2011-05-09 Sergio Martin <sergio.martin@artica.es>
* 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
2011-05-09 09:42:01 +00:00
slerena 98c4bd8c68 2011-05-07 Sancho Lerena <slerena@artica.es>
* 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
2011-05-07 19:29:29 +00:00
Ramon Novoa 7fd3cc4458 2011-05-03 Ramon Novoa <rnovoa@artica.es>
* 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
2011-05-03 14:24:51 +00:00
raulmateos 0c08d3274a 2011-04-28 Raul Mateos <raulofpandora@gmail.com>
* conf/pandora_server.conf, pandora_server_installer,
	PandoraFMS/Config.pm: Updated year and build.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4288 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-04-28 15:33:25 +00:00
Ramon Novoa 7e853f62f1 2011-04-27 Ramon Novoa <rnovoa@artica.es>
* 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
2011-04-27 17:44:14 +00:00
Ramon Novoa 4f45266650 2011-04-20 Ramon Novoa <rnovoa@artica.es>
* 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
2011-04-20 15:55:28 +00:00
Ramon Novoa 833ef3149a 2011-04-20 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Added _policy_ macro to alerts (Enterprise).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4269 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-04-20 14:57:49 +00:00
Ramon Novoa 454ea4f1ba 2011-04-19 Ramon Novoa <rnovoa@artica.es>
* 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
2011-04-19 15:32:11 +00:00
Ramon Novoa e7e394009d 2011-04-18 Ramon Novoa <rnovoa@artica.es>
* 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
2011-04-18 16:42:18 +00:00
Ramon Novoa c69f48e890 2011-04-13 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/SNMPServer.pm,
	  lib/PandoraFMS/Config.pm,
	  lib/PandoraFMS/NetworkServer.pm,
	  lib/PandoraFMS/WMIServer.pm,
	  lib/PandoraFMS/PluginServer.pm,
	  lib/PandoraFMS/DB.pm,
	  lib/PandoraFMS/ProducerConsumerServer.pm,
	  lib/PandoraFMS/PredictionServer.pm,
	  lib/PandoraFMS/Core.pm,
	  lib/PandoraFMS/ReconServer.pm,
	  bin/pandora_server,
	  util/pandora_db.pl,
	  util/pandora_manage.pl,
	  util/recon_scripts/snmpdevices.pl: Adding support for PostgreSQL and
	  Oracle (not complete).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4213 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-04-13 16:28:59 +00:00
slerena 544e1c9329 2011-04-13 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/Tools.pm: Fixed bug #3273910. HPUX detection.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4208 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-04-13 15:11:21 +00:00
slerena 677a608511 2011-04-13 Sancho Lerena <slerena@artica.es>
* 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
2011-04-13 14:59:18 +00:00
jsatoh 276b40f1d0 2011-04-10 Junichi Satoh <junichi@rworks.jp>
* 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
2011-04-10 01:18:01 +00:00
jsatoh 22fc4a5cde 2011-04-04 Junichi Satoh <junichi@rworks.jp>
* 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
2011-04-04 04:59:37 +00:00
raulmateos 797a655a8c 2011-03-14 Raul Mateos <raulolfpandora@gmail.com>
* lib/PandoraFMS/Config.pm, lib/PandoraFMS/Core.pm,
        lib/PandoraFMS/DataServer.pm, lib/PandoraFMS/DB.pm,
        lib/PandoraFMS/Tools.pm, lib/PandoraFMS/WMIServer.pm: Cleared code and
        updated year.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4089 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-14 10:39:31 +00:00
slerena e12de5ca51 2011-03-09 Sancho Lerena <slerena@artica.es>
* 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
2011-03-09 13:49:30 +00:00
Ramon Novoa 4c27ef9836 2011-02-28 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DataServer.pm: Fixed a typo. Thanks to Kikuchi Koichiro.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4022 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-28 10:21:03 +00:00
Ramon Novoa d2c6861d4d 2011-02-24 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/WMIServer.pm: Fixed a typo. Thanks to Tadashi Kaneda.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4015 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-24 10:12:12 +00:00
Ramon Novoa 10773b57dd 2011-02-23 Ramon Novoa <rnovoa@artica.es>
* 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
2011-02-23 10:50:00 +00:00
slerena 00b3bd36c1 2011-02-22 Sancho Lerena <slerena@artica.es>
* Core.pm: Fixed bug #3175575




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3970 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-22 09:11:06 +00:00
Ramon Novoa 4414864c68 2011-02-18 Ramon Novoa <rnovoa@artica.es>
* 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
2011-02-18 11:42:56 +00:00
Ramon Novoa 7cc8e631c8 2011-02-16 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DataServer.pm: Do not update the module description
	  if it's empty. Fixes bug #3162637.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3880 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-16 16:50:19 +00:00
Ramon Novoa 5dac65d9ee 2011-02-15 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Added support for action thresholds.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3856 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-15 16:42:37 +00:00
zarzuelo 7160564d65 2011-02-08 Sergio Martin <sergio.martin@artica.es>
* 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
2011-02-08 16:38:38 +00:00
slerena 2bf04d4c39 2011-02-07 Sancho Lerena <slerena@artica.es>
* 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
2011-02-07 13:45:34 +00:00
zarzuelo dcb240e316 2011-01-31 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/DB.pm: Fixed a codification bug with
	the CLI policy apply



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3791 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-01-31 15:39:13 +00:00
slerena fdfc84993c 2011-01-22 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/Config.pm: Updated version, we're on 4.0-dev !

        * lib/PandoraFMS/Tools.pm: Detect new embedded agents




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3764 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-01-22 20:30:26 +00:00