90 Commits

Author SHA1 Message Date
Ramon Novoa
0e97e8dc2b Fix master detection for multiprocess mode. 2024-04-18 20:12:01 +02:00
Félix Suárez
c926349c67 Update copyright years 2023-07-03 09:20:25 -06:00
Félix Suárez
e17e2ee66c Replace "Artica Soluciones Tecnol[o,ó]gicas S.L" 2023-06-23 15:08:07 -06:00
Ramon Novoa
925d3fa6a2 Improved module execution for master servers.
Previously, master servers executed modules from any agent whose
assigned server had crashed. Now they execute modules from any agent
whose assigned server cannot execute them (e.g., the server is running
but the required component is disabled).
2023-04-25 12:28:38 +02:00
Ramon Novoa
ad0b8db4d0 Merge remote-tracking branch 'origin/master' into master-alt 2021-12-17 10:32:32 +01:00
Ramon Novoa
5d7cb5e4c7 Rename the _address_n_ macro and add it to more servers.
The _address_n_ macro did not work properly because of the partial match
with the _address_ macro. It has been renamed to_addressn_n_ (e.g.,
_addressn_1_, _addressn_2_, etc.) and added to the Network and Plug-in
servers. Fixes pandora_enterprise#7379.
2021-10-08 13:17:04 +02:00
Ramon Novoa
165dea9fe7 Merge remote-tracking branch 'origin/master' into master-alt 2021-09-15 17:21:33 +02:00
fbsanchez
8f009db92b Updated component HA rule 2021-07-16 12:03:26 +02:00
Ramon Novoa
f9b090d857 Merge branch 'ent-5620-nuevo-compilador-para-backend' into master-alt 2021-06-24 12:58:44 +02:00
Luis
72cb359133 Fixed macro address on network server modules 2021-06-08 10:53:15 +00:00
Ramon Novoa
8edaad4e5a Push /usr/lib/perl5 to the back of the module search path.
When /usr/lib/perl5 is added to the front of the module search path it
takes precedence over libraries distributed with binary versions of
Pandora FMS. This can be fixed by pushing it to the back instead.
2021-04-15 17:56:02 +02:00
fbsanchez
cae68eac35 Fixed latency modules 2021-02-02 12:27:01 +01:00
Jose Gonzalez
649442f794 Updated copyrights 2020-11-27 13:52:35 +01:00
fbsanchez
ac4904f123 Avoid host latency "fake" value 0 2020-10-07 12:22:46 +02:00
fbsanchez
fecff8aa93 Discovery review advanced 2020-03-25 18:02:58 +01:00
fbsanchez
23c19856b8 minor fixes 2020-03-23 19:09:22 +01:00
fbsanchez
be1e4324d2 missed port 2019-11-19 12:02:10 +01:00
fbsanchez
0abbcb4150 minor fix inherited os selection remote_execution_modules 2019-10-11 13:54:00 +02:00
fbsanchez
4c6d924495 Review remote execution modules 2019-10-11 12:50:29 +02:00
fbsanchez
78643b2b99 updated field where target_os is stored 2019-10-10 17:54:10 +02:00
fbsanchez
9cb2a0e1a1 NetworkServer enterprise improvement 2019-10-09 19:13:11 +02:00
Ramon Novoa
7bd5851667 Add support for column macros.
Former-commit-id: 8b826854c288754feefdbe270701655c6bbbfac9
2019-02-19 13:04:57 +01:00
fermin831
27700d820e Added trace with module id to tcp network server checks 2018-06-12 16:09:04 +02:00
fermin831
cc26124289 Rebranding open server 2018-05-17 16:12:44 +02:00
danielmaya
1d7df38b61 Fixed entities in networkserver.pm 2017-11-08 11:55:23 +01:00
danielmaya
6cd13dbc6d Fixed call snmp in server 2017-11-06 15:53:33 +01:00
Ramon Novoa
c317fa478c Add support for auto IP addresses to SNMP modules. 2017-05-17 08:09:00 +02:00
Arturo Gonzalez
b5438effbc Deleted agent version update. Ticket #212 2017-01-31 13:25:21 +01:00
Ramon Novoa
2e6c53604f Added support for the 'auto' ip_target.
(cherry picked from commit 72e4acb30a07ae1df98695c0ceecc3cee8e21a7c)
2016-11-21 11:45:58 +01:00
fermin831
e026748a6e Fixed Securiry problems into SNMP v3 modules and browser 2015-10-22 19:08:25 +02:00
KIKUCHI Koichiro
77354a886e Fixed master server queries:
* safe_input is required for server_name
* Fixed wrong server_type specified in NetworkServer
2015-03-24 19:28:46 +09:00
Ramon Novoa
3a6f885b15 Added support for password encryption to the Pandora FMS Server. 2015-03-02 17:30:19 +01:00
Ramon Novoa
b88c52ccba Added support for multiple master servers. 2015-01-13 10:56:56 +01:00
Ramon Novoa
d3309d2f98 Added support for absolute incremental data. 2015-01-05 16:38:07 +01:00
Ramon Novoa
0349404003 Fixed the master server query.
The master server should only take modules from servers of the same type.
2014-09-10 18:05:33 +02:00
Ramon Novoa
5282d9ef9a Added constants for server types. 2014-09-10 18:05:33 +02:00
alexhigh
9260d1b8d5 2014-08-06 Alejandro Gallardo <alejandro.gallardo@artica.es>
* lib/PandoraFMS/NetworkServer.pm: Little syntax fix.

	* util/pandora_revent_create.pl: Changed the url encode
	separator of the api call from "," to "|".


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10386 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-08-06 18:01:48 +00:00
Ramon Novoa
06ea5990ec 2014-08-06 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/NetworkServer.pm: Rewrote TCP module socket code for
	  sending data (tcp_send). Fixes ticket #1096.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10385 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-08-06 15:48:59 +00:00
Ramon Novoa
012634abca 2014-05-22 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/NetworkServer.pm,
	  lib/PandoraFMS/NmapParser.pm,
	  lib/PandoraFMS/ReconServer.pm,
	  lib/PandoraFMS/SNMPServer.pm,
	  lib/PandoraFMS/Tools.pm,
	  lib/PandoraFMS/Traceroute.pm,
	  lib/PandoraFMS/WMIServer.pm: Fixes for win32.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9984 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-05-22 10:49:49 +00:00
Ramon Novoa
adfadf5e2d 2013-08-13 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/NetworkServer.pm: Use the agent's address if ip_target
	  is not set.

	* lib/PandoraFMS/Core.pm: Fixed a warning.

	* conf/pandora_server.conf.new,
	  lib/PandoraFMS/Config.pm,
	  lib/PandoraFMS/SNMPServer.pm: Added SNMP storm protection.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8658 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-08-13 17:04:56 +00:00
Ramon Novoa
87e009308a 2013-08-01 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DataServer.pm,
	  lib/PandoraFMS/SNMPServer.pm,
	  lib/PandoraFMS/Server.pm,
	  lib/PandoraFMS/PluginServer.pm,
	  lib/PandoraFMS/ProducerConsumerServer.pm,
	  lib/PandoraFMS/PredictionServer.pm,
	  lib/PandoraFMS/ReconServer.pm,
	  lib/PandoraFMS/NetworkServer.pm,
	  lib/PandoraFMS/WMIServer.pm: Added clean-up code to avoid resource
	  leaks when there is a crash and the server has to auto-restart.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8611 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-08-01 09:54:21 +00:00
Ramon Novoa
1690c0b758 2013-07-25 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/NetworkServer.pm: Fixed some parentheses that prevented
	  remote_snmp_string modules from working.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8574 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-07-25 11:07:59 +00:00
Ramon Novoa
1e722bef31 2013-05-14 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/NetworkServer.pm: Added the Pandora FMS's console MIB
	  to snmp* calls.

	* pandora_server_installer,
	  pandora_server.spec,
	  lib/PandoraFMS/Tools.pm,
	  lib/PandoraFMS/Config.pm,
	  Makefile.PL,
	  pandora_server.redhat.spec,
	  DEBIAN/control: Removed PERL's SNMP lib from the deps.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8131 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-05-14 13:56:43 +00:00
slerena
d1d6b53250 2013-02-28 Sancho Lerena <slerena@artica.es>
* Config.pm: updated version.

        * NetworkServer.pm,
        PluginServer.pm: Fixed some more un-init values and removed
        annoying message and not useful warning about empty return on SNMP call.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7760 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-28 17:45:20 +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
zarzuelo
caad696367 2013-02-06 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/NetworkServer.pm
	lib/PandoraFMS/Tools.pm: Added check to the ping latency
	modules to difference the fail from the 0 latency. Now
	when the IP doenst exist or the ping fail, the module
	doesnt report any data. FIX: 3543467



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7600 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-06 18:01:53 +00:00
darode
573fee2b90 2013-01-09 Dario Rodriguez <dario.rodriguez@artica.es>
* lib/PandoraFMS/NetworkServer.pm: Added log traces to inform
	about the problem of undefined return of snmpget command.

	MERGED FROM 4.0.3



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7405 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-09 16:28:05 +00:00
darode
d5443e575e 2013-01-09 Dario Rodriguez <dario.rodriguez@artica.es>
* lib/PandoraFMS/NetworkServer.pm: Controlled an error if output of
	SNMP command is empty and fixed several error comparing port of SNMP
	as numbers instead as strings.

	MERGED FROM 4.0.3



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7402 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-09 14:35:21 +00:00
slerena
f3805014a0 2013-01-09 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/NetworkServer.pm: Fixed on port 0 (Snmp polling).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7399 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-09 13:36:46 +00:00
slerena
6e25b117e7 2013-01-09 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/NetworkServer.pm: Fixed bug #3555223 about
        different UDP ports for SNMP polling. Merged fix from 4.0.x 
        branch. 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7390 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-09 11:43:56 +00:00