Page 1 of 1

Snmp trap setup

Posted: Thu Jan 17, 2019 4:11 am
by Transmission
Hi,

I have upgraded from a very old (couple of years) version of NagiosXI to the latest using the website upgrade button. I had some problems but most of them are sorted now. I did this upgrade because I wanted to use the new snmp trap interface and because it was long overdue.

Now I get problems adding a new trap definition. I look up the OID in the unkown trap definition list and add it to the Add a Trap Definition and fill in Event Name, Category, Severity, Description and finally I just Enable Passive Service Setup without filling in any field (because they are pre filled in).

When submitting I get : Trap saved submitting restart of snmptt

When pressing F5 a bit later I get:
SQL Error [nagiosxi] : ERROR: duplicate key value violates unique constraint "xi_cmp_trapdata_trapdata_event_name_key"
Failed to add trap definition

Then I try to disable the Passive Service and then it gives me a bunch of errors like this:
SQL Error [nagiosxi] : ERROR: syntax error at or near "LIMIT"
LINE 1: ...trapdata_event_name = 'test2' WHERE trapdata_id = 14 LIMIT 1

How can I solve this?

Regards,
Jelle

Re: Snmp trap setup

Posted: Thu Jan 17, 2019 2:19 pm
by scottwilkerson
One of the issues you are seeing is fixed in the just released 5.5.9 version of XI.

The other while clicking F5 I think is just trying to write the dame data into the database giving that error.

Re: Snmp trap setup

Posted: Thu Jan 17, 2019 2:24 pm
by swolf
Hi @Jelle,

I agree with Scott about what's causing your issues, but wanted to point out a couple of other things that might make the interface easier for you to use:

- The values in the passive service setup are placeholders (in the HTML sense, meaning they don't get submitted with the form automatically). Make sure you're clicking the clipboard on the right of each input to insert them properly. I'll see what I can do about making this clearer in a future release.
- The Received Traps table should automatically update every 7 seconds. If you wait 10-15 seconds, just to be safe, you should be able to see received traps update in the table automatically (without refreshing the page). If you don't see them there, you can go to Advanced -> Show Unknown Trap Log and see if anything came in there.

Best Wishes,
Sebastian Wolf

Re: Snmp trap setup

Posted: Mon Jan 21, 2019 7:04 am
by Transmission
Thank you for your response, the upgrade did solve the problem. Now just need to see how to get it working. Thank you for the tips on usage. I am going to try them.

Re: Snmp trap setup

Posted: Mon Jan 21, 2019 4:38 pm
by scottwilkerson
Transmission wrote:Thank you for your response, the upgrade did solve the problem. Now just need to see how to get it working. Thank you for the tips on usage. I am going to try them.
Glad to hear the upgrade resolved the issue!