Snmp trap setup
Posted: Thu Jan 17, 2019 4:11 am
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
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