Nagios xi offline install
Nagios xi offline install
I am working on offline install of nagios xi. I followed the below steps
mkdir -p /tmp/rpms
cd /tmp/rpms
rm -rf nagiosxi*
wget https://repo.nagios.com/nagiosxi-offlin ... _64.tar.gz
tar xzf nagiosxi*
cd nagiosxi
./fullinstall
I manually added the missing configuration files to start nagios but after starting nagios I am unable to load the webinterface. Here are the errors I see in the HTTPD log.
u Sep 08 23:43:43 2016] [error] [client 172.28.184.8] File does not exist: /var/www/html/nagiosxi, referer: http://nagios1.devmlp.marquee.net/nagio ... splash.php
[Thu Sep 08 23:43:43 2016] [error] [client 172.28.184.8] File does not exist: /var/www/html/nagiosxi, referer: http://nagios1.devmlp.marquee.net/nagio ... splash.php
[Thu Sep 08 23:43:43 2016] [error] [client 172.28.184.8] File does not exist: /var/www/html/nagiosxi, referer: http://nagios1.devmlp.marquee.net/nagio ... splash.php
[Thu Sep 08 23:43:43 2016] [error] [client 172.28.184.8] File does not exist: /var/www/html/nagiosxi, referer: http://nagios1.devmlp.marquee.net/nagiosxi/index.php?
[Thu Sep 08 23:43:43 2016] [error] [client 172.28.184.8] File does not exist: /var/www/html/nagiosxi, referer: http://nagios1.devmlp.marquee.net/nagiosxi/index.php?
[Thu Sep 08 23:44:13 2016] [error] [client 172.28.184.8] File does not exist: /var/www/html/nagiosxi, referer: http://nagios1.devmlp.marquee.net/nagiosxi/index.php?
[Thu Sep 08 23:44:13 2016] [error] [client 172.28.184.8] File does not exist: /var/www/html/nagiosxi, referer: http://nagios1.devmlp.marquee.net/nagiosxi/index.php?
Also I get the below message in the browser.
You don't have permission to access / on this server.
Or below when I try to reach /nagios
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
-Krishna
mkdir -p /tmp/rpms
cd /tmp/rpms
rm -rf nagiosxi*
wget https://repo.nagios.com/nagiosxi-offlin ... _64.tar.gz
tar xzf nagiosxi*
cd nagiosxi
./fullinstall
I manually added the missing configuration files to start nagios but after starting nagios I am unable to load the webinterface. Here are the errors I see in the HTTPD log.
u Sep 08 23:43:43 2016] [error] [client 172.28.184.8] File does not exist: /var/www/html/nagiosxi, referer: http://nagios1.devmlp.marquee.net/nagio ... splash.php
[Thu Sep 08 23:43:43 2016] [error] [client 172.28.184.8] File does not exist: /var/www/html/nagiosxi, referer: http://nagios1.devmlp.marquee.net/nagio ... splash.php
[Thu Sep 08 23:43:43 2016] [error] [client 172.28.184.8] File does not exist: /var/www/html/nagiosxi, referer: http://nagios1.devmlp.marquee.net/nagio ... splash.php
[Thu Sep 08 23:43:43 2016] [error] [client 172.28.184.8] File does not exist: /var/www/html/nagiosxi, referer: http://nagios1.devmlp.marquee.net/nagiosxi/index.php?
[Thu Sep 08 23:43:43 2016] [error] [client 172.28.184.8] File does not exist: /var/www/html/nagiosxi, referer: http://nagios1.devmlp.marquee.net/nagiosxi/index.php?
[Thu Sep 08 23:44:13 2016] [error] [client 172.28.184.8] File does not exist: /var/www/html/nagiosxi, referer: http://nagios1.devmlp.marquee.net/nagiosxi/index.php?
[Thu Sep 08 23:44:13 2016] [error] [client 172.28.184.8] File does not exist: /var/www/html/nagiosxi, referer: http://nagios1.devmlp.marquee.net/nagiosxi/index.php?
Also I get the below message in the browser.
You don't have permission to access / on this server.
Or below when I try to reach /nagios
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
-Krishna
Re: Nagios xi offline install
Please attach your /etc/httpd/conf/httpd.conf and your entire /etc/httpd/conf.d directory as it looks like a apache config issue.
Thank you
Thank you
Re: Nagios xi offline install
Also on top of what @ssax asked for, please attach your install.log from when it was initially installed.
Former Nagios Employee
Re: Nagios xi offline install
Here is the install log. I have also listed the rpm -qa for MySQL and the requested info.
Adding users and groups...
useradd: user 'nagios' already exists
groupadd: group 'nagios' already exists
groupadd: group 'nagcmd' already exists
Users and groups added OK
ERROR: MySQL not installed - exiting.
[[email protected] tmp]# rpm -qa | grep MySQL
MySQL-shared-compat-5.5.28-1.linux2.6.x86_64
MySQL-server-5.5.28-1.linux2.6.x86_64
perl-DBD-MySQL-4.013-3.el6.x86_64
[[email protected] conf]# ls -ltr
total 68
-rw-r--r--. 1 root root 13139 Jul 18 15:24 magic
drwx------. 2 root root 4096 Sep 8 22:17 ssl.key/
drwx------. 2 root root 4096 Sep 8 22:17 ssl.crt/
drwxr-xr-x. 4 root root 4096 Sep 8 22:17 ../
-r--r--r-- 1 root root 35012 Sep 8 23:17 httpd.conf
drwxr-xr-x. 4 root root 4096 Sep 8 23:17 ./
[[email protected] conf]# cd ../conf.d/
[[email protected] conf.d]# ls -ltr
total 52
-rw-r--r-- 1 root root 330 Nov 12 2012 mrtg.conf
-rw-r--r--. 1 root root 1671 Aug 28 2013 python.conf
-rw-r--r-- 1 root root 1010 Jun 22 18:47 nagios.conf
-rw-r--r-- 1 nagios nagios 344 Jun 22 18:48 nrdp.conf
-rw-r--r-- 1 root root 427 Jun 22 18:48 nagiosql.conf
-rwxrwxrwx 1 root root 601 Jun 22 18:48 nagiosmobile.conf*
-rw-r--r-- 1 apache apache 2148 Jun 22 18:50 nagvis.conf
-rw-r--r--. 1 root root 392 Jul 18 15:24 README
-rw-r--r--. 1 root root 674 Aug 11 20:36 php.conf
-r--r--r--. 1 root root 521 Sep 8 22:17 vu.conf
-r--r--r--. 1 root root 666 Sep 8 22:17 nagioscgi.conf
drwxr-xr-x. 4 root root 4096 Sep 8 22:17 ../
drwxr-xr-x. 2 root root 4096 Sep 8 23:18 ./
Adding users and groups...
useradd: user 'nagios' already exists
groupadd: group 'nagios' already exists
groupadd: group 'nagcmd' already exists
Users and groups added OK
ERROR: MySQL not installed - exiting.
[[email protected] tmp]# rpm -qa | grep MySQL
MySQL-shared-compat-5.5.28-1.linux2.6.x86_64
MySQL-server-5.5.28-1.linux2.6.x86_64
perl-DBD-MySQL-4.013-3.el6.x86_64
[[email protected] conf]# ls -ltr
total 68
-rw-r--r--. 1 root root 13139 Jul 18 15:24 magic
drwx------. 2 root root 4096 Sep 8 22:17 ssl.key/
drwx------. 2 root root 4096 Sep 8 22:17 ssl.crt/
drwxr-xr-x. 4 root root 4096 Sep 8 22:17 ../
-r--r--r-- 1 root root 35012 Sep 8 23:17 httpd.conf
drwxr-xr-x. 4 root root 4096 Sep 8 23:17 ./
[[email protected] conf]# cd ../conf.d/
[[email protected] conf.d]# ls -ltr
total 52
-rw-r--r-- 1 root root 330 Nov 12 2012 mrtg.conf
-rw-r--r--. 1 root root 1671 Aug 28 2013 python.conf
-rw-r--r-- 1 root root 1010 Jun 22 18:47 nagios.conf
-rw-r--r-- 1 nagios nagios 344 Jun 22 18:48 nrdp.conf
-rw-r--r-- 1 root root 427 Jun 22 18:48 nagiosql.conf
-rwxrwxrwx 1 root root 601 Jun 22 18:48 nagiosmobile.conf*
-rw-r--r-- 1 apache apache 2148 Jun 22 18:50 nagvis.conf
-rw-r--r--. 1 root root 392 Jul 18 15:24 README
-rw-r--r--. 1 root root 674 Aug 11 20:36 php.conf
-r--r--r--. 1 root root 521 Sep 8 22:17 vu.conf
-r--r--r--. 1 root root 666 Sep 8 22:17 nagioscgi.conf
drwxr-xr-x. 4 root root 4096 Sep 8 22:17 ../
drwxr-xr-x. 2 root root 4096 Sep 8 23:18 ./
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios xi offline install
It doesn't appear the installation went as expected.
When you ran the offline install was this a clean minimal install system? This is required because the original setup of the mysql DB expects the it to not exist before installing.
What OS is this?
When you ran the offline install was this a clean minimal install system? This is required because the original setup of the mysql DB expects the it to not exist before installing.
What OS is this?
Re: Nagios xi offline install
We are using centos6. Also I found we use a different version of MySQL. I version locked to use the version provided my centos6. But I am still seeing the below error.
[[email protected] tmp]# uname -a
Linux nagios1.devmlp.marquee.net 2.6.32-642.4.2.el6.x86_64 #1 SMP Tue Aug 23 19:58:13 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
[[email protected] tmp]# cat /etc/redhat-release
CentOS release 6.8 (Final)
MySQL installed OK - continuing...
Starting MySQL...
Stopping mysqld: [ OK ]^M
Initializing MySQL database: Installing MySQL system tables...
160909 21:02:05 [ERROR] Can't find messagefile '/usr/share/mysql/english/errmsg.sys'
160909 21:02:05 [ERROR] Aborting
160909 21:02:05 [Note]
Installation of system tables failed! Examine the logs in
/var/lib/mysql for more information.
You can try to start the mysqld daemon with:
shell> /usr/libexec/mysqld --skip-grant &
and use the command line tool /usr/bin/mysql
to connect to the mysql database and look at the grant tables:
shell> /usr/bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /var/lib/mysql that may be helpful.
Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS. Another information source are the
MySQL email archives available at http://lists.mysql.com/.
Please check all of the above before mailing us! And remember, if
you do mail us, you MUST use the /usr/bin/mysqlbug script!
[FAILED]^M
ERROR: MySQL failed to start - exiting.
[[email protected] tmp]# uname -a
Linux nagios1.devmlp.marquee.net 2.6.32-642.4.2.el6.x86_64 #1 SMP Tue Aug 23 19:58:13 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
[[email protected] tmp]# cat /etc/redhat-release
CentOS release 6.8 (Final)
MySQL installed OK - continuing...
Starting MySQL...
Stopping mysqld: [ OK ]^M
Initializing MySQL database: Installing MySQL system tables...
160909 21:02:05 [ERROR] Can't find messagefile '/usr/share/mysql/english/errmsg.sys'
160909 21:02:05 [ERROR] Aborting
160909 21:02:05 [Note]
Installation of system tables failed! Examine the logs in
/var/lib/mysql for more information.
You can try to start the mysqld daemon with:
shell> /usr/libexec/mysqld --skip-grant &
and use the command line tool /usr/bin/mysql
to connect to the mysql database and look at the grant tables:
shell> /usr/bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /var/lib/mysql that may be helpful.
Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS. Another information source are the
MySQL email archives available at http://lists.mysql.com/.
Please check all of the above before mailing us! And remember, if
you do mail us, you MUST use the /usr/bin/mysqlbug script!
[FAILED]^M
ERROR: MySQL failed to start - exiting.
Re: Nagios xi offline install
Looks like your mysqld installation is broken.
What if you run these commands and try again:
Also, please send the output of this command:
What if you run these commands and try again:
Code: Select all
yum reinstall MySQL-shared-compat MySQL-serverCode: Select all
rpm -ql MySQL-shared-compat MySQL-serverRe: Nagios xi offline install
I was able to resolve the mysql issue but now I am getting the below error.
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h nagios1.devmlp.marquee.net password 'new-password'
Alternatively you can run:
/usr/bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd /usr/mysql-test ; perl mysql-test-run.pl
Please report any problems with the /usr/bin/mysqlbug script!
[ OK ]
Starting mysqld: [ OK ]
Initializing MySQL...
MySQL root password is now set to: nagiosxi
MySQL initialized OK
Database servers initialized OK
/etc/services updated
sudoers configured OK
iptables: Applying firewall rules: iptables-restore v1.4.7: iptables-restore: unable to initialize table 'filter'
Error occurred at line: 3
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
[FAILED]
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h nagios1.devmlp.marquee.net password 'new-password'
Alternatively you can run:
/usr/bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd /usr/mysql-test ; perl mysql-test-run.pl
Please report any problems with the /usr/bin/mysqlbug script!
[ OK ]
Starting mysqld: [ OK ]
Initializing MySQL...
MySQL root password is now set to: nagiosxi
MySQL initialized OK
Database servers initialized OK
/etc/services updated
sudoers configured OK
iptables: Applying firewall rules: iptables-restore v1.4.7: iptables-restore: unable to initialize table 'filter'
Error occurred at line: 3
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
[FAILED]
Re: Nagios xi offline install
As I had mentioned earlier I am trying to integrate nagios-xi with our environment kickstart process. I am able to successfully install the tar ball after the kickstart But when I add it to the kickstart the install fails with iptables error message below. Any help is appreciated
Running './5-sudoers'...
sudoers configured OK
RESULT=0
Running './6-firewall'...
iptables: Applying firewall rules: iptables-restore v1.4.7: iptables-restore: unable to initialize table 'filter'
Error occurred at line: 3
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
[FAILED]^M
RESULT=1
Thanks
Krishna
Running './5-sudoers'...
sudoers configured OK
RESULT=0
Running './6-firewall'...
iptables: Applying firewall rules: iptables-restore v1.4.7: iptables-restore: unable to initialize table 'filter'
Error occurred at line: 3
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
[FAILED]^M
RESULT=1
Thanks
Krishna
Re: Nagios xi offline install
I don't see any prior mention of kickstart, was this posted under a different forum account?vuduops wrote:As I had mentioned earlier I am trying to integrate nagios-xi with our environment kickstart process.
Running this through kickstart/anaconda might be part of the problem due to differences in environment variables, for example. If you run through the process manually instead of through KS and it works without issue, you might be better off posting this in a forum that deals with kickstart.
Former Nagios employee