zarzuelo 998b4cd082 2012-09-10 Sergio Martin <sergio.martin@artica.es>
* include/help/en/help_macros.php
	include/help/es/help_macros.php: Add help to 
	new macros



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6943 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-10 13:01:56 +00:00

39 lines
1.0 KiB
PHP
Executable File

<?php
/**
* @package Include/help/en
*/
?>
<h1>Macros</h1>
Is possible configure macros in the module execution (module_exec) or in a plugin parameters.
<br /><br />
Each macro has 3 parameters:
<ul>
<li>Description</li>
<li>Default value (optional)</li>
<li>Help (optional)</li>
</ul>
In example, to configure a module that returns the apache's running process
number in a machine, we configure the next command:
<br /><br />
ps -A | grep apache2 | wc -l
<br /><br />
We can replace the name of the process by a macro:
<br /><br />
ps -A | grep _field1_ | wc -l
<br /><br />
And configure the parameters of the macro as:
<ul>
<li>Description: Process</li>
<li>Default value: apache2</li>
<li>Help: Name of substring of the running processes counted by the module</li>
</ul>
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.
<br /><br />
Is possible to configure as many macros as you want.