Commit Graph

711 Commits

Author SHA1 Message Date
Ramon Novoa f88fa49e1a 2010-07-20 Ramon Novoa <rnovoa@artica.es>
* pandora_server_installer: Delete the spool/pandora directory
          if no agent is installed on the same machine.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3039 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-07-20 12:01:47 +00:00
Ramon Novoa 5416881b00 2010-07-20 Ramon Novoa <rnovoa@artica.es>
* pandora_server_installer: Set safer permissions for data_in/conf.

        * util/pandora_db.pl: Fixed the setup password regular expression.
          Fixes bug #3026997.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3038 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-07-20 11:51:12 +00:00
Ramon Novoa c2e9130c01 2010-07-19 Ramon Novoa <rnovoa@artica.es>
* DEBIAN/make_deb_package.sh,
          pandora_server_installer,
          pandora_server.spec: Set proper permission for the md5 and
          collections directories.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3026 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-07-19 10:49:40 +00:00
Ramon Novoa 64e3e99fad 2010-07-19 Ramon Novoa <rnovoa@artica.es>
* DEBIAN/make_deb_package.sh,
          pandora_server_installer,
          pandora_server.spec: Create the collections directory.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3025 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-07-19 10:17:17 +00:00
darode 81242a1b9a 2010-07-19 Dario Rodriguez <dario.rodriguez@artica.es>
* util/tentacle_serverd: Fixed error in filter pattern, changed pattern
	.*\zip to .*\.zip


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3024 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-07-19 09:49:00 +00:00
jsatoh 5fb9e10eac 2010-07-16 Junichi Satoh <junichi@rworks.jp>
* FreeBSD/pandora_server.conf: Added snmptrapd file path for FreeBSD.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3010 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-07-16 02:49:50 +00:00
zarzuelo ba5c3aa0b9 2010-07-14 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm
	util/pandora_manage.pl: Added a create incident feature to
	CLI for pending task: 3019638



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3006 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-07-14 17:03:14 +00:00
Ramon Novoa a675b79538 2010-07-08 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/PluginServer.pm: Quote the command passed to
          pandora_exec.

        * bin/pandora_exec: Do not verify the command to allow pipes and complex
          commands.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2981 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-07-08 15:10:12 +00:00
Ramon Novoa 018d9ffece 2010-07-07 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Verify that log4x data is available
          before trying to read it.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2968 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-07-07 11:38:42 +00:00
darode 2dea3b365c 2010-07-06 Dario Rodriguez <dario.rodriguez@artica.es>
* lib/PandoraFMS/Core.pm, ReconServer.pm, DataServer.pm: Delete 
	$address_id paremeter from function pandora_create_agent()

	* util/pandora_manage.pl: Delete $address_id paremeter from function 
	pandora_create_agent()
	Fixes bug #3006770



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2967 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-07-06 15:06:00 +00:00
jsatoh 79cb9d5e35 2010-07-05 Junichi Satoh <junichi@rworks.jp>
* pandora_server_installer: Added support for FreeBSD.

	* FreeBSD/pandora_server, FreeBSD/tentacle_server: Added startup
	script for FreeBSD.

	* FreeBSD/pandora_server.conf: Added configuration file for FreeBSD.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2959 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-07-05 03:20:42 +00:00
slerena f00b5163d5 2010-06-10 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/Core.pm: Redefine downtime name and description if
	not defined.

	* lib/PandoraFMS/Tools.pm: Octopus is now known as Octopods.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2900 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-06-10 09:25:26 +00:00
Ramon Novoa a0d108bada 2010-06-09 Ramon Novoa <rnovoa@artica.es>
* conf/pandora_server.conf: Set the default server_threshold to 5
          seconds.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2899 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-06-09 12:27:01 +00:00
mdtrooper 0d71fa81f6 2010-06-09 Miguel de Dios <miguel.dedios@artica.es>
* unix/DEBIAN/make_deb_package.sh: added the code to include the man pages
	into DEB package.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2897 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-06-09 12:15:48 +00:00
mdtrooper 8637d61e05 2010-06-08 Miguel de Dios <miguel.dedios@artica.es>
* DEBIAN/make_deb_package.sh: added the code to include the man pages into
	DEB package.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2896 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-06-09 12:13:37 +00:00
Ramon Novoa fabfe0b8b2 2010-06-09 Ramon Novoa <rnovoa@artica.es>
* pandora_server.spec: Create the man dir.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2895 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-06-09 11:45:18 +00:00
Ramon Novoa 3472191be3 2010-06-09 Ramon Novoa <rnovoa@artica.es>
* pandora_server.spec,
          pandora_server_installer: Copy man files.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2893 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-06-09 11:34:49 +00:00
Ramon Novoa 620e2e5281 2010-06-09 Ramon Novoa <rnovoa@artica.es>
* pandora_server.spec: Copy man files.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2889 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-06-09 10:46:06 +00:00
zarzuelo f7620013e4 2010-06-09 Sergio Martin <sergio.martin@artica.es>
* util/pandora_manage.pl: Fixed errors of parameters 
	for bug 3013419



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2885 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-06-09 10:04:02 +00:00
Ramon Novoa 9c4a10149f 2010-06-08 Ramon Novoa <rnovoa@artica.es>
* DEBIAN/control, DEBIAN/make_deb_package.sh,
          pandora_server.spec, lib/PandoraFMS/Config.pm: Updated version
          strings.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2878 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-06-08 17:00:23 +00:00
mdtrooper 952b554824 2010-06-01 Miguel de Dios <miguel.dedios@artica.es>
* DEBIAN/postinst: fixed when the package DEB no have previus conf file.
	
	* DEBIAN/make_deb_package.sh: cleaned source code.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2874 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-06-08 14:41:18 +00:00
Ramon Novoa b16a798fd4 2010-06-04 Ramon Novoa <rnovoa@artica.es>
* pandora_server.spec: Fixed the %postun target.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2859 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-06-04 10:37:26 +00:00
Ramon Novoa 212204be1c 2010-06-04 Ramon Novoa <rnovoa@artica.es>
* pandora_console.spec: Fixed. Upgrading an RPM broke the installation.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2857 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-06-04 09:42:14 +00:00
mdtrooper 73118398c0 2010-06-01 Miguel de Dios <miguel.dedios@artica.es>
* DEBIAN/prerm: disabled the delete conf file.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2833 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-06-01 14:36:44 +00:00
Ramon Novoa 2579c0aecd 2010-06-01 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/SNMPServer.pm: Set default values to avoid warnings.
          Fixes bug #3009858.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2829 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-06-01 12:20:10 +00:00
zarzuelo da4ac6fd5e 2010-05-31 Sergio Martin <sergio.martin@artica.es>
* util/pandora_manage.pl: Fixed the help and the
	error and successful messages



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2821 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-31 16:04:00 +00:00
zarzuelo 74aa1fb61f 2010-05-31 Sergio Martin <sergio.martin@artica.es>
* util/pandora_manage.pl: Clean code and change
	the enable/disable groups functionalities. Now 
	the parameter is the name of the group.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2819 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-31 11:38:29 +00:00
Ramon Novoa 8fcefceaa9 2010-05-31 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Set the initial depth for
          pandora_inhibit_alerts. Fixes bug #3008761.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2818 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-31 09:45:52 +00:00
zarzuelo 4cb861d24b 2010-05-31 Sergio Martin <sergio.martin@artica.es>
* util/pandora_manage.pl: Fixed typo error.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2816 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-31 09:32:50 +00:00
zarzuelo 67eb74bb92 2010-05-27 Sergio Martin <sergio.martin@artica.es>
* util/pandora_manage.pl: Added the 15 new functionalities
	to CLI



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2813 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-27 16:24:52 +00:00
Ramon Novoa 75029b612a 2010-05-26 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DB.pm: Added a function to get the id of a user
          profile (needed by pandora_manage.pl).




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2803 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-26 09:54:21 +00:00
Ramon Novoa acee408571 2010-05-25 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DB.pm: Added a function to get the id of an action
          (needed by pandora_manage.pl).




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2798 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-25 16:23:07 +00:00
Ramon Novoa 3add856330 2010-05-25 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Tools.pm: Set a default verbosity level for logger().




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2797 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-25 13:58:38 +00:00
Ramon Novoa 5652d1190e 2010-05-25 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DB.pm: Added get_agent_module_id to @EXPORT.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2796 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-25 13:43:25 +00:00
Ramon Novoa 2164045cd3 2010-05-25 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DB.pm: Added functions to get alert data (needed by
          pandora_manage.pl).




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2795 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-25 13:16:34 +00:00
Ramon Novoa ce265ad792 2010-05-25 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DB.pm: Added functions to get the id of an OS, a
          module and a group (needed by pandora_manage.pl).

        * lib/PandoraFMS/Core.pm: Removed tagente_estado.status from the
          keep_alive_nd query.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2794 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-25 11:56:37 +00:00
zarzuelo 6bcf611e3f 2010-05-24 Sergio Martin <sergio.martin@artica.es>
* util/plugin/snmp_process.pl: Changed the 
	value that change the status of the process
	from 2 to 1.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2785 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-24 09:25:08 +00:00
Ramon Novoa 518cbfccc5 2010-05-20 Ramon Novoa <rnovoa@artica.es>
* pandora_server.spec: Changed release number.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2777 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-20 15:18:25 +00:00
mdtrooper 7daeace124 2010-05-20 Miguel de Dios <miguel.dedios@artica.es>
* DEBIAN/postinst: fixed the linking the conf file.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2776 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-20 15:01:48 +00:00
Ramon Novoa bc9bc60336 2010-05-20 Ramon Novoa <rnovoa@artica.es>
* pandora_server.spec: Removed unneeded symlinks.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2774 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-20 14:16:43 +00:00
Ramon Novoa ed6fbe4536 2010-05-20 Ramon Novoa <rnovoa@artica.es>
* DEBIAN/control, DEBIAN/make_deb_package.sh,
          pandora_server.spec: Updated for the release of Pandora FMS 3.1 RC1.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2771 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-20 13:07:43 +00:00
mdtrooper f8f44867e0 Lost files.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2767 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-20 10:59:41 +00:00
mdtrooper 05c63070bc 2010-05-20 Miguel de Dios <miguel.dedios@artica.es>
* DEBIAN/make_deb_package.sh: fixed the permissions to DEBIAN temp package. 
	


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2765 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-20 10:58:40 +00:00
slerena 96a17f5398 2010-05-20 Sancho Lerena <slerena@artica.es>
* util/plugins/snmp_process.pl: Some small modifications and fixes for 
	RAM output, also improved help.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2763 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-20 07:46:09 +00:00
mdtrooper e27cf8312a 2010-05-19 Miguel de Dios <miguel.dedios@artica.es>
* DEBIAN/control: added the depends libio-socket-multicast-perl.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2761 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-19 19:02:00 +00:00
mdtrooper 8fdc62c6df 2010-05-19 Miguel de Dios <miguel.dedios@artica.es>
* DEBIAN/make_deb_package.sh: cleaned the source code.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2760 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-19 17:58:52 +00:00
mdtrooper 0d0f1e2716 2010-05-19 Miguel de Dios <miguel.dedios@artica.es>
* 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
2010-05-19 17:56:49 +00:00
mdtrooper d6bd8f3cde 2010-05-19 Miguel de Dios <miguel.dedios@artica.es>
* 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
2010-05-19 17:09:15 +00:00
zarzuelo e20081f88a 2010-05-19 Sergio Martin <sergio.martin@artica.es>
* util/plugin/snmp_process.pl: Added the SNMP Server 
	Plugin to Server.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2756 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-19 17:03:16 +00:00
Ramon Novoa 6d8f871893 2010-05-19 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/SNMPServer.pm, lib/PandoraFMS/Config.pm,
          lib/PandoraFMS/Server.pm, lib/PandoraFMS/NetworkServer.pm,
          lib/PandoraFMS/GIS.pm, lib/PandoraFMS/WMIServer.pm,
          lib/PandoraFMS/PluginServer.pm, lib/PandoraFMS/ProducerConsumerServer.pm,
          lib/PandoraFMS/PredictionServer.pm, lib/PandoraFMS/Core.pm,
          lib/PandoraFMS/ReconServer.pm, lib/PandoraFMS/DataServer.pm,
          bin/pandora_server, util/pandora_db.pl, util/gpx2pandora_agent_data.pl,
          util/pandora_manage.pl, util/pandora_dbstress.pl: Added the default library path
          used by RPM and DEB packages.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2755 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-19 16:59:00 +00:00
slerena 3e3f4d6783 2010-05-19 Sancho Lerena <slerena@artica.es>
* 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
2010-05-19 13:40:21 +00:00
slerena f87f26acc0 2010-05-18 Sancho Lerena <slerena@artica.es>
* 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
2010-05-18 18:15:41 +00:00
zarzuelo f148c1ad5e 2010-05-17 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm: Fixed the Warning Monitor
	status



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2742 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-17 17:03:03 +00:00
raulmateos ab51537a68 2010-05-16 Raul Mateos <raulofpandora@gmail.com>
* bin/pandora_server, lib/PandoraFMS/Config.pm, conf/pandora_server.conf,
	pandora_server_upgrade: Updated year. Clean code.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2732 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-15 22:32:56 +00:00
zarzuelo 480345dd6b 2010-05-13 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm: Fixed some monitor
	status queries.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2716 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-13 14:31:10 +00:00
Ramon Novoa 9a2d5edbbb 2010-05-12 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/ReconServer.pm: Make sure the agent exists
          when searching by IP address. Fixes bug #2957130.

        * util/pandora_db.pl: Fixed bug #2957130.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2711 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-12 15:33:19 +00:00
zarzuelo 33b1efc123 2010-05-12 Sergio Martin <sergio.martin@artica.es>
* man/man1/tentacle.1.gz: Deleted old man page



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2709 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-12 14:59:07 +00:00
zarzuelo 304d71d144 2010-05-12 Sergio Martin <sergio.martin@artica.es>
* pandora_server_installer
	  man/man1/tentacle_server.1.gz: Improved the
	  manpages installation splitting tentacle man
	  page

	* man/man1/tentacle_server.1
	 man/man3: Old man pages removed



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2708 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-12 14:52:58 +00:00
zarzuelo abbffc757b 2010-05-12 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm: Fixed unknown monitors
	query for bug: 3000460



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2707 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-12 14:45:16 +00:00
Ramon Novoa 2e45f721a8 2010-05-11 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Fixed a log message in
          pandora_process_module.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2701 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-11 18:26:58 +00:00
zarzuelo 37a8cd55df 2010-05-11 Sergio Martin <sergio.martin@artica.es>
* 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
2010-05-11 17:02:26 +00:00
Ramon Novoa b7ef0afb7f 2010-05-11 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/PluginServer.pm, lib/PandoraFMS/Core.pm,
          lib/PandoraFMS/NetworkServer.pm, lib/PandoraFMS/WMIServer.pm: Fixed
          bug #2941736. Made pandora_update_module_on_error set
          tagente_estado.current_interval.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2697 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-11 16:23:41 +00:00
slerena 4113b9b697 2010-05-11 Sancho Lerena <slerena@artica.es>
* 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
2010-05-11 14:54:52 +00:00
slerena f6eed84e80 2010-05-11 Sancho Lerena <slerena@artica.es>
* 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
2010-05-11 09:03:15 +00:00
Ramon Novoa 396c48ca57 2010-05-10 Ramon Novoa <rnovoa@artica.es>
* 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
2010-05-10 15:59:09 +00:00
zarzuelo 36114f96ac 2010-05-10 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Tools.pm: Typo fix in error message



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2684 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-10 12:22:17 +00:00
slerena c119e3d8c6 2010-05-07 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/DataServer.pm: Fixed call to undefined variable
        on GIS code.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2677 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-07 16:29:52 +00:00
Ramon Novoa a49d5e830f 2010-05-05 Ramon Novoa <rnovoa@artica.es>
* 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
2010-05-05 13:42:15 +00:00
Ramon Novoa 3256d04424 2010-04-30 Ramon Novoa <rnovoa@artica.es>
* 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
2010-04-30 08:56:33 +00:00
slerena fd507a9232 2010-04-28 Sancho Lerena <slerena@artica.es>
* 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
2010-04-28 18:53:26 +00:00
slerena dc6cfe108d 2010-04-28 Sancho Lerena <slerena@artica.es>
* 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
2010-04-28 15:17:29 +00:00
Ramon Novoa 973ddbe204 2010-04-26 Ramon Novoa <rnovoa@artica.es>
* util/pandora_db.pl: Fixed the purge script. Did not work if
          any of the data tables was empty.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2610 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-04-26 11:50:30 +00:00
slerena 2eef0d7a5f 2010-04-23 Sancho Lerena <slerena@artica.es>
* 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
2010-04-23 16:52:12 +00:00
Ramon Novoa 17201a849d 2010-04-14 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/PredictionServer.pm: Added support for service
          modules (Enterprise)




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2566 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-04-14 17:39:23 +00:00
slerena b197929d8f 2010-04-05 Sancho Lerena <slerena@artica.es>
* 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
2010-04-05 16:28:08 +00:00
slerena 794574aa4f 2010-04-06 Sancho Lerena <slerena@artica.es>
* 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
2010-04-05 15:21:42 +00:00
jsatoh 7bb10b84f7 2010-04-05 Junichi Satoh <junichi@rworks.jp>
* 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
2010-04-05 01:34:12 +00:00
slerena 90de6bd633 2010-04-04 Sancho Lerena <slerena@artica.es>
* 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
2010-04-04 22:55:47 +00:00
slerena f1e6d19fe6 2010-03-24 Sancho Lerena <slerena@artica.es>
* 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
2010-03-24 13:09:09 +00:00
eric_ross_c 353d7e5f79 2010-03-19 Eric Ross <eric.ross.c@gmail.com>
* util/pandora_db.pl: Added log4x tables to purge



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2518 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-03-19 14:54:16 +00:00
slerena 26a9eda2f6 2010-03-10 Sancho Lerena <slerena@artica.es>
* 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
2010-03-10 18:46:52 +00:00
slerena 2869f4a377 2010-03-10 Sancho Lerena <slerena@artica.es>
* 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
2010-03-10 16:03:38 +00:00
mdtrooper 67be592500 2010-03-10 Miguel de Dios <miguel.dedios@artica.es>
* util/pandora_xml_stress.conf: deleted conf file, I upload by fail.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2499 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-03-10 15:08:53 +00:00
Ramon Novoa d2173b4912 2010-03-10 Ramon Novoa <rnovoa@artica.es>
* 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
2010-03-10 13:20:56 +00:00
Pablo de la Concepción Sanz 1db8af5de3 2010-03-08 Pablo de la Concepción <pablo.concepcion@artica.es>
* lib/PandoraFMS/GIS.pm, lib/PandoraFMS/GeoIP.pm: Modified to put
    MaxMind GeoIP PurePerl GPL library into PandoraFMS package.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2489 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-03-08 19:14:28 +00:00
slerena 3bf7f1594a 2010-03-04 Sancho Lerena <slerena@artica.es>
* 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
2010-03-04 19:55:19 +00:00
Pablo de la Concepción Sanz bcb8c963fe 2010-03-04 Pablo de la Concepción <pablo.concepcion@artica.es>
* conf/pandora_server.conf: Corrected typo



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2464 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-03-04 09:26:30 +00:00
Pablo de la Concepción Sanz 8a09f0d1b3 2010-03-04 Pablo de la Concepción <pablo.concepcion@artica.es>
* 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
2010-03-04 09:24:52 +00:00
Ramon Novoa 5ae3511c56 2010-03-03 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Added 'matches_value' support to 'onchange'
          alerts.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2456 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-03-03 12:17:20 +00:00
raulmateos 7c5f8f5336 2010-03-02 Raul Mateos <raulofpandora@gmail.com>
* util/tentacle_serverd, util/pandora_server: Updated year. Changed
	spaces to tabs.

	* bin/tentacle_server: Updated year. Updated URL for documentation.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2447 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-03-02 15:33:43 +00:00
slerena 2bb079857f 2010-02-27 Sancho Lerena <slerena@artica.es>
* 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
2010-02-26 23:01:18 +00:00
slerena 0234c9e8c8 2010-02-25 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/Core.pm: Implemented new alert type "onChange".




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2428 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-25 19:16:56 +00:00
Pablo de la Concepción Sanz a2001ff2ce 2010-02-25 Pablo de la Concepción <pablo.concepcion@artica.es>
* 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
2010-02-25 17:09:19 +00:00
Pablo de la Concepción Sanz d509fd443c 2010-02-24 Pablo de la Concepción <pablo.concepcion@artica.es>
* 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
2010-02-24 15:25:56 +00:00
raulmateos 31d35c315e 2010-02-23 Raul Mateos <raulofpandora@gmail.com>
* 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
2010-02-23 17:49:05 +00:00
mdtrooper 132ab90b41 2010-02-23 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: in function "activateAjaxRefresh" add the
	posibility to change refresh time in execution time.
	
	* include/functions_ui.php: add in the "print_page_header" the feature to
	pass a array of buttons/items.

	* include/javascript/openlayers.pandora.js: add the function
	"changeRefreshTime" for change the refresh time.

	* operation/gis_maps/render_view.php: change the top of page for to
	adapt the new header, and add refresh control.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2408 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-23 16:36:24 +00:00
Pablo de la Concepción Sanz 9d81f45b63 2010-02-22 Pablo de la Concepción <pablo.concepcion@artica.es>
* lib/PandoraFMS/DataServer.pm: Fixed bug #2926077 there were one
    more place where the timestamp should be checked.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2403 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-22 20:18:37 +00:00
Pablo de la Concepción Sanz 6f2525311a 2010-02-22 Pablo de la Concepción <pablo.concepcion@artica.es>
* 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
2010-02-22 19:43:39 +00:00
Pablo de la Concepción Sanz 2f878ad76e 2010-02-19 Pablo de la Concepción <pablo.concepcion@artica.es>
* 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
2010-02-19 14:26:09 +00:00
Ramon Novoa 24d57bbcbf 2010-02-19 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Enabled FF protection for module states
          (not just events).




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2388 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-19 13:16:46 +00:00
slerena a003fd22e4 2010-02-19 Sancho Lerena <slerena@artica.es>
* 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
2010-02-19 13:08:42 +00:00
Pablo de la Concepción Sanz b4515f6638 2010-02-18 Pablo de la Concepción <pablo.concepcion@artica.es>
* 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
2010-02-18 18:16:27 +00:00
Pablo de la Concepción Sanz efc6f3acd7 2010-02-18 Pablo de la Concepción <pablo.concepcion@artica.es>
* 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
2010-02-18 17:49:48 +00:00
slerena 5b1ce7cc82 2010-02-18 Sancho Lerena <slerena@artica.es>
* 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
2010-02-18 17:21:40 +00:00
Pablo de la Concepción Sanz 2f575d378e 2010-02-15 Pablo de la Concepción <pablo.concepcion@artica.es>
* 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
2010-02-15 20:34:57 +00:00
Pablo de la Concepción Sanz 9c7c03ffbc 2010-02-15 Pablo de la Concepción <pablo.concepcion@artica.es>
* 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
2010-02-15 19:18:53 +00:00
eric_ross_c f2a901f0d7 Updating changelog
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2363 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-15 15:40:32 +00:00
eric_ross_c f445bdf12c Fix commit for adding LOG4X support
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2361 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-15 13:07:52 +00:00
eric_ross_c fbcd36d182 Testing RW access
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2360 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-15 12:25:44 +00:00
Pablo de la Concepción Sanz c0a6b5fddf 2010-02-14 Pablo de la Concepción <pablo.concepcion@artica.es>
* 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
2010-02-14 14:17:35 +00:00
Pablo de la Concepción Sanz cae911bd51 2010-02-10 Pablo de la Concepción <pablo.concepcion@artica.es>
* 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
2010-02-10 20:17:08 +00:00
slerena b5b32c9f3c 2010-02-10 Sancho Lerena <slerena@artica.es>
* bin/pandora_server: Better error management, avoiding to show Enterprise
        loading errors.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2343 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-10 17:49:47 +00:00
slerena 70feefaf5c 2010-02-10 Sancho Lerena <slerena@artica.es>
* 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
2010-02-10 17:32:10 +00:00
slerena 478ea21616 2010-02-08 Sancho Lerena <slerena@artica.es>
* 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
2010-02-08 01:02:59 +00:00
Pablo de la Concepción Sanz efc19eb943 2010-01-29 Pablo de la Concepción <pablo.concepcion@artica.es>
* 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
2010-02-05 15:27:25 +00:00
Pablo de la Concepción Sanz 9af0431c21 2010-01-29 Pablo de la Concepción <pablo.concepcion@artica.es>
* lib/PandoraFMS/DataServer.pm: Improved timezone_offset management.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2321 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-01-29 15:40:05 +00:00
slerena 383b3ed4c3 2010-01-26 Sancho Lerena <slerena@artica.es>
* PandoraFMS/Core.pm: Fixed bug #2932694 (extra ',' in a SQL sentence).
        Reported by Joe Horn.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2309 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-01-26 19:38:29 +00:00
Pablo de la Concepción Sanz 7d37597db7 2010-01-25 Pablo de la Concepción <pablo.concepcion@artica.es>
* 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
2010-01-25 18:36:23 +00:00
slerena d3fb4ece02 2010-01-21 Sancho Lerena <slerena@artica.es>
* 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
2010-01-22 14:24:56 +00:00
Pablo de la Concepción Sanz 037c7770f3 2010-01-21 Pablo de la Concepción <pablo.concepcion@artica.es>
* 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
2010-01-21 14:58:38 +00:00
Ramon Novoa 79df0046e7 2010-01-20 Ramon Novoa <rnovoa@artica.es>
* util/pandora_xml_stress.pl: Fixed the script. Was not working.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2289 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-01-20 13:34:13 +00:00
Pablo de la Concepción Sanz cbcc6d160b 2010-01-18 Pablo de la Concepción <pablo.concepcion@artica.es>
* 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
2010-01-18 11:20:07 +00:00
Pablo de la Concepción Sanz a5bacde181 2010-01-15 Pablo de la Concepción <pablo.concepcion@artica.es>
* 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
2010-01-15 14:06:48 +00:00
Pablo de la Concepción Sanz 668b49d977 2010-01-15 Pablo de la Concepción <pablo.concepcion@artica.es>
* 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
2010-01-15 10:35:47 +00:00
mdtrooper 16c7ebca5a 2010-01-14 Miguel de Dios <miguel.dedios@artica.es>
* 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
2010-01-14 09:02:49 +00:00
mdtrooper 2c683da10b 2010-12-13 Miguel de Dios <miguel.dedios@artica.es>
* PandoraFMS-Enterprise/DEBIAN/*: add scripts and conf files to make a deb
	package.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2269 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-01-13 18:33:04 +00:00
mdtrooper 82b7a8ed29 2010-12-13 Miguel de Dios <miguel.dedios@artica.es>
* PandoraFMS-Enterprise/DEBIAN/*: add scripts and conf files to make a deb
	package.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2268 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-01-13 18:22:52 +00:00
Pablo de la Concepción Sanz a89d536b36 2010-01-12 Pablo de la Concepción <pablo.concepcion@artica.es>
* lib/PandoraFMS/Core.pm: Fixed a bug introduced in last commmit




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2265 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-01-12 18:34:57 +00:00
Pablo de la Concepción Sanz e0209e1fbb 2010-01-12 Pablo de la Concepcipón <pablo.concepcion@artica.es>
* 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
2010-01-12 17:22:14 +00:00
slerena 51e4221b03 2009-12-29 Sancho Lerena <slerena@artica.es>
* 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
2009-12-29 16:40:50 +00:00
slerena 67c8182ec4 2009-12-28 Sancho Lerena <slerena@artica.es>
* lib/Config.pm: pandora_exec default at /usr/bin




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2253 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-12-28 18:43:10 +00:00
slerena 2c9fe7ea2d 2009-12-28 Sancho Lerena <slerena@artica.es>
* util/pandora_logrotate: Optimized logrotate setup.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2251 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-12-28 18:20:50 +00:00
slerena c0e26cac19 2009-12-28 Sancho Lerena <slerena@artica.es>
* 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
2009-12-28 18:00:53 +00:00
Ramon Novoa beaa525096 2009-12-23 Ramon Novoa <rnovoa@artica.es>
* 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
2009-12-23 16:18:33 +00:00
slerena c8273efad4 2009-12-23 Sancho Lerena <slerena@artica.es>
* 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
2009-12-23 12:51:12 +00:00
Ramon Novoa 4b70e70e41 2009-12-21 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Fixed agent check in logger call.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2228 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-12-21 17:51:52 +00:00
slerena 400db17068 2009-12-21 Sancho Lerena <slerena@artica.es>
* util/tentacle_served: Fixed call to get_pid, using a width of
        * 300 cols.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2225 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-12-21 12:03:36 +00:00
Ramon Novoa 999fcfef3a 2009-12-21 Ramon Novoa <rnovoa@artica.es>
* util/pandora_xml_stress.pl: Properly read agent_interval
          configuration token.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2224 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-12-21 10:16:01 +00:00
slerena 72653518fc 2009-12-18 Sancho Lerena <slerena@artica.es>
* 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
2009-12-18 18:22:33 +00:00
raulmateos 811350f5ff git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2217 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f 2009-12-18 13:46:32 +00:00
raulmateos 206e69c947 2009-12-18 Raul Mateos <raulofpandora@gmail.com>
* pandora_dbstress.pl, pandora_db.pl: Clean code, updated year.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2216 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-12-18 13:43:02 +00:00
Ramon Novoa 3f7abb97a0 2009-12-18 Ramon Novoa <rnovoa@artica.es>
* DEBIAN/control: Updated version.

        * util/pandora_db.pl: Added history database support. Re-wrote some
          parts.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2215 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-12-18 11:26:13 +00:00
mdtrooper 3a1726b8d7 2009-12-17 Miguel de Dios <miguel.dedios@artica.es>
* 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
2009-12-17 12:03:41 +00:00
raulmateos ca3b8a5da4 2009-12-16 Raul Mateos <raulofpandora@gmail.com>
* DEBIAN/make_deb_package.sh, lib/PandoraFMS/Config.pm, README,
	pandora_server_upgrade, pandora_server_installer: Preparing release
	changing version to final. Clean code.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2208 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-12-16 18:15:25 +00:00
raulmateos af83debc73 2009-12-14 Raul Mateos <raulofpandora@gmail.com>
* util/pandora_db.pl: Improved help.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2194 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-12-14 09:37:41 +00:00
raulmateos 21fcdbe7c8 2009-12-14 Raul Mateos <raulofpandora@gmail.com>
* 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
2009-12-13 23:38:31 +00:00
raulmateos 518faddbf7 2009-12-07 Raul Mateos <raulofpandora@gmail.com>
* 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
2009-12-07 14:57:03 +00:00
slerena 36203fb9d3 2009-12-05 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/Core.pm: Fixed bug #2905434




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2164 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-12-05 15:31:07 +00:00
raulmateos 34528b69bd 2009-11-28 Raul Mateos <raulofpandora@gmail.com>
* 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
2009-11-28 13:15:58 +00:00
Ramon Novoa abc7664bf3 2009-11-23 Ramon Novoa <rnovoa@artica.es>
* util/pandora_db.pl: Removed the last call to UnixDate.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2125 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-11-23 17:57:52 +00:00
slerena 10cddb35e2 2009-11-19 Sancho Lerena <slerena@artica.es>
* 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
2009-11-19 13:40:42 +00:00
Ramon Novoa b7d4b96e54 2009-11-19 Ramon Novoa <rnovoa@artica.es>
* Check for empty module/agent when processing
          module data.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2116 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-11-19 00:44:30 +00:00
Ramon Novoa 287a76b751 2009-11-13 Ramon Novoa <rnovoa@artica.es>
* conf/pandora_server.conf: Updated configuration tokens.

        * lib/PandoraFMS/SNMPServer.pm, lib/PandoraFMS/Config.pm,
          lib/PandoraFMS/PluginServer.pm, lib/PandoraFMS/PredictionServer.pm,
          lib/PandoraFMS/Core.pm, lib/PandoraFMS/ReconServer.pm,
          lib/PandoraFMS/DataServer.pm, lib/PandoraFMS/NetworkServer.pm,
          lib/PandoraFMS/Tools.pm, lib/PandoraFMS/WMIServer.pm,
          bin/pandora_server: Standardized and improved logging.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2108 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-11-13 13:52:48 +00:00
Ramon Novoa 6b28deefe5 2009-11-10 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Fixed forced alert execution. Substitute alert
          macros after decoding HTML entities.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2102 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-11-10 17:04:48 +00:00
Ramon Novoa ec6168555e 2009-11-10 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/PredictionServer.pm: Fixed bug #2894950.

        * lib/PandoraFMS/DataServer.pm: Fixed bug #2894737.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2101 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-11-10 12:25:10 +00:00
slerena 4831e3ebdf 2009-11-08 Sancho Lerena <slerena@artica.es>
* 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
2009-11-10 00:33:16 +00:00
slerena d6065cb576 2009-11-07 Sancho Lerena <slerena@artica.es>
* 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
2009-11-08 01:38:04 +00:00
raulmateos bff6274be9 2009-11-06 Raul Mateos <raulofpandora@gmail.com>
* 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
2009-11-06 19:48:48 +00:00
Ramon Novoa 071bf227bf 2009-11-06 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Tools.pm: Fixed bug #2893302.

        * util/pandora_db.pl: Fixed bug #2893303.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2090 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-11-06 15:57:06 +00:00
Ramon Novoa a3b9658b8a 2009-11-04 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Fixed a typo.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2082 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-11-04 17:51:27 +00:00
Ramon Novoa 9031e95e36 2009-11-04 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DB.pm, lib/PandoraFMS/Core.pm,
          lib/PandoraFMS/DataServer.pm, lib/PandoraFMS/WMIServer.pm,
          bin/pandora_server, util/pandora_db.pl: Fixed all pending tracker
          bugs.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2081 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-11-04 17:49:42 +00:00
mdtrooper 50eb30eb9b 2009-11-04 Miguel de Dios <miguel.dedios@artica.es>
* 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
2009-11-04 15:45:24 +00:00
mdtrooper 0b6cbd1cb4 2009-12-03 Miguel de Dios <miguel.dedios@artica.es>
* 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
2009-11-03 17:18:52 +00:00
Ramon Novoa 31fa8b3d93 2009-11-01 Ramon Novoa <rnovoa@artica.es>
* util/pandora_db.pl: Date::Manip is not used anymore.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2068 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-11-01 20:43:04 +00:00
slerena 74baa607ba 2009-10-26 Sancho Lerena <slerena@artica.es>
* spec: Added net-tools dependency (includes ping and traceroute).
        Updated release of spec.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2056 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-10-27 20:58:38 +00:00
Ramon Novoa 2792f5b2d5 2009-10-21 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Fixed max_min alerts.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2044 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-10-21 10:01:34 +00:00
slerena 07af5da2d2 2009-10-21 Sancho Lerena <slerena@artica.es>
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
2009-10-20 23:35:05 +00:00
slerena cf8e8ca556 2009-10-20 Sancho Lerena <slerena@artica.es>
RC1 Release date

        * lib/Config.pm: Updated build.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2041 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-10-20 21:27:41 +00:00
slerena 7ba771e85e 2009-10-20 Sancho Lerena <slerena@artica.es>
* util/pandora_server: Fixed incorrect message for SUSE daemon when stop
        the server.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2038 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-10-20 11:35:45 +00:00
Ramon Novoa 63cfd01ff2 2009-10-20 Ramon Novoa <rnovoa@artica.es>
* 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
2009-10-20 11:19:08 +00:00
slerena e1232298d2 2009-10-20 Sancho Lerena <slerena@artica.es>
* 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
2009-10-19 10:42:42 +00:00
slerena a4e28346dc 2009-10-16 Sancho Lerena <slerena@artica.es>
* 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
2009-10-16 14:56:25 +00:00
Ramon Novoa 049fc54e6a 2009-10-16 Ramon Novoa <rnovoa@artica.es>
* 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
2009-10-16 11:26:22 +00:00
slerena cd2523b6fd 2009-10-16 Sancho Lerena <slerena@artica.es>
* 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
2009-10-15 20:47:49 +00:00
slerena b56c3d8ef7 2009-10-15 Sancho lerena <slernea@artica.es>
* 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
2009-10-15 11:23:40 +00:00
slerena 80160587a7 2009-10-13 Sancho Lerena <slerena@artica.es>
* 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
2009-10-13 22:47:53 +00:00
slerena 6880d40500 2009-10-13 Sancho Lerena <slerena@artica.es>
* 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
2009-10-13 19:06:17 +00:00
Ramon Novoa 7aefdd1bf7 2009-10-09 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm, bin/pandora_server: Re-enabled multicast
          reports (Enterprise feature).




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2014 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-10-09 12:12:16 +00:00
Ramon Novoa ffb3d4425c 2009-10-09 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Server.pm, bin/pandora_server: Small fixes to avoid
          warnings.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2013 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-10-09 10:16:19 +00:00
Ramon Novoa 0205f8fd9b 2009-10-07 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/SNMPServer.pm,
          lib/PandoraFMS/DataServer.pm: Reverted the way enterprise functions
          are called.

        * lib/PandoraFMS/Server.pm
          lib/PandoraFMS/ProducerConsumerServer.pm: Handle fatal errors and
          save error messages (useful for console event generation).

        * lib/PandoraFMS/Tools.pm: Improved enterprise_hook.

        * lib/PandoraFMS/Core.pm: Merged pandora_event_status into
          pandora_event.

        * bin/pandora_server, lib/PandoraFMS/Config.pm: Added restart on error
          and auto-restart features.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2010 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-10-07 15:10:14 +00:00
slerena 585aef0535 2009-09-30 Sancho Lerena <slerena@artica.es>
* 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
2009-09-30 16:24:02 +00:00
slerena 0df78cca0d 2009-09-30 Sancho Lerena <slerena@artica.es>
* 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
2009-09-30 00:00:22 +00:00
slerena c693c17205 2009-09-28 Sancho Lerena <slerena@artica.es>
* 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
2009-09-28 15:53:06 +00:00
slerena aad347a553 2009-09-25 sancho lerena
* util/pandora_server: Fix SUSE problem (I hope)



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1974 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-25 00:27:09 +00:00
slerena 8e5fd3281a 2009-09-25 Sancho Lerena <slerena@artica.es>
* pandora_server.spec: Some fixes to SUSE RPM.

        * conf/pandora_server.conf: Added some missing default values

        * lib/PandoraFMS/Config.pm: Added some missing default values.

        * util/tentacle_serverd, util/pandora_server: SUSE rc.status 
        addon. Need working, SUSE continues giving erratic problems inn
        startup :(




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1972 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-25 00:09:15 +00:00
slerena d9dfbd1a29 2009-09-22 Sancho Lerena <slerena@artica.es>
* 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
2009-09-22 10:38:53 +00:00
guruevi 5ccd4995de 2009-09-21 Evi Vanoost <vanooste@rcbi.rochester.edu>
* 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
2009-09-21 20:26:23 +00:00
slerena bb27a3eece 2009-09-21 Sancho Lerena <slerena@artica.es>
* 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
2009-09-21 00:34:14 +00:00
slerena e5defb12a8 2009-09-18 Sancho Lerena <slerena@artica.es>
*  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
2009-09-18 17:29:18 +00:00
slerena f21aa5a9d2 2009-09-16 Sancho Lerena <slerena@artica.es>
* 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
2009-09-16 00:02:23 +00:00
slerena a461cf9446 2009-09-15 Sancho Lerena <slerena@artica.es>
* util/pandora_backup.sh: Finished backup command line tool




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1945 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-15 16:38:00 +00:00
slerena 3700a1b7df 2009-09-14 Sancho Lerena <slerena@artica.es>
* 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
2009-09-14 01:10:20 +00:00
slerena a71596aa8c 2009-09-07 Sancho Lerena <slerena@artica.es>
* util/pandora_db.pl: Fixed bad calculation of utimestamp limit
        purgin agent access data.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1918 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-07 00:14:43 +00:00
slerena 80a98e22e6 2009-09-04 Sancho Lerena zslerena@artica.es>
* 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
2009-09-04 12:18:42 +00:00
slerena 1685c8f6ba 2009-09-03 Sancho Lerena <slerena@artica.es>
* 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
2009-09-03 17:09:52 +00:00
Ramon Novoa 1c75351937 2009-09-02 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Decode HTML entities for all alert types.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1909 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-02 15:54:53 +00:00
Ramon Novoa e5991c67e2 2009-09-02 Ramon Novoa <rnovoa@artica.es>
* 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
2009-09-02 14:54:04 +00:00
slerena 28b76ef4f0 2009-09-02 Sancho Lerena <slerena@artica.es>
*  lib/PandoraFMS/PluginServer.pm, util/pandora_exec: Nagis plugin 
        support implemented and working.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1906 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-02 14:00:44 +00:00
Ramon Novoa 983d1f373a 2009-09-02 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Fixed the matches_value alert option (was not
          working properly).




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1904 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-02 11:22:05 +00:00
Ramon Novoa 7097b6ace8 2009-09-02 Ramon Novoa <rnovoa@artica.es>
* 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
2009-09-02 10:52:57 +00:00
Ramon Novoa 176ae0f6ac 2009-09-02 Ramon Novoa <rnovoa@artica.es>
* 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
2009-09-02 09:52:55 +00:00
slerena b6cc9f820a 2009-09-01 Sancho Lerena <slerena@artica.es>
* 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
2009-09-01 16:27:36 +00:00
Ramon Novoa 6ec485b5a2 2009-08-28 Ramon Novoa <rnovoa@artica.es>
* pandora_server.spec,
          pandora_server_installer: Autocreate the conf and md5 subdirectories.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1888 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-08-28 11:07:52 +00:00
Ramon Novoa 8aa96f1874 2009-08-27 Ramon Novoa <rnovoa@artica.es>
* 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
2009-08-27 17:47:50 +00:00
Ramon Novoa 36e69ac4ed 2009-08-25 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Fixed compound alerts.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1880 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-08-25 14:44:28 +00:00
slerena a7dfd4814b 2009-08-24 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/Core.pm: Condition trigger for WARNING and
        CRITICAL status was inverted. Fixed.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1878 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-08-24 21:24:13 +00:00
Ramon Novoa f146163618 2009-08-24 Ramon Novoa <rnovoa@artica.es>
* 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
2009-08-24 18:25:42 +00:00
slerena 4656b5e8b7 2009-08-23 Sancho Lerena <slerena@artica.es>
* 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
2009-08-24 16:16:07 +00:00
mdtrooper 80bae59f26 2009-08-22 Sancho Lerena <slerena@artica.es>
* 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
2009-08-24 11:50:00 +00:00
slerena 086c34bdf7 2009-08-22 Sancho Lerena <slerena@artica.es>
* pandora_server.spec: Update uninstall process.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1872 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-08-23 21:49:25 +00:00
slerena bcddfe6dc9 2009-08-20 Sancho lerena <slerena@artica.es>
* 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
2009-08-20 15:48:42 +00:00
slerena 8c3452ab60 2009-08-19 Sancho lerena <slerena@artica.es>
* 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
2009-08-19 19:49:55 +00:00
marostegui 6a53dd04c8 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1865 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f 2009-08-19 07:12:56 +00:00
slerena e131606862 2008-08-19 Sancho lerena <slerena@artica.es>
* tools.pm: Added support for new Octopus device, the hardware
	sensor of Pandora FMS.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1862 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-08-19 02:20:54 +00:00
slerena 13ec6ed442 2009-08-19 Sancho lerena <slerena@artica.es>
* 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
2009-08-19 01:41:25 +00:00
slerena 4ea27cae57 2009-08-15 Sancho lerena <slerena@artica.es>
* 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
2009-08-15 03:00:21 +00:00
slerena 332cf086b8 2009-08-12 sancho Lerena <slerena@artica.es>
* tentacle_serverd, 
        pandora_server: Added LSB tags to startup daemon for SUSE



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1845 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-08-12 15:01:55 +00:00
slerena c1ca842e3e 2009-08-11 Sancho Lerena <slerena@artica.es>
* 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
2009-08-11 16:26:09 +00:00
mdtrooper 1466cb0bd2 2009-08-03 Ramon Novoa <rnovoa@artica.es>
* linux/plugins/inventory: Added the capacity for search services in init,
	details file system, and modify the software scanner to extract the
	description.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1836 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-08-11 15:19:30 +00:00
slerena 19d602054c 2009-08-10 Sancho Lerena <slerena@artica.es>
* pandora_server.conf: Removed deprecated parameter: Alert_threshold.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1834 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-08-10 11:06:09 +00:00
Ramon Novoa c193f88af3 2009-08-04 Ramon Novoa <rnovoa@artica.es>
* 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
2009-08-04 16:19:15 +00:00
Ramon Novoa 3126a2a3cd 2009-08-03 Ramon Novoa <rnovoa@artica.es>
* 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
2009-08-03 15:12:07 +00:00
marostegui 2f2abc143b 2009-07-30 Manuel Arostegui <manuel@todo-linux.com>
* 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
2009-07-30 16:45:35 +00:00
jorgonzalez 9744e55f3d 2009-07-24 Jorge Gonzalez <jorgegonz@artica.es>
* util/pandora_exec: added execution permision to plugin server.  



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1819 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-07-24 09:08:20 +00:00
marostegui bf38eb7d64 2009-07-10 Manuel Arostegui <manuel@todo-linux.com>
* 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
2009-07-10 06:36:23 +00:00
marostegui 69305875ab 2009-07-09 Manuel Arostegui <manuel@todo-linux.com>
* pandora_server.spec: Removed unnecessary dependency.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1797 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-07-09 09:04:44 +00:00
Ramon Novoa 157c3d1f28 2009-07-08 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Config.pm: Properly set the new agentaccess
          config option. Fixes bug #2815878.

        * util/pandora_xml_stress.pl: Fixed config file comment detection.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1792 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-07-08 11:01:47 +00:00
marostegui ca040599a3 2009-06-30 Manuel Arostegui <marostegui@artica.es>
* pandora_server.spec: Now it builds packages for SLE9.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1778 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-06-30 09:50:35 +00:00
marostegui 4e8c680cc5 2009-06-30 Manuel Arostegui <marostegui@artica.es>
* 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
2009-06-30 09:10:58 +00:00
slerena 8af37fc32a 2009-06-23 Sancho Lerena <slerena@artica.es>
* 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
2009-06-24 16:53:17 +00:00
Ramon Novoa e754cb054b 2009-06-24 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Small fixes to compound alert and event
          generation.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1761 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-06-24 11:08:30 +00:00
Ramon Novoa 41936bbdc5 2009-06-15 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/SNMPServer.pm: Fixed the call to snmp_trap2agent (was
          missing an argument).




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1751 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-06-15 14:37:51 +00:00
Ramon Novoa 16925ae59a 2009-06-08 Ramon Novoa <rnovoa@artica.es>
* 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
2009-06-08 18:36:12 +00:00
slerena e75d58adec 2009-06-08 Sancho Leren <slerena@artica.es>
* Header updates.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1732 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-06-08 15:12:32 +00:00
Ramon Novoa a955f7db32 2009-06-05 Ramon Novoa <rnovoa@artica.es>
* 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
2009-06-05 15:38:19 +00:00
Ramon Novoa a09500989c 2009-06-02 Ramon Novoa <rnovoa@artica.es>
* 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
2009-06-02 11:19:27 +00:00
slerena cf9986bc20 2009-06-01 Sancho Lerena <slerena@artica.es>
*  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
2009-06-01 14:34:46 +00:00
Ramon Novoa ae226675aa 2009-05-27 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/ReconServer.pm: Interrupt recon tasks being executed
          if the task was deleted.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1717 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-05-27 17:23:28 +00:00
Ramon Novoa d33ab701a7 2009-05-27 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Disabled string comparisons for
          equal/not_equal alerts (use regex instead).




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1716 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-05-27 16:51:42 +00:00
Ramon Novoa 9ec9af6bce 2009-05-27 Ramon Novoa <rnovoa@artica.es>
* 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
2009-05-27 16:09:29 +00:00
slerena 43afc79659 2009-05-12 Sancho Lerena <slerena@gmail.com>
* pandora_package_installer: Removed old, unused script.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1684 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-05-12 15:26:23 +00:00
Ramon Novoa cce3391f87 2009-05-04 Ramon Novoa <rnovoa@artica.es>
* 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
2009-05-04 19:03:15 +00:00
Ramon Novoa 7749e201de 2009-05-04 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DB.pm: Enabled mysql_auto_reconnect.

        * lib/PandoraFMS/SNMPServer.pm, lib/PandoraFMS/PluginServer.pm,
          lib/PandoraFMS/NetworkServer.pm, lib/PandoraFMS/WMIServer.pm: Log
          error messages when external programs are not found.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1673 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-05-04 12:16:52 +00:00
Ramon Novoa c8b7b367ed 2009-04-28 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/SNMPServer.pm: Disabled output from snmptrapd.

	* lib/PandoraFMS/Core.pm: Allow string comparisons for equal/not_equal
	  alerts.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1659 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-28 15:57:41 +00:00
Ramon Novoa 23e14342e9 2009-04-27 Ramon Novoa <rnovoa@artica.es>
* 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
2009-04-27 16:55:06 +00:00
Ramon Novoa bfb7660e23 2009-04-27 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/ProducerConsumerServer.pm,
          lib/PandoraFMS/Server.pm: Properly set task queue size for
          statistics.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1656 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-27 09:46:51 +00:00
Ramon Novoa aa07cc7ecd 2009-04-24 Ramon Novoa <rnovoa@artica.es>
* 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
2009-04-24 08:25:55 +00:00
Ramon Novoa 4fd6d10359 2009-04-23 Ramon Novoa <rnovoa@artica.es>
* 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
2009-04-23 15:33:25 +00:00
Ramon Novoa 804673ec7a 2009-04-23 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Fixed *inc data processing.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1650 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-23 09:20:46 +00:00
Ramon Novoa e37ea0a62e 2009-04-22 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/SNMPServer.pm: Fixed SNMP alerts.

        * lib/PandoraFMS/Core.pm: Fixed forced alert execution.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1648 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-22 17:31:31 +00:00