diff --git a/pandora_console/include/help/en/help_macros.php b/pandora_console/include/help/en/help_macros.php new file mode 100755 index 0000000000..1c897c1f93 --- /dev/null +++ b/pandora_console/include/help/en/help_macros.php @@ -0,0 +1,38 @@ + +

Macros

+ +Is possible configure macros in the module execution (module_exec) or in a plugin parameters. +

+Each macro has 3 parameters: + + +In example, to configure a module that returns the apache's running process +number in a machine, we configure the next command: +

+ps -A | grep apache2 | wc -l +

+We can replace the name of the process by a macro: +

+ps -A | grep _field1_ | wc -l +

+And configure the parameters of the macro as: + + + +When we configure the module from this component, will appear a text field "Process" +with a default value "apache2" that we can modify, and a help that will show more information +to user. +

+Is possible to configure as many macros as you want. diff --git a/pandora_console/include/help/es/help_macros.php b/pandora_console/include/help/es/help_macros.php new file mode 100755 index 0000000000..962b6b3445 --- /dev/null +++ b/pandora_console/include/help/es/help_macros.php @@ -0,0 +1,38 @@ + +

Macros

+ +Se pueden configurar macros en la ejecución del módulo (module_exec) o los parámetros de un plugin. +

+Cada macro tiene 3 parámetros: + + +Por ejemplo, para configurar un módulo que devuelva el número de procesos +de apache corriendo en una máquina configuraremos el siguiente comando: +

+ps -A | grep apache2 | wc -l +

+Podemos sustituir el nombre del proceso por una macro: +

+ps -A | grep _field1_ | wc -l +

+Y configurar los parámetros de la macro de la siguiente manera: + + + +Cuando configuremos el módulo a partir de este componente, aparecerá un campo de texto "Proceso" +con un valor por defecto "apache2" que podremos modificar, y una ayuda que indicará más información +al usuario. +

+Se pueden configurar tantas macros como se quiera.