Upgrade from 5.2.7 to 5.5.0 failed
-
- Posts: 7
- Joined: Tue Jul 24, 2018 2:37 am
Re: Upgrade from 5.2.7 to 5.5.0 failed
Its still failing.
Please see the attached output.
Can you try to find out what is the root cause of this? Unless we don't work out what is causing this issue, I don't think we'll be able to resolve it.
Please see the attached output.
Can you try to find out what is the root cause of this? Unless we don't work out what is causing this issue, I don't think we'll be able to resolve it.
You do not have the required permissions to view the files attached to this post.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Upgrade from 5.2.7 to 5.5.0 failed
There is an error in there blocking writing of at least one file
Please post the output of the following
Code: Select all
<span class='urgent'>Cannot open/overwrite service configuration files (check the permissions)!</span><br>
Code: Select all
ls -la /usr/local/nagios/etc/services
-
- Posts: 7
- Joined: Tue Jul 24, 2018 2:37 am
Re: Upgrade from 5.2.7 to 5.5.0 failed
[root@nagios ~]# ls -la /usr/local/nagios/etc/services
total 32
drwxrwxr-x 2 apache nagios 20480 Aug 7 10:09 .
drwxrwxr-x 8 apache nagios 4096 Jul 23 10:08 ..
-rw-rw-r-- 1 apache nagios 1109 Aug 7 10:08 check_mysql_slavestatus.cfg
-rw-rw-r-- 1 root root 1481 Aug 7 10:09 devops_nrpe_httpd.cfg
I changed the permissions for devops_nrpe_httpd.cfg file to:
-rw-rw-r-- 1 apache nagios 1481 Aug 7 10:09 devops_nrpe_httpd.cfg
Then tried "Verify Files" and I was still getting an error so I "Deleted Files" and "Write Files" again. Now I only have 1 file in Services
[root@nagios services]# ls -al /usr/local/nagios/etc/services
total 28
drwxrwxr-x 2 apache nagios 20480 Aug 8 09:36 .
drwxrwxr-x 8 apache nagios 4096 Jul 23 10:08 ..
-rw-rw-r-- 1 apache apache 1109 Aug 8 09:36 check_mysql_slavestatus.cfg
total 32
drwxrwxr-x 2 apache nagios 20480 Aug 7 10:09 .
drwxrwxr-x 8 apache nagios 4096 Jul 23 10:08 ..
-rw-rw-r-- 1 apache nagios 1109 Aug 7 10:08 check_mysql_slavestatus.cfg
-rw-rw-r-- 1 root root 1481 Aug 7 10:09 devops_nrpe_httpd.cfg
I changed the permissions for devops_nrpe_httpd.cfg file to:
-rw-rw-r-- 1 apache nagios 1481 Aug 7 10:09 devops_nrpe_httpd.cfg
Then tried "Verify Files" and I was still getting an error so I "Deleted Files" and "Write Files" again. Now I only have 1 file in Services
[root@nagios services]# ls -al /usr/local/nagios/etc/services
total 28
drwxrwxr-x 2 apache nagios 20480 Aug 8 09:36 .
drwxrwxr-x 8 apache nagios 4096 Jul 23 10:08 ..
-rw-rw-r-- 1 apache apache 1109 Aug 8 09:36 check_mysql_slavestatus.cfg
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Upgrade from 5.2.7 to 5.5.0 failed
Did you get an error in the screen?pdd-devops wrote:so I "Deleted Files" and "Write Files" again.
-
- Posts: 7
- Joined: Tue Jul 24, 2018 2:37 am
Re: Upgrade from 5.2.7 to 5.5.0 failed
Yes I did, here's the error:
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/check_mysql_slavestatus.cfg', starting on line 16)
Nagios Core 4.4.1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2018-06-25
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/check_mysql_slavestatus.cfg', starting on line 16)
Error processing object config files!
This service has both hosts and description. I've attached a screenshot for you.
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/check_mysql_slavestatus.cfg', starting on line 16)
Nagios Core 4.4.1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2018-06-25
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/check_mysql_slavestatus.cfg', starting on line 16)
Error processing object config files!
This service has both hosts and description. I've attached a screenshot for you.
You do not have the required permissions to view the files attached to this post.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Upgrade from 5.2.7 to 5.5.0 failed
Can you go to CCM -> Services
Select the check_mysql_slavestatus template
Click the "view config icon" to the right of the service and post the output here
Select the check_mysql_slavestatus template
Click the "view config icon" to the right of the service and post the output here
-
- Posts: 7
- Joined: Tue Jul 24, 2018 2:37 am
Re: Upgrade from 5.2.7 to 5.5.0 failed
###############################################################################
#
# Services configuration file
#
# Created by: Nagios CCM 2.7.0
# Date: 2018-08-13 10:00:08
# Version: Nagios Core 4.x
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios CCM will overwrite all manual settings during the next update if you
# would like to edit files manually, place them in the 'static' directory or
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################
define service {
service_description check_mysql_slavestatus
check_command check_mysql_slavestatus.sh!!nagios!xxxxxxxx!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
notification_period 24x7
register 1
}
###############################################################################
#
# Services configuration file
#
# END OF FILE
#
###############################################################################
#
# Services configuration file
#
# Created by: Nagios CCM 2.7.0
# Date: 2018-08-13 10:00:08
# Version: Nagios Core 4.x
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios CCM will overwrite all manual settings during the next update if you
# would like to edit files manually, place them in the 'static' directory or
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################
define service {
service_description check_mysql_slavestatus
check_command check_mysql_slavestatus.sh!!nagios!xxxxxxxx!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
notification_period 24x7
register 1
}
###############################################################################
#
# Services configuration file
#
# END OF FILE
#
###############################################################################
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Upgrade from 5.2.7 to 5.5.0 failed
So it doesn't think there are any hosts assigned, maybe the 4 that were assigned are now inactive?
Can you go to CCM -> Services
Select the check_mysql_slavestatus config
Edit
Click Manage hosts
Are the correct hosts selected? Are they all active hosts?
Can you go to CCM -> Services
Select the check_mysql_slavestatus config
Edit
Click Manage hosts
Are the correct hosts selected? Are they all active hosts?
-
- Posts: 7
- Joined: Tue Jul 24, 2018 2:37 am
Re: Upgrade from 5.2.7 to 5.5.0 failed
Yes all 4 hosts are active!
As I've said before all of these services are working in Nagios XI 5.2.7. We're seeing these issues only once Nagios XI is upgraded to 5.5.1.
As I've said before all of these services are working in Nagios XI 5.2.7. We're seeing these issues only once Nagios XI is upgraded to 5.5.1.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Upgrade from 5.2.7 to 5.5.0 failed
I'm not sure why they aren't showing in the config, so here is what I propose we do
CCM -> Services
Select the check_mysql_slavestatus template
Edit check_mysql_slavestatus
Click Manage hosts
remove the 4 hosts form the right and re-add them from the left
Click Close
Save
Apply Configuration
CCM -> Services
Select the check_mysql_slavestatus template
Edit check_mysql_slavestatus
Click Manage hosts
remove the 4 hosts form the right and re-add them from the left
Click Close
Save
Apply Configuration