Hello Bart,
Thanks for the patch.
It is OK for me.
Regards,
Masanari

On Sat, Jan 12, 2019 at 12:17 PM Bart Van Assche <bvanass...@acm.org> wrote:
>
> On 1/11/19 1:20 AM, Masanari Iida wrote:
> > Hello
> > In snmpd.conf man page, in "monitor" option,
> > I would like to see following information.
> >
> > Original:  NAME is an administrative name for this expression, and is
> > Original:  used for indexing the mteTriggerTable (and related tables).
> > Add:       NAME should not be duplicated in snmpd.conf.
> >
> > Background
> > My colleague accidentally configure 2 lines of "monitor" settings
> > with exactly same NAME and saw "duplicated trigger name"
> > messages.
> > I think one line of additional information will help someone in the future.
>
> Thanks for having reported this. How about addressing this with the
> patch below?
>
> Bart.
>
>
> Subject: [PATCH] man/snmpd.conf.5.def: Document that monitor names must
> be unique
>
> Reported-by: Masanari Iida <standby2...@gmail.com>
> ---
>   man/snmpd.conf.5.def | 4 +++-
>   1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/man/snmpd.conf.5.def b/man/snmpd.conf.5.def
> index 2c4ddad806eb..eaa904f4b077 100644
> --- a/man/snmpd.conf.5.def
> +++ b/man/snmpd.conf.5.def
> @@ -974,7 +974,9 @@ Note that the event will only be triggered once,
> when the expression
>   first matches.  This monitor entry will not fire again until the
>   monitored condition first becomes false, and then matches again.
>   NAME is an administrative name for this expression, and is used for
> -indexing the \fCmteTriggerTable\fR (and related tables).
> +indexing the \fCmteTriggerTable\fR (and related tables). Each monitor
> +line must have a unique NAME. Monitor lines with a duplicate name are
> +discarded and cause snmpd to log a duplicate index complaint.
>   Note also that such monitors use an internal SNMPv3 request to retrieve
>   the values being monitored (even if normal agent queries typically use
>   SNMPv1 or SNMPv2c).  See the \fIiquerySecName\fP token described above.
> --
> 2.20.1
>


_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to