Is there a way to check if configuration changes are pending to be applied? Couldn't find anything in the documentation, and the GET for "system/applyconfig" actually applies rather than returns info. Preferably using the API, but any solution that does not require checking the database directly is fine.
Thanks
Checking Apply Config Status
-
DoubleDoubleA
- Posts: 273
- Joined: Thu Feb 09, 2017 5:07 pm
Re: Checking Apply Config Status
Hi @dxfuentes,
Thanks for your post.
There is not currently a way in the API to check if changes are pending. I don't have an elegant way to have you do that right at the moment, but if I did in the short term you could likely make a custom endpoint, which you can learn about in the developer docs in the API help.
Take a look at those custom API endpoint docs and tell me if that's anything that could work for you.
It's a good endpoint to have, I don't know that it will make the short list for an upcoming release though.
Aaron
Thanks for your post.
There is not currently a way in the API to check if changes are pending. I don't have an elegant way to have you do that right at the moment, but if I did in the short term you could likely make a custom endpoint, which you can learn about in the developer docs in the API help.
Take a look at those custom API endpoint docs and tell me if that's anything that could work for you.
It's a good endpoint to have, I don't know that it will make the short list for an upcoming release though.
Aaron
Re: Checking Apply Config Status
Not what you'd like but maybe diff the right page when the config can be applied and when it isn't needed. Then see if check_html can search for a string.
Re: Checking Apply Config Status
It could, but I assume Nagios determines changes are pending by writing a flag to its database which I am trying to avoid if possible. However, would you happen to know what table that would be or perhaps the query itself?DoubleDoubleA wrote: ↑Mon Apr 07, 2025 4:42 pm Hi @dxfuentes,
Thanks for your post.
There is not currently a way in the API to check if changes are pending. I don't have an elegant way to have you do that right at the moment, but if I did in the short term you could likely make a custom endpoint, which you can learn about in the developer docs in the API help.
Take a look at those custom API endpoint docs and tell me if that's anything that could work for you.
It's a good endpoint to have, I don't know that it will make the short list for an upcoming release though.
Aaron
-
DoubleDoubleA
- Posts: 273
- Joined: Thu Feb 09, 2017 5:07 pm
Re: Checking Apply Config Status
There is a flag that is set under many conditions, but conspicuously not when configs are added via the api. I've added an issue to address that but it's not something you can use today, and I can't promise when that will get completed.
There are a couple of other functions I am looking at that may work for a custom end point to call.
There are a couple of other functions I am looking at that may work for a custom end point to call.
-
DoubleDoubleA
- Posts: 273
- Joined: Thu Feb 09, 2017 5:07 pm
Re: Checking Apply Config Status
@dxfuentes, there isn't a great way to do this via an XI function for a custom api endpoint given how the functions get called.