Page 1 of 2

Error: Could not open config directory member

Posted: Fri Jan 06, 2017 5:19 am
by saptech
applying the configuration I get the following message:

Error: Could not open config directory member '/usr/local/nagios/etc/services/Backup/ECLIPSE_jmeter_logon_SRE-POLARIS.cfg' for reading.

On th eserver that directory/file has been removed so I re-created it error appears again:

[nagios@pol-sys-mgmt Backup]$ pwd
/usr/local/nagios/etc/services/Backup
[nagios@pol-sys-mgmt Backup]$ ls
ECLIPSE_jmeter_logon_SRE-POLARIS.cfg
[nagios@pol-sys-mgmt Backup]$

see screenshots for further info

Re: Error: Could not open config directory member

Posted: Fri Jan 06, 2017 10:42 am
by dwhitfield
That's a really old version of XI. Is there any reason you can't upgrade? You can find all of our previous versions at https://assets.nagios.com/downloads/nag ... rsions.php

You're not even on the latest version of 2014. There will be a ton of security improvements by upgrading to the latest. If you are on CentOS 5, you are going to have to think about migrating off of that pretty soon anyway. Planning an XI upgrade at the same time would make sense.

More to the issue at hand, what's the output of ll /usr/local/nagios/etc/services/Backup/?

Re: Error: Could not open config directory member

Posted: Fri Jan 06, 2017 10:55 am
by rkennedy
Also, please PM a profile for us to review. (Admin -> System Profile -> Download Profile)

Re: Error: Could not open config directory member

Posted: Mon Jan 09, 2017 5:48 am
by saptech
to try to avoid that error I create that file:

# ll /usr/local/nagios/etc/services/Backup/
total 4
-rwxrwxrwx 1 apache nagios 1554 Jan 6 11:10 ECLIPSE_jmeter_logon_SRE-POLARIS.cfg

Re: Error: Could not open config directory member

Posted: Mon Jan 09, 2017 11:35 am
by lmiltchev
You have some crashed DB tables. Let's start with repairing the DB. Run the following commands:

Code: Select all

/usr/local/nagiosxi/scripts/repairmysql.sh nagios
/usr/local/nagiosxi/scripts/repairmysql.sh nagiosql
then check the mysqld.log for more errors:

Code: Select all

tail /var/log/mysqld.log
Note: You may need to run the repair script a few times before all errors are gone.

After all of the mysql errors have been fixed, go the the Nagios XI web UI->CCM->Tools->Write Config Files, click on the following buttons - Delete, Write and Verify (in the exact same order), and show the output after each click.

Re: Error: Could not open config directory member

Posted: Tue Jan 10, 2017 4:51 am
by saptech

Code: Select all

# /usr/local/nagiosxi/scripts/repairmysql.sh nagios
mysqld (pid 43571) is running...
DATABASE: nagios
TABLE:
/var/lib/mysql/nagios /var/log
Stopping mysqld:                                           [  OK  ]
- recovering (with sort) MyISAM-table 'nagios_acknowledgements.MYI'
Data records: 1
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_commands.MYI'
Data records: 119
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_commenthistory.MYI'
Data records: 8
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_comments.MYI'
Data records: 1
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_configfiles.MYI'
Data records: 1
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_configfilevariables.MYI'
Data records: 131
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'nagios_conninfo.MYI'
Data records: 303
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'nagios_contact_addresses.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_contactgroup_members.MYI'
Data records: 17
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_contactgroups.MYI'
Data records: 3
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_contact_notificationcommands.MYI'
Data records: 84
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_contactnotificationmethods.MYI'
Data records: 2412
- Fixing index 1
- Fixing index 2
- Fixing index 3

---------

- recovering (with sort) MyISAM-table 'nagios_contactnotifications.MYI'
Data records: 54
- Fixing index 1
- Fixing index 2
- Fixing index 3
- Fixing index 4

---------

- recovering (with sort) MyISAM-table 'nagios_contacts.MYI'
Data records: 7
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_contactstatus.MYI'
Data records: 7
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_customvariables.MYI'
Data records: 1
- Fixing index 1
- Fixing index 2
- Fixing index 3

---------

- recovering (with sort) MyISAM-table 'nagios_customvariablestatus.MYI'
Data records: 1
- Fixing index 1
- Fixing index 2
- Fixing index 3

---------

- recovering (with keycache) MyISAM-table 'nagios_dbversion.MYI'
Data records: 1

---------

- recovering (with sort) MyISAM-table 'nagios_downtimehistory.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_eventhandlers.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_externalcommands.MYI'
Data records: 32272
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'nagios_flappinghistory.MYI'
Data records: 32
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'nagios_hostchecks.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_host_contactgroups.MYI'
Data records: 22
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_host_contacts.MYI'
Data records: 2
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_hostdependencies.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_hostescalation_contactgroups.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_hostescalation_contacts.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_hostescalations.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_hostgroup_members.MYI'
Data records: 17
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_hostgroups.MYI'
Data records: 3
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_host_parenthosts.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_hosts.MYI'
Data records: 22
- Fixing index 1
- Fixing index 2
- Fixing index 3

---------

- recovering (with sort) MyISAM-table 'nagios_hoststatus.MYI'
Data records: 22
- Fixing index 1
- Fixing index 2
- Fixing index 3
- Fixing index 4
- Fixing index 5
- Fixing index 6
- Fixing index 7
- Fixing index 8
- Fixing index 9
- Fixing index 10
- Fixing index 11
- Fixing index 12
- Fixing index 13
- Fixing index 14
- Fixing index 15
- Fixing index 16
- Fixing index 17
- Fixing index 18
- Fixing index 19

---------

- recovering (with sort) MyISAM-table 'nagios_instances.MYI'
Data records: 1
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'nagios_logentries.MYI'
Data records: 145306
- Fixing index 1
- Fixing index 2
- Fixing index 3
- Fixing index 4

---------

- recovering (with sort) MyISAM-table 'nagios_notifications.MYI'
Data records: 533
- Fixing index 1
- Fixing index 2
- Fixing index 3
- Fixing index 4

---------

- recovering (with sort) MyISAM-table 'nagios_objects.MYI'
Data records: 572
- Fixing index 1
- Fixing index 2
- Fixing index 3
- Fixing index 4
- Fixing index 5

---------

- recovering (with sort) MyISAM-table 'nagios_processevents.MYI'
Data records: 448
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'nagios_programstatus.MYI'
Data records: 1
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_runtimevariables.MYI'
Data records: 18
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_scheduleddowntime.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_servicechecks.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2
- Fixing index 3
- Fixing index 4

---------

- recovering (with sort) MyISAM-table 'nagios_service_contactgroups.MYI'
Data records: 337
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_service_contacts.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_servicedependencies.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_serviceescalation_contactgroups.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_serviceescalation_contacts.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_serviceescalations.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_servicegroup_members.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_servicegroups.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_service_parentservices.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_services.MYI'
Data records: 337
- Fixing index 1
- Fixing index 2
- Fixing index 3

---------

- recovering (with sort) MyISAM-table 'nagios_servicestatus.MYI'
Data records: 337
- Fixing index 1
- Fixing index 2
- Fixing index 3
- Fixing index 4
- Fixing index 5
- Fixing index 6
- Fixing index 7
- Fixing index 8
- Fixing index 9
- Fixing index 10
- Fixing index 11
- Fixing index 12
- Fixing index 13
- Fixing index 14
- Fixing index 15
- Fixing index 16
- Fixing index 17
- Fixing index 18
- Fixing index 19

---------

- recovering (with sort) MyISAM-table 'nagios_statehistory.MYI'
Data records: 56300
- Fixing index 1
- Fixing index 2
- Fixing index 3

---------

- recovering (with sort) MyISAM-table 'nagios_systemcommands.MYI'
Data records: 108
- Fixing index 1
- Fixing index 2
- Fixing index 3

---------

- recovering (with sort) MyISAM-table 'nagios_timedeventqueue.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2
- Fixing index 3
- Fixing index 4
- Fixing index 5
- Fixing index 6

---------

- recovering (with sort) MyISAM-table 'nagios_timedevents.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2
- Fixing index 3
- Fixing index 4
- Fixing index 5
- Fixing index 6

---------

- recovering (with sort) MyISAM-table 'nagios_timeperiods.MYI'
Data records: 8
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'nagios_timeperiod_timeranges.MYI'
Data records: 31
- Fixing index 1
- Fixing index 2
Starting mysqld:                                           [  OK  ]
/var/log

===============
REPAIR COMPLETE
===============



# /usr/local/nagiosxi/scripts/repairmysql.sh nagiosql
mysqld (pid 51136) is running...
DATABASE: nagiosql
TABLE:
/var/lib/mysql/nagiosql /var/log
Stopping mysqld:                                           [  OK  ]
- recovering (with sort) MyISAM-table 'tbl_command.MYI'
Data records: 125
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'tbl_contactgroup.MYI'
Data records: 3
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'tbl_contact.MYI'
Data records: 6
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'tbl_contacttemplate.MYI'
Data records: 2
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'tbl_domain.MYI'
Data records: 1
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'tbl_hostdependency.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'tbl_hostescalation.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'tbl_hostextinfo.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'tbl_hostgroup.MYI'
Data records: 4
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'tbl_host.MYI'
Data records: 22
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'tbl_hosttemplate.MYI'
Data records: 49
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'tbl_info.MYI'
Data records: 218
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'tbl_lnkContactgroupToContactgroup.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkContactgroupToContact.MYI'
Data records: 17
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkContacttemplateToCommandHost.MYI'
Data records: 2
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkContacttemplateToCommandService.MYI'
Data records: 2
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkContacttemplateToContactgroup.MYI'
Data records: 1
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkContacttemplateToContacttemplate.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkContacttemplateToVariabledefinition.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkContactToCommandHost.MYI'
Data records: 5
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkContactToCommandService.MYI'
Data records: 5
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkContactToContactgroup.MYI'
Data records: 4
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkContactToContacttemplate.MYI'
Data records: 5
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkContactToVariabledefinition.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkHostdependencyToHost_DH.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkHostdependencyToHostgroup_DH.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkHostdependencyToHostgroup_H.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkHostdependencyToHost_H.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkHostescalationToContactgroup.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkHostescalationToContact.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkHostescalationToHostgroup.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkHostescalationToHost.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkHostgroupToHostgroup.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkHostgroupToHost.MYI'
Data records: 16
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkHosttemplateToContactgroup.MYI'
Data records: 4
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkHosttemplateToContact.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkHosttemplateToHostgroup.MYI'
Data records: 1
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkHosttemplateToHost.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkHosttemplateToHosttemplate.MYI'
Data records: 47
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkHosttemplateToVariabledefinition.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkHostToContactgroup.MYI'
Data records: 21
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkHostToContact.MYI'
Data records: 2
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkHostToHostgroup.MYI'
Data records: 1
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkHostToHost.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkHostToHosttemplate.MYI'
Data records: 2
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkHostToVariabledefinition.MYI'
Data records: 1
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkServicedependencyToHost_DH.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkServicedependencyToHostgroup_DH.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkServicedependencyToHostgroup_H.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkServicedependencyToHost_H.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkServicedependencyToService_DS.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkServicedependencyToService_S.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkServiceescalationToContactgroup.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkServiceescalationToContact.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkServiceescalationToHostgroup.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkServiceescalationToHost.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkServiceescalationToService.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkServicegroupToServicegroup.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkServicegroupToService.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkServicetemplateToContactgroup.MYI'
Data records: 1
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkServicetemplateToContact.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkServicetemplateToHostgroup.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkServicetemplateToHost.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkServicetemplateToServicegroup.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkServicetemplateToServicetemplate.MYI'
Data records: 74
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkServicetemplateToVariabledefinition.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkServiceToContactgroup.MYI'
Data records: 93
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkServiceToContact.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkServiceToHostgroup.MYI'
Data records: 1
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkServiceToHost.MYI'
Data records: 337
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkServiceToServicegroup.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkServiceToServicetemplate.MYI'
Data records: 8
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkServiceToVariabledefinition.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_lnkTimeperiodToTimeperiod.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_logbook.MYI'
Data records: 0
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_mainmenu.MYI'
Data records: 7
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_servicedependency.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'tbl_serviceescalation.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'tbl_serviceextinfo.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'tbl_servicegroup.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'tbl_service.MYI'
Data records: 101
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_servicetemplate.MYI'
Data records: 76
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'tbl_settings.MYI'
Data records: 12
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'tbl_submenu.MYI'
Data records: 29
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_timedefinition.MYI'
Data records: 37
- Fixing index 1

---------

- recovering (with sort) MyISAM-table 'tbl_timeperiod.MYI'
Data records: 7
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'tbl_user.MYI'
Data records: 2
- Fixing index 1
- Fixing index 2

---------

- recovering (with sort) MyISAM-table 'tbl_variabledefinition.MYI'
Data records: 1
- Fixing index 1
Starting mysqld:                                           [  OK  ]
/var/log

===============
REPAIR COMPLETE
===============


Code: Select all

170110 10:27:59  InnoDB: Shutdown completed; log sequence number 1589339
170110 10:27:59 [Note] /usr/libexec/mysqld: Shutdown complete

170110 10:27:59 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
170110 10:27:59 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
170110 10:27:59 [Note] Plugin 'FEDERATED' is disabled.
170110 10:27:59 InnoDB: The InnoDB memory heap is disabled
170110 10:27:59 InnoDB: Mutexes and rw_locks use GCC atomic builtins
170110 10:27:59 InnoDB: Compressed tables use zlib 1.2.3
170110 10:27:59 InnoDB: Using Linux native AIO
170110 10:27:59 InnoDB: Initializing buffer pool, size = 128.0M
170110 10:27:59 InnoDB: Completed initialization of buffer pool
170110 10:27:59 InnoDB: highest supported file format is Barracuda.
170110 10:27:59  InnoDB: Waiting for the background threads to start
170110 10:28:00 InnoDB: 5.5.42 started; log sequence number 1589339
170110 10:28:00 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
170110 10:28:00 [Note]   - '0.0.0.0' resolves to '0.0.0.0';
170110 10:28:00 [Note] Server socket created on IP: '0.0.0.0'.
170110 10:28:00 [Note] Event Scheduler: Loaded 0 events
170110 10:28:00 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.5.42'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MySQL Community Server (GPL) by Remi
Delete : no output but hosts and service directory clean

Write :

Code: Select all

Write host configurations ...
Configuration file: localhost.cfg successfully written!
Configuration file: pol-db.esoc.esa.int.cfg successfully written!
Configuration file: pol-ftp.esoc.esa.int.cfg successfully written!
Configuration file: pol-nfs-data.esoc.esa.int.cfg successfully written!
Configuration file: pol-nfs-db.esoc.esa.int.cfg successfully written!
Configuration file: pol-as-fci.esoc.esa.int.cfg successfully written!
Configuration file: pol-web-ext.esoc.esa.int.cfg successfully written!
Configuration file: pol-as-tec.esoc.esa.int.cfg successfully written!
Configuration file: pol-cms.esoc.esa.int.cfg successfully written!
Configuration file: pol-web.esoc.esa.int.cfg successfully written!
Configuration file: pol-as-sre.esoc.esa.int.cfg successfully written!
Configuration file: pol-as-eop.esoc.esa.int.cfg successfully written!
Configuration file: pol-as-nav.esoc.esa.int.cfg successfully written!
Configuration file: pol-integ-1.esoc.esa.int.cfg successfully written!
Configuration file: pol-as-hso.esoc.esa.int.cfg successfully written!
Configuration file: pol-as-tia.esoc.esa.int.cfg successfully written!
Configuration file: pol-as-acc.esoc.esa.int.cfg successfully written!
Configuration file: pol-db-acc.esoc.esa.int.cfg successfully written!
Configuration file: pol-nfs-data-acc.esoc.esa.int.cfg successfully written!
Configuration file: pol-nfs-db-acc.esoc.esa.int.cfg successfully written!
Configuration file: pol-web-acc-ext.esoc.esa.int.cfg successfully written!
Configuration file: pol-acc-int.esa.int.cfg successfully written!
Host configuration files successfully written!

Write service configurations ...
Configuration file: /data pol-sys-mgmt.cfg successfully written!
Configuration file: /home pol-sys-mgmt.cfg successfully written!
Configuration file: /software pol-sys-mgmt.cfg successfully written!
Configuration file: /tmp pol-sys-mgmt.cfg successfully written!
Configuration file: /usr pol-sys-mgmt.cfg successfully written!
Configuration file: /usr/local pol-sys-mgmt.cfg successfully written!
Configuration file: /var pol-sys-mgmt.cfg successfully written!
Configuration file: /var/log/audit pol-sys-mgmt.cfg successfully written!
Configuration file: Database POLACC backup.cfg successfully written!
Configuration file: Database POLACC jobs.cfg successfully written!
Configuration file: Database POLACC open.cfg successfully written!
Configuration file: Database POLACC sessions.cfg successfully written!
Configuration file: Database POLACC tsauto.cfg successfully written!
Configuration file: Database POLACC tsfull.cfg successfully written!
Configuration file: Database POLEOP backup.cfg successfully written!
Configuration file: Database POLEOP jobs.cfg successfully written!
Configuration file: Database POLEOP open.cfg successfully written!
Configuration file: Database POLEOP sessions.cfg successfully written!
Configuration file: Database POLEOP tsauto.cfg successfully written!
Configuration file: Database POLEOP tsfull.cfg successfully written!
Configuration file: Database POLFCI backup.cfg successfully written!
Configuration file: Database POLFCI jobs.cfg successfully written!
Configuration file: Database POLFCI open.cfg successfully written!
Configuration file: Database POLFCI sessions.cfg successfully written!
Configuration file: Database POLFCI tsauto.cfg successfully written!
Configuration file: Database POLFCI tsfull.cfg successfully written!
Configuration file: Database POLHSO backup.cfg successfully written!
Configuration file: Database POLHSO jobs.cfg successfully written!
Configuration file: Database POLHSO open.cfg successfully written!
Configuration file: Database POLHSO sessions.cfg successfully written!
Configuration file: Database POLHSO tsauto.cfg successfully written!
Configuration file: Database POLHSO tsfull.cfg successfully written!
Configuration file: Database POLNAV backup.cfg successfully written!
Configuration file: Database POLNAV jobs.cfg successfully written!
Configuration file: Database POLNAV open.cfg successfully written!
Configuration file: Database POLNAV sessions.cfg successfully written!
Configuration file: Database POLNAV tsauto.cfg successfully written!
Configuration file: Database POLNAV tsfull.cfg successfully written!
Configuration file: Database POLSRE Backup.cfg successfully written!
Configuration file: Database POLSRE jobs.cfg successfully written!
Configuration file: Database POLSRE open.cfg successfully written!
Configuration file: Database POLSRE sessions.cfg successfully written!
Configuration file: Database POLSRE tsauto.cfg successfully written!
Configuration file: Database POLSRE tsfull.cfg successfully written!
Configuration file: Database POLTEC backup.cfg successfully written!
Configuration file: Database POLTEC jobs.cfg successfully written!
Configuration file: Database POLTEC open.cfg successfully written!
Configuration file: Database POLTEC sessions.cfg successfully written!
Configuration file: Database POLTEC tsauto.cfg successfully written!
Configuration file: Database POLTEC tsfull.cfg successfully written!
Configuration file: Eclipse logon ACC.cfg successfully written!
Configuration file: Eclipse logon EOP.cfg successfully written!
Configuration file: Eclipse logon HSO.cfg successfully written!
Configuration file: Eclipse logon NAV.cfg successfully written!
Configuration file: Eclipse logon SRE.cfg successfully written!
Configuration file: Eclipse logon TEC.cfg successfully written!
Configuration file: Eclipse logon TIA.cfg successfully written!
Configuration file: HTTPS status.cfg successfully written!
Configuration file: HTTPS status Acceptance web-ext.cfg successfully written!
Configuration file: Load -over SSH-.cfg successfully written!
Configuration file: Ping.cfg successfully written!
Configuration file: Root-partition -over NSCA.cfg successfully written!
Configuration file: Root-partition -over SSH.cfg successfully written!
Configuration file: SSH.cfg successfully written!
Configuration file: System-load -over NSCA.cfg successfully written!
Configuration file: boot-partition -over NSCA.cfg successfully written!
Configuration file: boot-partition -over SSH.cfg successfully written!
Configuration file: cpu.cfg successfully written!
Configuration file: data-partition -over NSCA.cfg successfully written!
Configuration file: data-partition -over SSH.cfg successfully written!
Configuration file: datapol-partition.cfg successfully written!
Configuration file: disk.cfg successfully written!
Configuration file: ftparea-partition -over SSH.cfg successfully written!
Configuration file: home-partition -over NSCA.cfg successfully written!
Configuration file: home-partition -over SSH.cfg successfully written!
Configuration file: localdata-partition -over SSH.cfg successfully written!
Configuration file: localhost.cfg successfully written!
Configuration file: mem.cfg successfully written!
Configuration file: oracle-partition -over SSH.cfg successfully written!
Configuration file: oradbf-partition -over SSH.cfg successfully written!
Configuration file: service_status.cfg successfully written!
Configuration file: software-partition -over SSH.cfg successfully written!
Configuration file: swap-usage -over NSCA.cfg successfully written!
Configuration file: swap-usage -over SSH.cfg successfully written!
Configuration file: tmp-partition -over NSCA.cfg successfully written!
Configuration file: tmp-partition -over SSH.cfg successfully written!
Configuration file: usr-partition -over NSCA.cfg successfully written!
Configuration file: usr-partition -over SSH.cfg successfully written!
Configuration file: usrlocal-partition -over NSCA.cfg successfully written!
Configuration file: usrlocal-partition -over SSH.cfg successfully written!
Configuration file: var-partition -over NSCA.cfg successfully written!
Configuration file: var-partition -over SSH.cfg successfully written!
Configuration file: varlogaudit-partition -over NSCA.cfg successfully written!
Configuration file: varlogaudit-partition -over SSH.cfg successfully written!
WARNING! Ghost service config detected! Removing the file Backup.cfg
Service configuration files successfully written!

Configuration file: hostgroups.cfg successfully written!
Configuration file: servicegroups.cfg successfully written!
Configuration file: hosttemplates.cfg successfully written!
Configuration file: servicetemplates.cfg successfully written!
Configuration file: timeperiods.cfg successfully written!
Configuration file: commands.cfg successfully written!
Configuration file: contacts.cfg successfully written!
Configuration file: contactgroups.cfg successfully written!
Configuration file: contacttemplates.cfg successfully written!
Configuration file: servicedependencies.cfg successfully written!
Configuration file: hostdependencies.cfg successfully written!
Configuration file: serviceescalations.cfg successfully written!
Configuration file: hostescalations.cfg successfully written!
Configuration file: serviceextinfo.cfg successfully written!
Configuration file: hostextinfo.cfg successfully written!
Verify:

Code: Select all

Nagios Core 4.0.8
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-12-2014
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: Duplicate definition found for service 'Eclipse logon SRE' on host 'pol-as-sre.esoc.esa.int' (config file '/usr/local/nagios/etc/services/Eclipse logon SRE.cfg', starting on line 16)
Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
Warning: Service 'Database POLNAV backup' on host 'pol-db.esoc.esa.int' has a notification interval less than its check interval! Notifications are only re-sent after checks are made, so the effective notification interval will be that of the check interval.
Warning: Service 'Database POLTEC backup' on host 'pol-db.esoc.esa.int' has a notification interval less than its check interval! Notifications are only re-sent after checks are made, so the effective notification interval will be that of the check interval.
Checked 337 services.
Checked 22 hosts.
Checked 3 host groups.
Checked 0 service groups.
Checked 7 contacts.
Checked 3 contact groups.
Checked 119 commands.
Checked 8 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 22 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 8 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 2
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check

Re: Error: Could not open config directory member

Posted: Tue Jan 10, 2017 5:19 am
by saptech
The rule that I was trying to apply doesn't give an error and it looks applied but for any new rule/configuration I receive the same error when I try to apply it.

Re: Error: Could not open config directory member

Posted: Tue Jan 10, 2017 9:35 am
by rkennedy
What are the permissions on the file? ls -la /usr/local/nagios/etc/services/Backup/*?

It could just be permissions at this point. Also, how are you creating it? I don't believe we create a 'Backup' folder by default.

Re: Error: Could not open config directory member

Posted: Wed Jan 11, 2017 5:04 am
by saptech
# ls -la /usr/local/nagios/etc/services/Backup
total 12
drwxrwsrwx 2 apache nagios 4096 Jan 6 11:10 .
drwsrwsr-x 3 apache nagios 4096 Jan 10 10:47 ..
-rwxrwxrwx 1 apache nagios 1554 Jan 6 11:10 ECLIPSE_jmeter_logon_SRE-POLARIS.cfg


I created manually to save the configuration long time ago

Re: Error: Could not open config directory member

Posted: Wed Jan 11, 2017 3:12 pm
by rkennedy
My guess is it's still permissions - try moving it to the /usr/local/nagios/etc/static directory, and see if that helps. This document helps to explain - https://assets.nagios.com/downloads/nag ... ios-XI.pdf