Commit Graph

611 Commits

Author SHA1 Message Date
zarzuelo 5dd5ca54b5 2010-12-09 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm
	util/pandora_manage.pl
	util/pandora_sync_db.pl: Added agents and modules
	existence checks on source and destination in 
	sync db script. Added messages in execution time



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3656 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-12-09 15:42:58 +00:00
zarzuelo 9d6d77ad5e 2010-12-09 Sergio Martin <sergio.martin@artica.es>
* util/recon_scripts/snmpdevices.pl: Fixed a typo from the
	default server path in configuration



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3655 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-12-09 09:08:05 +00:00
zarzuelo 4d900fe2d3 2010-12-07 Sergio Martin <sergio.martin@artica.es>
* util/recon_scripts/snmpdevices.pl: Fixed the snmp recon script 
	example to recognize the not consecutive interfaces



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3654 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-12-07 16:43:11 +00:00
darode 7adee61349 2010-12-02 Dario Rodriguez <dario.rodriguez@artica.es>
* lib/PandoraFMS/ReconServer.pm: Fixed a bug with recon server.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3651 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-12-02 10:01:04 +00:00
jsatoh f86e7b79bf 2010-12-02 Junichi Satoh <junichi@rworks.jp>
* FreeBSD/pandora_server.conf: Added wmic file path for FreeBSD.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3650 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-12-02 03:39:29 +00:00
Ramon Novoa 4488782384 2010-12-01 Ramon Novoa <rnovoa@artica.es>
* util/pandora_recode_db.pl: Redefine safe_input to avoid loading
	  a buggy one from a 3.1 Tools.pm.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3648 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-12-01 19:45:16 +00:00
darode a12ecbc35e 2010-11-29 Dario Rodriguez <dario.rodriguez@artica.es>
* lib/PandoraFMS/ReconServer.pm: Fixed a problem with HTML entities executing 
	ReconServer.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3643 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-29 16:24:25 +00:00
Ramon Novoa 823d5bd602 2010-11-29 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Tools.pm: Added ' to the list of characters to HTML
	  encode.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3642 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-29 12:56:58 +00:00
slerena c9c2b83169 2010-11-26 Sancho Lerena <slerena@artica.es>
* pandora_agents/unix/DEBIAN/make_deb_package.sh,
	pandora_agents/unix/pandora_agent.spec,
	extras/build_deb.sh,
	pandora_console/DEBIAN/make_deb_package.sh,
	pandora_server/DEBIAN/make_deb_package.sh: Updated debian
	package generation (version update and small fixes/adjustements)




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3634 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-25 22:48:13 +00:00
slerena e12e747a91 2010-11-25 Sancho Lerena <slerena@artica.es>
* Updated specs and control for make 3.2rc2 packages



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3631 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-25 17:29:59 +00:00
raulmateos 0bc6b01479 2010-11-22 Raul Mateos <raulofpandora@gmail.com>
* Commit updated changelog

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3617 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-22 18:46:03 +00:00
raulmateos 3fa0943e47 2010-11-22 Raul Mateos <raulofpandora@gmail.com>
* pandora_server_upgrade, pandora_server_installer, README: Updated version

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3616 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-22 18:44:31 +00:00
raulmateos 431df7c4d8 2010-11-22 Raul Mateos <raulofpandora@gmail.com>
* 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
2010-11-22 18:20:21 +00:00
Ramon Novoa 8bc5c711ff 2010-11-19 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Added a missing paremeter to
	  pandora_generate_alert in pandora_module_unknown. Fixes
	  bug #3111191.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3605 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-19 11:50:19 +00:00
Ramon Novoa 5731f640f8 2010-11-19 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Fixed regexp alerts. The patch to detect
	  malformed regular expressions made them malfunction.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3603 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-19 10:48:27 +00:00
Ramon Novoa fb18038db6 2010-11-18 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm,
	  lib/PandoraFMS/DataServer.pm: Update agent address from the XML.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3602 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-18 18:24:21 +00:00
Ramon Novoa 6d487db95f 2010-11-16 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Decode HTML entities in macros.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3591 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-16 10:38:59 +00:00
jsatoh 3fdb7d71ee 2010-11-11 Junichi Satoh <junichi@rworks.jp>
* FreeBSD/tentacle_server: Fixed variable name of PID.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3570 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-11 00:58:56 +00:00
slerena a29b003b78 2010-11-10 Sancho Lerena <slerena@artica.es>
* pandora_server.spec
        lib/PandoraFMS/Config.pm
        pandora_server.redhat.spec:  Last details on specs.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3568 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-10 13:13:08 +00:00
mdtrooper 5ad305bc2d 2010-11-10 Miguel de Dios <miguel.dedios@artica.es>
* DEBIAN/postinst, DEBIAN/prerm, DEBIAN/make_deb_package.sh: fixed the use
	pandora_exec for Pandora Server and Pandora Agent, now make a
	pandora_exec.agent and try to link to pandora_exec.
	
	Fixes: #3106578



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3567 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-10 13:00:29 +00:00
mdtrooper 75140c735b 2010-11- Miguel de Dios <miguel.dedios@artica.es>
* DEBIAN/postinst, DEBIAN/prerm, DEBIAN/make_deb_package.sh: fixed the use
	pandora_exec for Pandora Server and Pandora Agent, now make a
	pandora_exec.server and try to link to pandora_exec.
	
	Fixes: #3106578



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3566 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-10 12:59:07 +00:00
jsatoh 7806233681 2010-11-10 Junichi Satoh <junichi@rworks.jp>
* lib/PandoraFMS/Tools.pm: Added a parameter of unsafe_chars, '<>&',
	to encode_entities(). It is support for multibyte characters.
	If it is not defined, records with multibyte characters on database
	are destroyed by 'pandora_recode_db.pl'. :(



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3562 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-10 01:11:47 +00:00
zarzuelo d6fe3c0cfc 2010-11-08 Sergio Martin <srgio.martin@artica.es>
* util/pandora_sync_db.pl: Added two special 
	synchronization cases



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3558 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-08 16:14:12 +00:00
zarzuelo 6ac51cc853 2010-11-08 Sergio Martin <sergio.martin@artica.es>
* util/pandora_sync_db.pl: Fixed array pass



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3556 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-08 15:36:33 +00:00
zarzuelo 9421300473 2010-11-08 Sergio Martin <sergio.martin@artica.es>
* util/pandora_recode_db.pl: Checked if the tables exists
	to avoid the recodification in case of purely open 
	installations



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3553 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-08 12:52:12 +00:00
zarzuelo 584087a0e7 2010-11-08 Sergio Martin <sergio.martin@artica.es>
* util/pandora_sync_db.pl: Changed from DELETE to
	TRUNCATE in empty tables operation



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3548 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-08 11:47:37 +00:00
darode bd3954d1a5 2010-11-08 Dario Rodriguez <dario.rodriguez@artica.es>
* util/pandora_recode_db.pl: Added talert_template, tconfig_os,
	talet_actions and ttipo_modulo to encode names fields.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3547 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-08 09:21:21 +00:00
jsatoh 5592972ada 2010-11-07 Junichi Satoh <junichi@rworks.jp>
* Makefile.PL: Added 'INSTALLSITELIB' for FreeBSD. (undefined)



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3545 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-07 03:03:49 +00:00
zarzuelo d89cdc45e0 2010-11-05 Sergio Martin <sergio.martin@artica.es>
* util/pandora_sync_db.pl: Changed the tevento table
	synchronization to sync it only when the flag sync_data 
	is 1



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3541 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-05 13:38:56 +00:00
slerena ee2ab48463 2010-11-05 Sancho Lerena <slerena@artica.es>
* Makefile.PL: Now default install for libs are the same than
        used in RPM, this will help to avoid problems of duped libs.

        * pandora_server.spec,
        pandora_server.redhat.spec: Update version and release.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3535 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-05 10:48:54 +00:00
zarzuelo 195fc478ed 2010-11-04 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/DB.pm
	lib/PandoraFMS/Core.pm
	util/pandora_manage.pl: Improved the policies
	appliement with checks and the external
	alerts addition



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3522 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-04 17:35:37 +00:00
Ramon Novoa 696f3c19ad 2010-11-03 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Tools.pm: limpia_cadena removes unwanted
	  characters instead or replacing them with blank spaces.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3512 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-03 19:20:12 +00:00
zarzuelo d55df2395b 2010-11-03 Sergio Martin <sergio.martin@artica.es>
* util/pandora_recode_db.pl: Added a recode script to add
	html entities to secific strings of a database. This script is usefull
	to 3.1 to 3.2 migration of Pandora FMS.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3501 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-03 09:03:27 +00:00
zarzuelo 7fb0138400 2010-11-02 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/DB.pm
	lib/PandoraFMS/Core.pm
	lib/PandoraFMS/ReconServer.pm
	lib/PandoraFMS/DataServer.pm
	lib/PandoraFMS/Tools.pm: Fixed insert db operations
	in server to store the html entities. This improves
	fix bug 3096436



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3499 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-02 17:26:34 +00:00
zarzuelo 0c2876b7a6 2010-11-02 Sergio Martin <sergio.martin@artica.es>
* util/recon_scripts/snmpdevices.pl: Fixed a missed typo



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3498 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-02 16:45:53 +00:00
zarzuelo 26f49a9367 2010-11-02 Sergio Martin <sergio.martin@artica.es>
* util/recon_scripts/snmpdevices.pl: Fixed a module types bug and
	html entities codification



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3497 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-02 16:43:44 +00:00
mdtrooper a4d44e6ae5 2010-11-01 Miguel de Dios <miguel.dedios@artica.es>
* DEBIAN/make_deb_package.sh: fixed recursive infinite loop with try to
	copy "temp_package" into "temp_package/usr/share/pandora_agent/temp_package"
	again and again.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3488 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-01 17:46:29 +00:00
slerena a4b35b9c6d 2010-11-01 Sancho Lerena <slerena@artica.es>
* DEBIAN/control,
        DEBIAN/make_deb_package.sh
        pandora_server.spec
        lib/PandoraFMS/Config.pm
        pandora_server.redhat.spec:  Version updates and small changes
        for packaging the 3.2 RC1 version in the next days/hours.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3485 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-01 12:34:39 +00:00
zarzuelo 91415e2cce 2010-10-28 Sergio Martin <sergio.martin@artica.es>
* util/pandora_sync_db.pl: Added the Pandora Database Synchronization
	script to server for pending task 3085932



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3474 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-10-28 09:08:00 +00:00
Ramon Novoa 53e25643a2 2010-10-25 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Fixed a bug that made the server crash when
	  trying to match an alert with an invalid regular expression.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3463 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-10-25 17:29:11 +00:00
zarzuelo 6a65d318a9 2010-10-25 Sergio Martin <sergio.martin@artica.es>
* util/pandora_manage.pl: Change a Warning notice to
	informative notice



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3457 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-10-25 15:08:27 +00:00
slerena 3061c82873 2010-10-22 Sancho Lerena <slerena@artica.es>
* 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
2010-10-22 14:03:49 +00:00
jsatoh d69d689c83 2010-10-22 Junichi Satoh <junichi@rworks.jp>
* lib/PandoraFMS/NetworkServer.pm: Deleted Solaris specific SNMPGET
	definition. It is the same as Linux.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3446 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-10-22 05:18:36 +00:00
jsatoh 8ad707427a 2010-10-22 Junichi Satoh <junichi@rworks.jp>
* lib/PandoraFMS/Tools.pm: Changed ping count to for() loop instead of
	using count(-c) option in pandora_ping(). By it, ping execution can be
	finished in short time.
	Added support for Solaris.
	Changed some ping usage for FreeBSD.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3445 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-10-22 05:12:03 +00:00
zarzuelo 5700244ff3 2010-10-21 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/DB.pm: Added a generic update function to return
	the number of changes

	* util/pandora_manage.pl: Added the unblock policies to the CLI and
	the block/unblock policies when it are applied.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3441 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-10-21 14:26:46 +00:00
jsatoh fe0c0dbb3f 2010-10-21 Junichi Satoh <junichi@rworks.jp>
* lib/PandoraFMS/Tools.pm: Fixed timeout option for FreeBSD ping.
	(Note: In ping6, '-t' option is not implemented. So, 'networktimeout'
	is not used with ping6.)



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3440 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-10-21 10:12:38 +00:00
zarzuelo 57c7683deb 2010-10-21 Sergio Martin <sergio.martin@artica.es>
* util/recon_scripts
	util/recon_scripts/PandoraFMS
	util/recon_scripts/snmpdevices.pl: Added the example recon script
	that creates several modules for each searched interface



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3439 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-10-21 09:28:32 +00:00
jsatoh 703c0d01f4 2010-10-21 Junichi Satoh <junichi@rworks.jp>
* lib/PandoraFMS/NetworkServer.pm: Deleted FreeBSD specific SNMPGET
	definition. It is the same as Linux.

	* lib/PandoraFMS/Tools.pm: Added FreeBSD specific Ping function.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3438 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-10-21 06:43:36 +00:00
Ramon Novoa d1cd0d4e09 2010-10-20 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/ReconServer.pm: Pass the recon task group_id and
	  create_incident parameters to the recon script.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3437 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-10-20 16:42:06 +00:00
Ramon Novoa fc31ba86f3 2010-10-20 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/ReconServer.pm: Pass the recon task id to the recon
	  script.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3432 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-10-20 14:08:13 +00:00