Manually editing alert query issue

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Envera IT
Posts: 159
Joined: Wed Jun 19, 2013 10:21 am

Manually editing alert query issue

Post by Envera IT »

I create an alert and then eventually need to edit it using the "Advanced (Manage Query)" section. I then save changes and confirm everything is working.
2017-01-05_9-56-00.png
When I click on the dashboard button in the alert menu
2017-01-05_9-59-18.png
the old query is being shown.
2017-01-05_9-58-06.png
I'd expect the dashboard button to take me to the active query that the alert is using, not the original one prior to the alert being edited. This happens whether I load a premade query or manually edit the text of the alert query. The alert functions as is should, so this is more cosmetic and confusing than anything else.
You do not have the required permissions to view the files attached to this post.
I like graphs...
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Manually editing alert query issue

Post by jomann »

This is already a bug that has been reported - unfortunately it's incredibly hard to move a query that has been edited back into the dashboard once it has been manually changed. It's a better idea to edit the query in the dashboard, save over the query or save a new one and then update the alert to use the query you edited or made. That way you can ensure it will work. In future versions, if you manually edit a query, it will take you to the API output instead of the dashboard.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Envera IT
Posts: 159
Joined: Wed Jun 19, 2013 10:21 am

Re: Manually editing alert query issue

Post by Envera IT »

Ok, thanks for letting me know. I'll try out the suggested method and wait for future updates to use the API.
I like graphs...
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN

Re: Manually editing alert query issue

Post by dwhitfield »

Did you want to leave this open, or do you want us to lock it up?
Envera IT
Posts: 159
Joined: Wed Jun 19, 2013 10:21 am

Re: Manually editing alert query issue

Post by Envera IT »

dwhitfield wrote:Did you want to leave this open, or do you want us to lock it up?
lock it up
I like graphs...