Page 1 of 1

An alert named X already exists

Posted: Mon Feb 15, 2021 4:54 am
by connected
I cannot create or rename an alert, it then gives the message "An alert named Alarm raised already exists".
I cannot find this alert existing anywhere. It looks a lot like the already solved bug mentioned here:
https://support.nagios.com/forum/viewto ... ts#p297041

But maybe I am doing something wrong. Any idea how to solve this?

Re: An alert named X already exists

Posted: Mon Feb 15, 2021 3:42 pm
by cdienger
What version of NLS is this?

I'd like tog et a copy of the configuration. This can be done by exporting a copy of the nagioslogserver index with the command:

Code: Select all

curl -XPOST http://localhost:9200/nagioslogserver/_export?path=/tmp/nagioslogserver.tar.gz
Please send me a copy of the /tmp/nagioslogserver.tar.gz file that it creates. It will have sensitive information so please send it to me in a private message.

Re: An alert named X already exists

Posted: Tue Feb 16, 2021 4:16 am
by connected
Hi, the version is 2.1.7
I've send the tar file via PM :-)

Re: An alert named X already exists

Posted: Tue Feb 16, 2021 5:56 pm
by cdienger
Thanks for the data. I've been able to reprooduce and it looks like the problem is the query that we make on the backend to determine if an alert already exists is too inclusive and is hitting on the "All systems Alarm Raised". The query code is encrypted so there isn't a quick change that I can provide at the moment. I'll file a bug for this and see if we can get a patch for this. In the meantime I would try using a different name.

Re: An alert named X already exists

Posted: Wed Feb 17, 2021 5:20 am
by connected
Thanks for the support. Interesting bug :-)

Re: An alert named X already exists

Posted: Wed Feb 17, 2021 4:48 pm
by cdienger
No problem. The next release of NLS will be "soon" and I'll update this thread once this is addressed.

Re: An alert named X already exists

Posted: Tue Mar 09, 2021 4:12 pm
by cdienger
2.1.8 has been released. Please upgrade and let us know if your issue with alert names has been resolved.