1. Check Nagios XI Configuration
Ensure that Nagios XI's configuration files are correctly set up and that there are no issues with how configurations are applied. Sometimes, issues can arise if the configuration files are not being updated or if there are syntax errors.
Review Nagios XI Logs: Check the logs for any errors or warnings related to configuration changes.
Log file locations:
Nagios XI Logs: /usr/local/nagiosxi/var/ (look for audit.log or other relevant logs)
Nagios Core Logs: /usr/local/nagios/var/ (e.g., nagios.log, debug.log)
Configuration Files: Ensure that the configuration files in /usr/local/nagios/etc/objects/ (or other directories where your objects are stored) are being updated as expected.
2. Verify API and Configuration Import
When you add a host
slope via the API, it should trigger a configuration import, and then a configuration apply.
Manual Apply Config: Try manually applying the configuration from the Nagios XI web UI after adding a host via the API to see if it then appears correctly.
API Success Message: The success message you receive from the API indicates that the configuration import process was triggered. However, confirm that this process is completing successfully. Check the nagiosxi log for any import-related errors.