NXTI snmptraphandling.py not handling "OK" severity

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
gzaloprgm
Posts: 33
Joined: Mon Aug 06, 2018 8:46 am
Contact:

NXTI snmptraphandling.py not handling "OK" severity

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

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

Post by ssax »

Thank you for reporting this, I've reported it to the developers.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

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

Post by cdienger »

Thanks for bringing this to our attention. I've reproduced, pinged dev, and we should have a fix soon.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked