Snmp trap setup

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Transmission
Posts: 3
Joined: Wed Jan 16, 2019 9:49 am

Snmp trap setup

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Snmp trap setup

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
swolf

Re: Snmp trap setup

Post 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
Transmission
Posts: 3
Joined: Wed Jan 16, 2019 9:49 am

Re: Snmp trap setup

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Snmp trap setup

Post 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!
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked