Page 1 of 1

Unable to install Nagios

Posted: Tue Oct 30, 2012 4:53 am
by wipro-cloud-services
Hi ,

I am unable to install Nagios XI in RHEL 6.2


PostgresQL installed OK - continuing...
Initializing PostgresQL...
Starting PostgresQL...

/var/lib/pgsql/data is missing. Use "service postgresql initdb" to initialize the cluster first.
^[[60G[^[[0;31mFAILED^[[0;39m]^M
ERROR: Could not start PostgresQL - exiting.

It is production server setup. Please guide ASAP.

Thanks and Regards,
CCS team

Re: Unable to install Nagios

Posted: Tue Oct 30, 2012 5:11 am
by wipro-cloud-services
And when I also try

[root@zew-v-86a322c8 nagiosxi]# service postgresql initdb
Initializing database: mkdir: cannot create directory `/var/lib/pgsql/data/pg_log': File exists
[FAILED]

I am getting this error
Please Guide ASAP


Regards,
Renuka

Re: Unable to install Nagios

Posted: Tue Oct 30, 2012 9:43 am
by mguthrie
Can you send us the full /tmp/install.log file?

Re: Unable to install Nagios

Posted: Wed Oct 31, 2012 12:07 am
by wipro-cloud-services
Hi ,

Please find the install.log file.

Thanks and Regards,
Renuka

Re: Unable to install Nagios

Posted: Wed Oct 31, 2012 3:46 am
by wipro-cloud-services
Is there any update ? Please guide ASAP.

Re: Unable to install Nagios

Posted: Wed Oct 31, 2012 1:03 pm
by lmiltchev
Why you are trying to install Nagios XI ver. 2011R3.0?! I would recommend removing the "/tmp/nagiosxi" directory, downloading a newer version of XI from our main downloads page, and installing it.

Re: Unable to install Nagios

Posted: Fri Nov 16, 2012 5:18 am
by wipro-cloud-services
Hi ,

I have installed http://assets.nagios.com/downloads/nagi ... 1.2.tar.gz version. But still I am getting the same issue. Can you please guide quickly.


Installing prerequisites...
Setting up Local Package Process
Examining /tmp/nagiosxi/packages/php-pear-HTML-Template-IT-1.3.0-2.el5.noarch.rpm: php-pear-HTML-Template-IT-1.3.0-2.el5.noarch
/tmp/nagiosxi/packages/php-pear-HTML-Template-IT-1.3.0-2.el5.noarch.rpm: does not update installed package.
Examining /tmp/nagiosxi/nagiosxi-deps-2012r1.2-1.noarch.rpm: nagiosxi-deps-2012r1.2-1.noarch
/tmp/nagiosxi/nagiosxi-deps-2012r1.2-1.noarch.rpm: does not update installed package.
Nothing to do
Prerequisites installed OK
Adding users and groups...
useradd: user 'nagios' already exists
groupadd: group 'nagios' already exists
groupadd: group 'nagcmd' already exists
Users and groups added OK
PostgresQL installed OK - continuing...
Initializing PostgresQL...
Starting PostgresQL...

/var/lib/pgsql/data is missing. Use "service postgresql initdb" to initialize the cluster first.
^[[60G[^[[0;31mFAILED^[[0;39m]^M
ERROR: Could not start PostgresQL - exiting.


It is for Production environment . We also acquired the licenses. Please guide ASAP.

Thanks and Regards,
CCS team.

Re: Unable to install Nagios

Posted: Fri Nov 16, 2012 8:43 am
by scottwilkerson
Was this a fresh clean system? It appears that postgresql was already installed.

http://assets.nagios.com/downloads/nagi ... stallation
Note: Nagios XI can only be installed to RHEL, CentOS, or Fedora Core Linux distributions. We highly recommend installing Nagios XI on a 32-bit distribution.

Important: Nagios Enterprises highly recommends and will only support installing Nagios XI on a newly installed, "clean" system. Attempting to install Nagios XI on a pre-existing system with other applications already installed can cause the Nagios XI installation process to fail, critical system components and settings (e.g. database servers) to be modified in a way that negatively affects other applications, and previously installed applications to be automatically upgraded or removed. While installing XI on a system with other applications is possible, it is not recommended due to the possible interactions and complexity of multiple components that are required for Nagios XI to function. If you choose to ignore these warnings, you do so at your own risk.

Internet access is required for installation and upgrades!