Page 1 of 1
Upgrade 5.4.13 > 5.5.1 failed ?
Posted: Mon Jul 23, 2018 4:27 am
by el.tison
Hello support team,
I have a strange issue with upgrading 5.5.1.
The update remains stuck at the next stage:
Installing new XI templates...
Nothing else is happening.
The update seems done, but I do not have the following manipulations to perform. Especially with regard to the actions to be performed in the sudoer.
Subject apart, I have an enterprise license but I can not add my account in the "customer support"
https://support.nagios.com/add-contact/
Best regards
Re: Upgrade 5.4.13 > 5.5.1 failed ?
Posted: Mon Jul 23, 2018 8:27 am
by scottwilkerson
Please contact
[email protected]
el.tison wrote:
I have a strange issue with upgrading 5.5.1.
The update remains stuck at the next stage:
Installing new XI templates...
Nothing else is happening.
The update seems done, but I do not have the following manipulations to perform. Especially with regard to the actions to be performed in the sudoer.
this is a strange place for it to stop, can you output the following from the CLI
also, can you send the upgrade.log
Thanks
Re: Upgrade 5.4.13 > 5.5.1 failed ?
Posted: Mon Jul 23, 2018 9:05 am
by el.tison
Hi scottwilkerson
Thanks for reply
here the df
# df -h
Sys. de fichiers Taille Uti. Disp. Uti% Monté sur
/dev/mapper/myvg-rootvol 94G 54G 36G 61% /
tmpfs 9,8G 0 9,8G 0% /dev/shm
/dev/sda1 985M 70M 865M 8% /boot
you will find in attachment the file log, it is little verbose ...
Re: Upgrade 5.4.13 > 5.5.1 failed ?
Posted: Mon Jul 23, 2018 9:11 am
by scottwilkerson
Please run the following and report the output
Code: Select all
su nagios -c '/usr/local/nagiosxi/scripts/reset_config_perms.sh'
Re: Upgrade 5.4.13 > 5.5.1 failed ?
Posted: Mon Jul 30, 2018 1:52 am
by el.tison
Hi scottwilkerson,
Sorry for my late response
Here the output :
# su nagios -c '/usr/local/nagiosxi/scripts/reset_config_perms.sh'
--- reset_config_perms.sh ------------
> Setting CCM script permissions
> Setting script permissions
/bin/chown: changement de propriétaire pour « /usr/local/nagiosxi/scripts/reset_config_perms.sh »: Opération non permise
/bin/chown: changement de propriétaire pour « /usr/local/nagiosxi/scripts/upgrade_to_latest.sh »: Opération non permise
/bin/chown: changement de propriétaire pour « /usr/local/nagiosxi/scripts/change_timezone.sh »: Opération non permise
/bin/chown: changement de propriétaire pour « /usr/local/nagiosxi/scripts/manage_services.sh »: Opération non permise
/bin/chown: changement de propriétaire pour « /usr/local/nagiosxi/scripts/manage_ssl_config.sh »: Opération non permise
/bin/chown: changement de propriétaire pour « /usr/local/nagiosxi/scripts/backup_xi.sh »: Opération non permise
/bin/chown: changement de propriétaire pour « /usr/local/nagiosxi/scripts/repair_databases.sh »: Opération non permise
> Setting special component script permissions
/bin/chown: changement de propriétaire pour « /usr/local/nagiosxi/html/includes/components/autodiscovery/scripts/autodiscover_new.php »: Opération non permise
/bin/chown: changement de propriétaire pour « /usr/local/nagiosxi/html/includes/components/profile/getprofile.sh »: Opération non permise
> Setting configuration file/directory permissions
/bin/chown: changement de propriétaire pour « /usr/local/nagios/etc/~nagios.cfg_2014-07-28 »: Opération non permise
/bin/chown: changement de propriétaire pour « /usr/local/nagios/etc/commands.cfg »: Opération non permise
/bin/chown: changement de propriétaire pour « /usr/local/nagios/etc/ndomod.cfg »: Opération non permise
/bin/chown: changement de propriétaire pour « /usr/local/nagios/etc/sshkey/adagekey »: Opération non permise
/bin/chown: changement de propriétaire pour « /usr/local/nagios/etc/sshkey »: Opération non permise
/bin/chown: changement de propriétaire pour « /usr/local/nagios/etc/contacts.cfg »: Opération non permise
/bin/chown: changement de propriétaire pour « /usr/local/nagios/etc/nsca.cfg »: Opération non permise
/bin/chown: changement de propriétaire pour « /usr/local/nagios/etc/servicetemplates.cfg »: Opération non permise
/bin/chown: changement de propriétaire pour « /usr/local/nagios/etc/nrpe.cfg »: Opération non permise
/bin/chown: changement de propriétaire pour « /usr/local/nagios/etc/resource.cfg »: Opération non permise
...
> Setting perfdata directory and RRD permissions
> Setting NOM checkpoint user:group permissions
> + Setting Nagios Core corelog.newobjects user:group permissions
> + Setting CCM configuration file user:group permissions
/bin/chown: changement de propriétaire pour « /usr/local/nagiosxi/etc/components/ccm_config.inc.php »: Opération non permise
/bin/chmod: modification des permissions de « /usr/local/nagiosxi/etc/components/ccm_config.inc.php »: Opération non permise
> + Setting Recurring Downtime file user:group permissions
/bin/chown: changement de propriétaire pour « /usr/local/nagios/etc/recurringdowntime.cfg »: Opération non permise
/bin/chmod: modification des permissions de « /usr/local/nagios/etc/recurringdowntime.cfg »: Opération non permise
> + Setting BPI configuration file user:group permissions
/bin/chown: changement de propriétaire pour « /usr/local/nagiosxi/etc/components/bpi.conf »: Opération non permise
/bin/chown: changement de propriétaire pour « /usr/local/nagiosxi/etc/components/bpi.conf.backup »: Opération non permise
/bin/chmod: modification des permissions de « /usr/local/nagiosxi/etc/components/bpi.conf »: Opération non permise
/bin/chmod: modification des permissions de « /usr/local/nagiosxi/etc/components/bpi.conf.backup »: Opération non permise
Here the script's permission :
ll /usr/local/nagiosxi/scripts/reset_config_perms.sh
-rwxr-x--- 1 root nagios 3604 23 juil. 09:05 /usr/local/nagiosxi/scripts/reset_config_perms.sh
Re: Upgrade 5.4.13 > 5.5.1 failed ?
Posted: Mon Jul 30, 2018 7:31 am
by scottwilkerson
This looks like the /usr/local/nagiosxi/scripts/reset_config_perms.sh is not in the sudoers file.
you should have an entry like this
Code: Select all
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/reset_config_perms.sh
all of this actually
Code: Select all
Defaults:nagios !requiretty
nagios ALL=NOPASSWD: /usr/local/nagios/libexec/check_init_service
# ASTERISK-SPECIFIC CHECKS
# NOTE: You can uncomment the following line if you are monitoring Asterisk locally
#nagios ALL=NOPASSWD: /usr/local/nagios/libexec/check_asterisk_sip_peers.sh, /usr/local/nagios/libexec/nagisk.pl, /usr/sbin/asterisk
User_Alias NAGIOSXI=nagios
User_Alias NAGIOSXIWEB=apache
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios status
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios checkconfig
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db status
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd status
NAGIOSXI ALL = NOPASSWD:/usr/bin/php /usr/local/nagiosxi/html/includes/components/autodiscovery/scripts/autodiscover_new.php *
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/html/includes/components/profile/getprofile.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/upgrade_to_latest.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/change_timezone.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/manage_services.sh *
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/reset_config_perms.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/manage_ssl_config.sh *
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/backup_xi.sh *
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/messages
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/httpd/error_log
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/mysqld.log
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/php /usr/local/nagiosxi/html/includes/components/autodiscovery/scripts/autodiscover_new.php *
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/html/includes/components/profile/getprofile.sh
NAGIOSXIWEB ALL = NOPASSWD:/etc/init.d/snmptt restart
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/scripts/repair_databases.sh
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/scripts/manage_services.sh *