need assistance with configuration error
Posted: Tue Oct 29, 2019 3:45 pm
This instance of XI has been up for a few years. 318 hosts 1226 services.
Occasionally after adding/changing something we'll get an error on applying configuration.
Usually I look at the error and and figure out what the issue is or worst case roll back to a previous config and start over.
Today I added a host and when I went to apply I get
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/services_WINDOWS_DWS_OITVDC-VDI-04.cfg', starting on line 77)
That file didn't actually exist so I looked in CCM/Services for services_WINDOWS_DWS_OITVDC-VDI-04
There were some services under that config name but they were all marked not active.
We didn't need them anymore so I deleted them then went to reapply.
Same error.
I tried to roll back to an earlier configuration snapshot - same error.
I went to an earlier snapshot - same error.
Restarted the nagios service (this is on RHEL 6.10 ) - same thing.
I removed the host I'd been trying to add and then ran apply - same thing.
I went to Config File Mangement and deleted then rewrote configs.
Verified files and got:
...
Total Warnings: 28
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
...
(The warnings are hosts/services with no contacts and services that are duplicated - we always have these and it's never prevented an apply)
Tried to run apply and got the same error.
I can force checks so it looks like everything is still monitoring - I just can't add or change anything until I get past this.
Occasionally after adding/changing something we'll get an error on applying configuration.
Usually I look at the error and and figure out what the issue is or worst case roll back to a previous config and start over.
Today I added a host and when I went to apply I get
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/services_WINDOWS_DWS_OITVDC-VDI-04.cfg', starting on line 77)
That file didn't actually exist so I looked in CCM/Services for services_WINDOWS_DWS_OITVDC-VDI-04
There were some services under that config name but they were all marked not active.
We didn't need them anymore so I deleted them then went to reapply.
Same error.
I tried to roll back to an earlier configuration snapshot - same error.
I went to an earlier snapshot - same error.
Restarted the nagios service (this is on RHEL 6.10 ) - same thing.
I removed the host I'd been trying to add and then ran apply - same thing.
I went to Config File Mangement and deleted then rewrote configs.
Verified files and got:
...
Total Warnings: 28
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
...
(The warnings are hosts/services with no contacts and services that are duplicated - we always have these and it's never prevented an apply)
Tried to run apply and got the same error.
I can force checks so it looks like everything is still monitoring - I just can't add or change anything until I get past this.