Can't add hosts via API, but adding them in web UI works
Posted: Tue Aug 27, 2024 11:50 am
Hello,
I have one Nagios XI instance which has stopped adding new hosts via the API. However, adding them manually in the web UI works fine, and after manually adding them the API works just fine to remove them.
The API results show success, whether it's a new target or trying to add a target which already exists:
I found another topic describing a similar problem, which led me to finding out that STRICT_TRANS_TABLES were enabled. I disabled them by following this KB article, but that didn't seem to help.
This is on CentOS Stream 9 (x64), Nagios XI 2024R1.1.2. I am also having trouble trying to upgrade this system, which I'll open another topic for.
I have one Nagios XI instance which has stopped adding new hosts via the API. However, adding them manually in the web UI works fine, and after manually adding them the API works just fine to remove them.
The API results show success, whether it's a new target or trying to add a target which already exists:
Code: Select all
success
-------
Added <new host name> to the system. Config imported but not yet applied.
Apply config command has been sent to the backend.This is on CentOS Stream 9 (x64), Nagios XI 2024R1.1.2. I am also having trouble trying to upgrade this system, which I'll open another topic for.