Page 1 of 1

NXTI snmptraphandling.py not handling "OK" severity

Posted: Wed Jan 09, 2019 9:25 am
by gzaloprgm
Hi.
When configuring a trap with NXTI, if you enable passive service setup and choose "OK" as the check status, subsequent traps matching the selected OID are ignored.

Image

The issue is caused because /usr/local/bin/snmptraphandling.py does not handle that severity value.
As a workaround, this case can be added in get_return_code function, near line 59 of that file:

Code: Select all

    elif severity == "OK":
        return_code = "0"
Thanks, Gonzalo

Re: NXTI snmptraphandling.py not handling "OK" severity

Posted: Wed Jan 09, 2019 4:37 pm
by ssax
Thank you for reporting this, I've reported it to the developers.

Re: NXTI snmptraphandling.py not handling "OK" severity

Posted: Wed Jan 09, 2019 4:40 pm
by cdienger
Thanks for bringing this to our attention. I've reproduced, pinged dev, and we should have a fix soon.