Commit Graph

215 Commits

Author SHA1 Message Date
Ramon Novoa ecc7cadeb7 Updated the Tentacle server to the latest version. 2014-11-27 15:37:36 +01:00
Junichi Satoh 5a074f3c2f Copied the newest tentacle_server from the tentacled repository.
(Fixed that tcp connection is not closed when timed out or connection
refused by libwrap.)
2014-11-25 09:51:58 +09:00
Ramon Novoa 6b68c268d4 Added a token to configure the self monitoring interval. 2014-10-15 15:08:19 +02:00
Hirofumi Kosaka 844b5b93a2 Moved log rotation from inside of logger() to pandora_server's periodic tasks,
preventing warnings below at pandora_server.error;

> Use of uninitialized value in numeric gt (>) at /usr/lib/perl5/PandoraFMS/Tools.pm line 415.

MERGED FROM pandora_5.0.
2014-09-29 19:53:15 +09:00
Ramon Novoa c43f70edfd Fixed a typo. 2014-09-22 17:06:52 +02:00
Ramon Novoa f09b1ab17c Set the self-monitoring interval to 180 seconds (ticket #1324). 2014-09-22 11:08:45 +02:00
Junichi Satoh 376bbcde81 Fixed pandora_server execution error with wrong variable. 2014-09-21 15:01:18 +09:00
Ramon Novoa f8425f0aa7 Server tasks should be executed on the master server only. 2014-09-18 13:18:06 +02:00
koichirok b4811b918b 2014-08-12 Koichiro Kikuchi <koichiro@rworks.jp>
* bin/pandora_server: Fixed issue that pandora_server failed to
	 shut down properly on non-Linux systems.

	Merged r10335 from branch 5.0.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10402 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-08-12 06:18:57 +00:00
pandora-release c9d5e8d794 Fixes to the Windows service.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10230 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-06-18 09:57:17 +00:00
Ramon Novoa 7a17f11379 2014-05-28 Ramon Novoa <rnovoa@artica.es>
* bin/pandora_server,
	  lib/PandoraFMS/Config.pm: Removed getopts. Fixes a problem found by Junichi.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10027 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-05-28 09:37:01 +00:00
Ramon Novoa 84277a1333 2014-05-27 Ramon Novoa <rnovoa@artica.es>
* bin/tentacle_server: Updated to the latest version.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10017 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-05-27 12:32:38 +00:00
Ramon Novoa 323711f447 2014-05-20 Ramon Novoa <rnovoa@artica.es>
* bin/pandora_server: Stop the service when the server crashes (win32).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9963 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-05-20 14:33:27 +00:00
pandora-release 42371406fe Added to repository. pandora_exec binary for win32.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9930 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-05-14 07:58:02 +00:00
Ramon Novoa 828a23432b 2014-05-13 Ramon Novoa <rnovoa@artica.es>
* bin/pandora_server: Added support to run as a native win32 service.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9924 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-05-13 13:34:57 +00:00
Ramon Novoa f889ebee0f 2014-05-09 Ramon Novoa <rnovoa@artica.es>
* bin/tentacle_server.exe: Added to repository. Tentacle server win32
	  binary.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9902 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-05-09 15:10:56 +00:00
alexhigh d3338ea1bf 2014-05-05 Alejandro Gallardo <alejandro.gallardo@artica.es>
* bin/pandora_server: Added checks and warnings for
	too many threads and verbosity 10.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9860 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-05-05 11:25:27 +00:00
koichirok e7c86b7d9b 2014-04-03 Koichiro KIKUCHI <koichiro@rworks.jp>
* bin/tentacle_server: Updated to the logfile supported version.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9712 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-04-03 11:26:15 +00:00
Ramon Novoa 13c843274a 2014-01-15 Ramon Novoa <rnovoa@artica.es>
* bin/pandora_server: Prevent the thread that executes periodic tasks
	  from dying on database errors.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9324 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-01-15 11:10:53 +00:00
jsatoh b32278225c 2013-09-22 Junichi Satoh <junichi@rworks.jp>
* bin/tentacle_server: Upgraded to 0.4.0. (Imported from trunk of
	tentacled repository.)
	Added support for IPv6 and improved to be able to bind multiple
	interfaces and/or IP addresses.
	Added support for 'TCP Wrappers'. When the 'Authen::Libwrap' is
	installed and -T option is specified, this feature can be used.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8796 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-09-22 14:44:57 +00:00
Ramon Novoa 9173d085b7 2013-09-09 Ramon Novoa <rnovoa@artica.es>
* conf/pandora_server.conf.new,
	  lib/PandoraFMS/Config.pm,
	  lib/PandoraFMS/Core.pm,
	  bin/pandora_server: Added support for event auto-expiry and small
	  fixes.

	* util/pandora_manage.pl: Added support for event custom data.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8753 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-09-09 16:09:34 +00:00
Ramon Novoa 249f0b38f9 2013-05-16 Ramon Novoa <rnovoa@artica.es>
* bin/pandora_server: Added information about the loading of the
	  enterprise module to the log.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8138 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-05-16 08:39:44 +00:00
Ramon Novoa cfb7bc2c90 2013-04-17 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Server.pm,
	  bin/pandora_server: Moved server tasks to their own thread. Fixes
	  bug #3609450.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8003 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-04-17 14:58:50 +00:00
Ramon Novoa 9154814f2c 2013-03-26 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm,
	  lib/PandoraFMS/Tools.pm,
	  lib/PandoraFMS/DataServer.pm,
	  lib/PandoraFMS/ReconServer.pm,
	  bin/pandora_server: Improved pandora_get_os to support custom operating
	  systems and moved it from Tools.pm to Core.pm.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7889 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-03-26 16:13:15 +00:00
Ramon Novoa ec65703d8b 2013-03-20 Ramon Novoa <rnovoa@artica.es>
* conf/pandora_server.conf,
	  lib/PandoraFMS/Core.pm,
	  lib/PandoraFMS/Config.pm,
	  bin/pandora_server: Added the parameter braa_retries, which lets braa
	  retry SNMP modules a number of times before handing it over to the
	  network server.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7873 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-03-20 15:50:41 +00:00
Ramon Novoa 33dfb15aff 2013-03-19 Ramon Novoa <rnovoa@artica.es>
* bin/pandora_server: Moved a log message to verbosity 10.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7869 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-03-19 18:23:07 +00:00
Ramon Novoa 442bf2013c 2013-03-19 Ramon Novoa <rnovoa@artica.es>
* bin/pandora_server: Style fix.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7867 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-03-19 18:12:53 +00:00
Ramon Novoa 3c9fe04dc2 2013-03-19 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm,
	  bin/pandora_server,
	  util/pandora_db.pl: Added support for on-demand module status
	  calculation.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7865 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-03-19 17:16:59 +00:00
Ramon Novoa 0abefef794 2013-02-28 Ramon Novoa <rnovoa@artica.es>
* bin/pandora_server: Undid the previous commit since forking after
	  having launched all server threads can lead to trouble.

	* lib/PandoraFMS/Core.pm: Removed some debugging code that polluted the
	  logs.
	
	* lib/PandoraFMS/NetworkServer.pm: Removed a DISTINCT from the query since
	  module ids are unique.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7741 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-28 10:30:32 +00:00
Ramon Novoa d40c9a0b01 2013-02-25 Ramon Novoa <rnovoa@artica.es>
* bin/pandora_server: Delay the backgrounding of the main process to
	  make log messages available when starting from the init script.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7714 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-25 14:36:01 +00:00
zarzuelo ad40156f0e 2013-02-14 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm
	bin/pandora_server
	util/pandora_db.pl: Adapt status counts querys to use only
	not disabled modules



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7652 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-14 13:11:52 +00:00
Ramon Novoa 272ff3ec26 2013-01-31 Ramon Novoa <rnovoa@artica.es>
* bin/pandora_server,
	  conf/pandora_server.conf,
	  lib/PandoraFMS/Config.pm,
	  lib/PandoraFMS/Core.pm,
	  util/pandora_manage.pl: Added support for event storm protection and
	  disabling auto event validation.

	* lib/PandoraFMS/Server.pm: Improved the server status update function
	  to use run less queries.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7556 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-31 18:02:41 +00:00
Ramon Novoa d4196780e3 2012-12-24 Ramon Novoa <rnovoa@artica.es>
* bin/pandora_server: Re-calculate module status count upon server
          startup.

        * util/pandora_db.pl: Use new not-init status for module status count
          calculation.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7326 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-24 12:15:51 +00:00
zarzuelo 53162b4e9a 2012-12-13 Sergio Martin <sergio.martin@artica.es>
* conf/pandora_server.conf
	lib/PandoraFMS/Config.pm
	lib/PandoraFMS/DB.pm
	lib/PandoraFMS/Core.pm
	bin/pandora_server: Added new thread to the
	event replication process (enterprise feature) 
	and control this one and the policy queue patrol 
	process with new two configuration parameters



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7278 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-13 17:07:23 +00:00
mdtrooper 9467c58ebc 2012-08-30 Miguel de Dios <miguel.dedios@artica.es>
* lib/PandoraFMS/Core.pm: refactoriced the code for the new Planned
	Downtime, now check the downtimes once and periodical and the
	subtypes of downtimes.
	
	* bin/pandora_server: cleaned source code style.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6925 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-30 16:35:24 +00:00
mdtrooper 59ddc74a16 2012-08-21 Miguel de Dios <miguel.dedios@artica.es>
* lib/PandoraFMS/Server.pm:: added the feature to set a agent in
	"Quiet" mode.
	
	* lib/PandoraFMS/Core.pm, bin/pandora_server: cleaned source code
	style.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6897 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-21 17:33:46 +00:00
koichirok 151024c1c3 2012-04-19 Koichiro Kikuchi <koichiro@rworks.jp>
* conf/pandora_server.conf.windows,
	  conf/pandora_server.conf,
	  lib/PandoraFMS/DB.pm
	  lib/PandoraFMS/Core.pm
	  lib/PandoraFMS/SNMPServer.pm
	  lib/PandoraFMS/Config.pm
	  lib/PandoraFMS/ProducerConsumerServer.pm
	  bin/pandora_server
	  FreeBSD/pandora_server.conf
	  util/pandora_db.pl
	  util/recon_scripts/snmpdevices.pl
	  util/recon_scripts/ipmi-recon.pl
	  util/plugin/pandora_inventory_change.pl
	  util/plugin/pandora_server_status.pl
	  util/pandora_manage.pl
	  util/pandora_recode_db.pl
	  util/pandora_dbstress.pl: Now pandora_server supports MySQL
	 server running on non-standard port.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6054 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-04-20 03:56:09 +00:00
hkosaka b751ee4870 2012-02-16 Hirofumi Kosaka <kosaka@rworks.jp>
* bin/tentacle_server: Upgraded to 0.3.0 (Merged from
	pandora_agent package).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5605 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-02-16 07:30:35 +00:00
Ramon Novoa 7659e14ca5 2012-02-13 Ramon Novoa <rnovoa@artica.es>
* bin/pandora_exec: Quote command line arguments. Thanks to Junichi
	  Satoh.

	* lib/PandoraFMS/Core.pm: Small fixes to pandora_event.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5578 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-02-13 17:05:44 +00:00
Ramon Novoa bf94c6b443 2012-01-24 Ramon Novoa <rnovoa@artica.es>
* DEBIAN/make_deb_package.sh,
	  pandora_server_installer,
	  pandora_server.spec: Auto-create the netflow storage dir.

	* bin/pandora_server: Aesthetic changes.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5418 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-01-24 18:46:00 +00:00
Ramon Novoa 4ed9ea98c4 2012-01-24 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Config.pm,
	  lib/PandoraFMS/PredictionServer.pm,
	  lib/PandoraFMS/Core.pm,
	  bin/pandora_server: Added support for enterprise netflow modules.

	* lib/PandoraFMS/PluginServer.pm: Run plugins inside eval to avoid
	  server crashes.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5417 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-01-24 17:16:56 +00:00
zarzuelo 8581547300 2011-08-16 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm
	bin/pandora_server: Improved Enterprise check to the policy queue
	thread and fix a memory problem in the queue patrol loop



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4739 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-08-16 11:54:11 +00:00
zarzuelo 03b5ca8ba9 2011-08-12 Sergio Martin <sergio.martin@artica.es>
* bin/pandora_server: Fixed policy queue when the server is launched
	in daemon mode for bug 3390085 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4728 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-08-12 09:48:31 +00:00
koichirok 80bf29aca2 2011-06-23 Koichiro Kikuchi <koichiro@rworks.jp>
* lib/PandoraFMS/Tools.pm: Checked if pandora_server is already
	  running, in order to prevent multiple instances with same PID
	  file from running. And made PID file permissions 644, rather
	  than 666.

	* bin/pandora_server: Remove PID file on shutdown.

	* FreeBSD/pandora_server: Use -P option for PID file instead of
	  pgrep.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4481 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-06-23 03:50:31 +00:00
zarzuelo 2e140d4939 2011-05-11 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm
	bin/pandora_server
	util/pandora_manage.pl: Added thread in main loop of the 
	server with check to the policy queue. 
	Apply and delete agents from policy in the new thread
	Deleting policies lock system from server 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4335 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-05-11 10:15:04 +00:00
Ramon Novoa c69f48e890 2011-04-13 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/SNMPServer.pm,
	  lib/PandoraFMS/Config.pm,
	  lib/PandoraFMS/NetworkServer.pm,
	  lib/PandoraFMS/WMIServer.pm,
	  lib/PandoraFMS/PluginServer.pm,
	  lib/PandoraFMS/DB.pm,
	  lib/PandoraFMS/ProducerConsumerServer.pm,
	  lib/PandoraFMS/PredictionServer.pm,
	  lib/PandoraFMS/Core.pm,
	  lib/PandoraFMS/ReconServer.pm,
	  bin/pandora_server,
	  util/pandora_db.pl,
	  util/pandora_manage.pl,
	  util/recon_scripts/snmpdevices.pl: Adding support for PostgreSQL and
	  Oracle (not complete).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4213 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-04-13 16:28:59 +00:00
slerena d044abe8f7 2010-10-13 Sancho Lerena <slerena@artica.es>
* Core.pm: Force XML::Simple to use XML::Parser instead SAX to manage XML
    due a bug processing some XML with blank spaces.

    * DataServer.pm: Checking for BADXML is 2 times with 2 secs of delay now. 
    Aditional check before deleting / procesing XML.

    * pandora_server: Added handle of BadXML error to avoid see "unhandled" 
    errors on log, and set to verbose level 2.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3388 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-10-13 15:15:06 +00:00
slerena 91f6cb5780 2010-10-07 Sancho Lerena <slerena@artica.es>
* conf/pandora_server.conf: Removed multicast options

    * Makefile.PL: Removed need for dependencies on Mail::Sendmail
    and Traceroute::PurePerl, now are included in the Pandora FMS
    distribution.

    * lib/PandoraFMS/Config.pm: Removed options for multicast

    * lib/PandoraFMS/Traceroute.pm,
      lib/PandoraFMS/Sendmail.pm,
      lib/PandoraFMS/Traceroute/PurePerl.pm: Now included on Pandora FMS
    distribution, this will help to do easier installs of Pandora, because
    that packages was difficult to build/install in different distros.

    * lib/PandoraFMS/Core.pm: Removed the old multicast-on change enterprise
    feature, not used/supported anymore.

    * lib/PandoraFMS/ReconServer.pm: Now uses the internal Traceroute Pureperl
    implementation.

    * lib/PandoraFMS/Tools.pm: Now uses the internal Mail::Sendmail copy.

    * bin/pandora_server: Removed the multicast option from main loop.

    * FreeBSD/pandora_server.conf: Removed multicast from options.

    * util/mcast_client.pl: Deleted sample client for multicast.

    * util/pandora_logrotate: Updated the rotate options for SNMP logfile.

    * util/compaq_chassis_trap_manager2.pl: Added sample of SNMP Trap           
    postprocessor.

    * pandora_server.redhat.spec,
      pandora_server.spec,
      DEBIAN/control: Updated packages deps and other minor changes (xprobe2 is not
      mandatory now).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3365 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-10-07 15:09:04 +00:00
Ramon Novoa a92eeaef91 2010-07-30 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm, bin/pandora_server: Added a real unknown
          status.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3080 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-07-30 09:27:06 +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