Monitroing and graphic engine wont start after pswd change
-
- Posts: 49
- Joined: Tue Jun 06, 2017 10:59 am
Monitroing and graphic engine wont start after pswd change
Im a newbie so please be patient.
We should be running nagiosxi 5.4.9
We added some php patches for are vulnerability scan to pass.
then we had to change the 'nagios' password. Not a nagiosxi pswd that am aware off.
After the patches and restart nagios monitoring engine and Nagios Graphic engine came up green.
Most others red.
We changed the nagios password to meet a requirement and restarted server.
monitoring engine and graphic engine came up red.....all other nagiosxi components show green(database backend, database maint, event manager...etc..).
any thoughts...Help!
Note: linux admin says there is no 'nagios' service but 'nagiosxi'.....isnt there a 'nagios' service as well?
thanks in advance
We should be running nagiosxi 5.4.9
We added some php patches for are vulnerability scan to pass.
then we had to change the 'nagios' password. Not a nagiosxi pswd that am aware off.
After the patches and restart nagios monitoring engine and Nagios Graphic engine came up green.
Most others red.
We changed the nagios password to meet a requirement and restarted server.
monitoring engine and graphic engine came up red.....all other nagiosxi components show green(database backend, database maint, event manager...etc..).
any thoughts...Help!
Note: linux admin says there is no 'nagios' service but 'nagiosxi'.....isnt there a 'nagios' service as well?
thanks in advance
Re: Monitroing and graphic engine wont start after pswd chan
Hey @jkelly1959,
Can you run the following commands and report the output to us:
Also, you are in Nagios core and I will be moving your topic into Nagios XI.
Can you run the following commands and report the output to us:
Code: Select all
php -v
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
-
- Posts: 49
- Joined: Tue Jun 06, 2017 10:59 am
Re: Monitroing and graphic engine wont start after pswd chan
All...thank you for your responses. Apparently when we tried to upgrade PHP our process removed some libraries and the nagios servers from the server. Something to do when we tried to remove the old php version removed other things as well. Will be redoing the process.
Will post after we retry. THank you again
Will post after we retry. THank you again
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Monitroing and graphic engine wont start after pswd chan
Thanks for updating. Let us know if you have additional questions.
-
- Posts: 49
- Joined: Tue Jun 06, 2017 10:59 am
Re: Monitroing and graphic engine wont start after pswd chan
Our Linux admin has come back with the following Statement:
" The step he gave under step 2 "yum remove -y php*" is still biting us. It still removes any NagiosXI parts that have any dependencies on php. And if we try to reinstall those missing components it wants to resinstall the old php version."
THe steps he followed where as follows:
Here is a procedure on the PHP upgrade. Please make sure that you have upgraded your XI to version 5.4.9 first, before following this procedure. Please let me know if you need any help on that upgrade.
1. How to install PHP 5.6 on XI 5.4.9+
2.
3. ===================================
4.
5.
6. 1. MUST HAVE CLEAN INSTALL OF XI 5.4.9+ ON CLEAN MACHINE
7.
8. ----------
9.
10. 2. Install new PHP version
11.
12. - Install webtatic repo
13.
14. rpm -Uvh https://dl.fedoraproject.org/pub/epel/e ... noarch.rpm
15. rpm -Uvh https://mirror.webtatic.com/yum/el7/web ... elease.rpm
16.
17. - Remove PHP 5.x
18.
19. yum remove -y php*
20.
21. - Remove old SG loader file
22.
23. rm -rf /usr/lib64/php/modules/ixed.5.4.lin
24.
25. - Install PHP 5.6
26.
27. yum install -y php56w php56w-cli php56w-common php56w-mysql php56w-pdo php56w-devel php56w-mbstring php56w-snmp php56w-snmp php56w-ldap php56w-gd php56w-xml php56w-mysql php56w-mcrypt php56w-process php56w-mssql php56w-pear
28.
29. - Copy new SG loader file
30.
31. cd /tmp/nagiosxi/sourceguardian
32. unzip ixed4.lin.x86-64.zip
33. cp ixed.5.6.lin /usr/lib64/php/modules
34.
35. - Upadate SG version in SG ini file
36.
37. sed -i "s/5.4/5.6/" /etc/php.d/sourceguardian.ini
38.
39. - Set PHP timezone (we just use US/Central in the example)
40.
41. sed -i "s/;date.timezone.*/date.timezone = US\/Central/" /etc/php.ini
42.
43. - Restart Apache
44.
45. service httpd restart
46.
47. ----------
48.
49. 3. Make sure pear dependencies are installed
50.
51. - Must install ssh2 (either using pecl or by using php<version>-pecl-ssh2 if available)
52.
53. yum install -y libssh2-devel
54. pecl install ssh2
55. echo "extension=ssh2.so" > /etc/php.d/ssh2.ini
56.
57. - Must install HTML_Template_IT from pear
58.
59. pear install HTML_Template_IT
60.
61. - You must restart apache again
62.
63. service httpd restart
Can anyone help???
" The step he gave under step 2 "yum remove -y php*" is still biting us. It still removes any NagiosXI parts that have any dependencies on php. And if we try to reinstall those missing components it wants to resinstall the old php version."
THe steps he followed where as follows:
Here is a procedure on the PHP upgrade. Please make sure that you have upgraded your XI to version 5.4.9 first, before following this procedure. Please let me know if you need any help on that upgrade.
1. How to install PHP 5.6 on XI 5.4.9+
2.
3. ===================================
4.
5.
6. 1. MUST HAVE CLEAN INSTALL OF XI 5.4.9+ ON CLEAN MACHINE
7.
8. ----------
9.
10. 2. Install new PHP version
11.
12. - Install webtatic repo
13.
14. rpm -Uvh https://dl.fedoraproject.org/pub/epel/e ... noarch.rpm
15. rpm -Uvh https://mirror.webtatic.com/yum/el7/web ... elease.rpm
16.
17. - Remove PHP 5.x
18.
19. yum remove -y php*
20.
21. - Remove old SG loader file
22.
23. rm -rf /usr/lib64/php/modules/ixed.5.4.lin
24.
25. - Install PHP 5.6
26.
27. yum install -y php56w php56w-cli php56w-common php56w-mysql php56w-pdo php56w-devel php56w-mbstring php56w-snmp php56w-snmp php56w-ldap php56w-gd php56w-xml php56w-mysql php56w-mcrypt php56w-process php56w-mssql php56w-pear
28.
29. - Copy new SG loader file
30.
31. cd /tmp/nagiosxi/sourceguardian
32. unzip ixed4.lin.x86-64.zip
33. cp ixed.5.6.lin /usr/lib64/php/modules
34.
35. - Upadate SG version in SG ini file
36.
37. sed -i "s/5.4/5.6/" /etc/php.d/sourceguardian.ini
38.
39. - Set PHP timezone (we just use US/Central in the example)
40.
41. sed -i "s/;date.timezone.*/date.timezone = US\/Central/" /etc/php.ini
42.
43. - Restart Apache
44.
45. service httpd restart
46.
47. ----------
48.
49. 3. Make sure pear dependencies are installed
50.
51. - Must install ssh2 (either using pecl or by using php<version>-pecl-ssh2 if available)
52.
53. yum install -y libssh2-devel
54. pecl install ssh2
55. echo "extension=ssh2.so" > /etc/php.d/ssh2.ini
56.
57. - Must install HTML_Template_IT from pear
58.
59. pear install HTML_Template_IT
60.
61. - You must restart apache again
62.
63. service httpd restart
Can anyone help???
Re: Monitroing and graphic engine wont start after pswd chan
Did you start off with a clean install of XI 5.4.9+ on a clean machine? What kind of install was that - one of our VMs, source install, etc.?
Please run the two commands below to show us the type of the install and the XI version:
I used the same steps on CentOS 7 machine with Nagios XI 5.4.9 installed, and I didn't have any issues upgrading the php version to 5.6.31. My XI is up and running. I ran a wizard, and applied configuration successfully.
I wonder if you missed a step or two by accident...
Can you run the following commands and show the output in code wraps?
# To display the configured software repositories
# To show the installed packages that we are interested in
# To make sure that "ixed.5.6.lin" is present in the modules directory
# To verify that the "sourceguardian.ini" was updated
# To verify the php version and loaded extensions
# To check is services are running
# To see if there are any errors in the apache error log
Please run the two commands below to show us the type of the install and the XI version:
Code: Select all
cat /usr/local/nagiosxi/var/xi-itype
cat /usr/local/nagiosxi/var/xiversion
I wonder if you missed a step or two by accident...
Can you run the following commands and show the output in code wraps?
# To display the configured software repositories
Code: Select all
yum repolist
Code: Select all
rpm -qa | grep -i 'php\|ssh2\|pear'
Code: Select all
ls -la /usr/lib64/php/modules/ixed.5.6.lin
Code: Select all
cat /etc/php.d/sourceguardian.ini
Code: Select all
php --version
php -m
Code: Select all
service nagios stop
service ndo2db restart
service nagios start
service nagios status
service ndo2db status
service httpd restart
service httpd status
service crond restart
service crond status
service mysqld restart
service mysqld status
Code: Select all
tail -50 /var/log/httpd/error_log
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 49
- Joined: Tue Jun 06, 2017 10:59 am
Re: Monitroing and graphic engine wont start after pswd chan
I should mention this is an offline install. What appears to be happening is when we remove the old PHP some critical dependencies get removed and when the reload takes place we don't have certain other dependencies on site. We are trying to identify them. This appears to be a known issue with the offline xi install according to our sales tech.
-
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Monitroing and graphic engine wont start after pswd chan
Thank you for the update. Our developers are aware of the issue and are working on a fix.