Flagging a DB Entry
Posted: Thu Jun 09, 2016 1:43 pm
We are using a script to help load large amount of data into Nagios XI via the database, but the status is not getting changed to "Not Applied". Is there a script / DB field / method which need to be called to change the status? I've found when the host exists and get updated the apply configure sometimes skips the object from getting written to the configuration files.
Nagios Version: 5.2.8
Reason: The API does not currently support the changes we want to do and the lead developer for the script does not want to deal with configuration files manipulations and the DB structure normally would not change when patches are done.
Background: The script runs nightly to add or update our company inventory into NagiosXI, so it can be monitored. The script will create the host and hostgroups if they don't exist and update the host and hostgroup when changes are made. The script also links the hosts with the hostgroups as well, while any new hostgroups created by the script are sent to the monitoring team as a report to review.
Nagios Version: 5.2.8
Reason: The API does not currently support the changes we want to do and the lead developer for the script does not want to deal with configuration files manipulations and the DB structure normally would not change when patches are done.
Background: The script runs nightly to add or update our company inventory into NagiosXI, so it can be monitored. The script will create the host and hostgroups if they don't exist and update the host and hostgroup when changes are made. The script also links the hosts with the hostgroups as well, while any new hostgroups created by the script are sent to the monitoring team as a report to review.