Page 2 of 2

Re: Cannot Apply System Configuration

Posted: Wed Jul 22, 2020 10:48 am
by scottwilkerson
Can you run the following and post /tmp/perms.txt

Code: Select all

ls -lR /usr/local/nagios/etc > /tmp/perms.txt

Re: Cannot Apply System Configuration

Posted: Wed Jul 22, 2020 10:53 am
by mccrakem
here is the output or perms.txt

Re: Cannot Apply System Configuration

Posted: Wed Jul 22, 2020 11:04 am
by scottwilkerson
This is really bizarre, the permissions look correct but trying to discover why you are getting the Cannot open/overwrite service configuration files (check the permissions)! error

If you go to the CCM -> Services
Sort by the "Status" column

do you see any items that are marked "Not Applied"?

Also, if you sort by the "Config Name" column, are there any that are blank?

Re: Cannot Apply System Configuration

Posted: Wed Jul 22, 2020 11:16 am
by mccrakem
Under Status I have 1 service that is not applied
[u'dummy1.server.com' CPU Stats Yes Not Applied

Under Config Name there is nothing blank, everything has a config name

I have deleted the service that was not applied [u'dummy1.server.com
and i have reran the reconfigure_nagios,.sh script

Warning: Host 'www.skillsportal.com' has no default contacts or contactgroups defined!
Checked 292 hosts.
Checked 63 host groups.
Checked 2 service groups.
Checked 94 contacts.
Checked 5 contact groups.
Checked 157 commands.
Checked 42 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 292 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 42 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 158
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check
> Return Code: 0



While the script was running I thought I should have checked under hosts before starting it

I noticed 1 host had nothing (blank) for the config name
Should I have delete this and rerun the script again, but looks like it has run successfully

Re: Cannot Apply System Configuration

Posted: Wed Jul 22, 2020 11:33 am
by mccrakem
I have just deleted that blank Host and reran the config
Completed successfully again

Thanks Scott

Re: Cannot Apply System Configuration

Posted: Wed Jul 22, 2020 11:57 am
by scottwilkerson
mccrakem wrote:I have just deleted that blank Host and reran the config
Completed successfully again

Thanks Scott
Great!

glad to hear it is resolved

Locking thread