Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
<samba:parameter name="perfcount module"
context="G"
type="string"
+ substitution="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>This parameter specifies the perfcount backend to be used when monitoring SMB
bool smb_perfcount_init(void)
{
+ const struct loadparm_substitution *lp_sub =
+ loadparm_s3_global_substitution();
char *perfcount_object;
- perfcount_object = lp_perfcount_module(talloc_tos());
+ perfcount_object = lp_perfcount_module(talloc_tos(), lp_sub);
/* don't init */
if (!perfcount_object || !perfcount_object[0])