70 Commits

Author SHA1 Message Date
Ramon Novoa
0e97e8dc2b Fix master detection for multiprocess mode. 2024-04-18 20:12:01 +02:00
Ramon Novoa
5b52fc2385 Add support for critical_on_error.
The critical_on_error option adds improved error detection capabilities
to the Pandora FMS Enterprise ICMP Server (and maybe other servers in
the future).
2023-09-27 12:51:47 +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
Daniel Maya
193ef3171c #9167 Fixed macros 2022-09-12 13:54:23 +02:00
Ramon Novoa
86db050753 Merge remote-tracking branch 'origin/develop' into ent-5620-nuevo-compilador-para-backend 2022-02-24 18:47:25 +01:00
Ramon Novoa
54171e56e7 Make the timeout error message more user friendly. 2022-02-02 17:32:28 +01:00
Ramon Novoa
28a3687bfa Add a timeout message for Plug-in modules.
Ref. pandora_enterprise#7978.
2022-01-26 14:41:27 +01: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
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
José González
623b729001 Merge branch 'develop' into 'ent-1175-copyright-actualizados'
# Conflicts:
#   pandora_agents/pc/Win32/pandora_agent.conf
#   pandora_agents/win32/bin/pandora_agent.conf
#   pandora_console/extensions/realtime_graphs.php
#   pandora_console/godmode/snmpconsole/snmp_alert.php
#   pandora_console/include/functions_ui.php
#   pandora_console/install.php
#   pandora_console/operation/agentes/realtime_win.php
2020-12-14 11:10:35 +01:00
fbsanchez
f4c17087c5 minor fixes in pluginserver 2020-11-27 13:54:58 +01:00
Jose Gonzalez
649442f794 Updated copyrights 2020-11-27 13:52:35 +01:00
Jose Gonzalez
4e75219371 Added missing _id_module_ macro in Plugin server 2020-06-05 11:09:40 +02:00
Jose Gonzalez
70780070bd Changed mode of decode_json 2019-11-28 17:15:26 +01:00
Junichi Satoh
34c553f5b4 Fixed plugin timeout. 2018-08-30 13:30:22 +09:00
fermin831
cc26124289 Rebranding open server 2018-05-17 16:12:44 +02:00
fermin831
3529bfaa5a [Server Pluginserver] Added alias to plugin server error 2018-02-28 14:11:26 +01:00
fermin831
6de87f7ce7 [Server Plugins] Modified malformed log on error 2018-02-19 17:30:32 +01:00
enriquecd
a5a3d6ac64 Add _agentname_ and _agentalias_ macros to plugins - #1494 2018-01-15 11:51:33 +01:00
daniel
f681f63ccb fixed error in plugin server agent for alias 2017-06-26 15:42:34 +02:00
Arturo Gonzalez
b5438effbc Deleted agent version update. Ticket #212 2017-01-31 13:25:21 +01:00
Junichi Satoh
e82f31dc02 Improved to be able to pass agent's custom fields to plugin parameters. 2017-01-06 10:56:18 +09:00
Junichi Satoh
4437c36995 Added a new alert and plugin macro, _id_group_. 2015-11-04 13:53:13 +09: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
mdtrooper
859818f8f2 Added the lost macro _agentgroup_ 2014-10-21 14:33:49 +02:00
Ramon Novoa
ad9fccd499 Print module and agent information when plugin execution fails. Fixes ticket #1293 2014-09-16 16:58:37 +02: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
Ramon Novoa
b53da5c0cd Added support for on-demand macros to the Plug-in Server. 2014-09-09 11:03:07 +02:00
hkosaka
a44b72ec25 2014-08-27 Hirofumi Kosaka <kosaka@rworks.jp>
* lib/PandoraFMS/PluginServer.pm: Fixed that _plugin_param2_
	and _plugin_param2_desc_ (and so on) were not replaced with
	the corresponding values.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10460 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-08-27 02:36:02 +00:00
hkosaka
8d94e15eb5 2014-08-14 Hirofumi Kosaka <kosaka@rworks.jp>
* lib/PandoraFMS/PluginServer.pm: Added new alert macros
	_plugin_param1_ (,_plugin_param2_ and so on) to access to
	each of plugin parameters. Also added _plugin_param1_desc_
	to access to each description of plugin parameters.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10418 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-08-14 03:45:57 +00:00
hkosaka
e8f76f8e9d 2014-06-17 Hirofumi Kosaka <kosaka@rworks.jp>
* lib/PandoraFMS/PluginServer.pm: Fixed to handle plugin's
	output that includes multibyte character string.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10207 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-06-17 02:18:49 +00:00
zarzuelo
845c06216c 2014-06-05 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/PluginServer.pm
	lib/PandoraFMS/Core.pm: Add tags name macro to alerts and plugins.
	Add tags phones to plugins. Ticket #568



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10119 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-06-05 11:44:31 +00:00
jsatoh
a92308a539 2014-04-27 Junichi Satoh <junichi@rworks.jp>
* lib/PandoraFMS/PluginServer.pm: Fixed plugin execution failure
	when multibyte characters are used in plugins macros.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9821 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-04-27 03:42:38 +00:00
jsatoh
4d8ede7f67 2014-01-09 Junichi Satoh <junichi@rworks.jp>
* lib/PandoraFMS/PluginServer.pm: Fixed that 'plugin_timeout' in
	pandora_server.conf is not used when max_timeout is 0.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9301 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-01-09 09:25:45 +00:00
mdtrooper
0f04a5693f 2013-09-05 Miguel de Dios <miguel.dedios@artica.es>
* lib/PandoraFMS/PluginServer.pm: fixed the lost decode html
	entities for the value in the macros.
	
	* util/plugin/dummy_plugin.pl: added tiny plugin server with only
	purpose to testing.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8744 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-09-05 09:57:40 +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
zarzuelo
4480476589 2013-07-05 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/PluginServer.pm: Fixed subst_alert_macros assignation
	to variable.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8482 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-07-05 10:15:41 +00:00
Ramon Novoa
cf2afde6fd 2013-07-05 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/PluginServer.pm: Added agent and module macros to
	  plugins.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8480 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-07-05 09:45:47 +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
slerena
03cbebaef2 2013-02-28 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/PluginServer.pm: Removed several "Use of
        uninitialized value in string" errors.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7747 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-28 14:21:15 +00:00
zarzuelo
c73bc7e18d 2013-02-18 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/PluginServer.pm: Clean the blank spaces
	from the start and end of the return of the plugin to make
	easier the configuration of numeric modules and not confuse
	with snapshot mode



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7666 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-18 10:57:14 +00:00
darode
15e733852d 2013-01-10 Dario Rodriguez <dario.rodriguez@artica.es>
* lib/PandoraFMS/PluginServer.pm: Added log traces for plugin error
        to notice about low memory.
        * util/plugin/mysql_plugin.sh: Added correct exit code for plugin.

        MERGED FROM 4.0.3



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7420 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-10 14:05:39 +00:00