Page 1 of 2

Nagios XI installation on Windows doesn't allocate an ipaddr

Posted: Mon Jun 06, 2016 11:22 am
by AJVee
HI,

I have got a weird issue.

I use windows and I have install the VM and turned it on to see that centOS doesn't allocate an ipaddress to the machine.

I get a 127.2.0.1 when I enter the command "ifconfig". Further this does not allow me to access the nagiosXI web interface on the browser.

what could be the issue
guidance please

Regards

Re: Nagios XI installation on Windows doesn't allocate an ip

Posted: Mon Jun 06, 2016 11:25 am
by tmcdonald
Check your network settings - usually I put mine as bridged so it's visible to the rest of the machines on my network. You might need to run dhclient to grab an IP. See if that works and let us know.

Re: Nagios XI installation on Windows doesn't allocate an ip

Posted: Mon Jun 06, 2016 11:35 am
by AJVee
Hi tmcdonald,

thanks for the reply

I am already using the "bridge adapter" mode and I also tried the "dhclient", but that doesn't solve anything

any other suggestions please?

regards

Re: Nagios XI installation on Windows doesn't allocate an ip

Posted: Mon Jun 06, 2016 12:22 pm
by eloyd
What hypervisor are you using?

Re: Nagios XI installation on Windows doesn't allocate an ip

Posted: Mon Jun 06, 2016 2:18 pm
by AJVee
Hi,

and how do I determine which hypervisor I am using,

I am using windows 10 and using a Oracle VM VirtualBox manager to run my CentOS

regards

Re: Nagios XI installation on Windows doesn't allocate an ip

Posted: Mon Jun 06, 2016 2:27 pm
by eloyd
AJVee wrote:Hi,
I am using windows 10 and using a Oracle VM VirtualBox manager to run my CentOS
Oracle VM VritualBox is your hypervisor. Does your network have a DHCP server on it? Make sure your network settings for the virtual box include a Network adapter, that it is enabled, and that you have selected bridge mode as @donald suggested.

If you do not have a DHCP server on your network (the one your Windows desktop machine is on), then you will need to assign a network address to the box using CentOS tools to do so, or by editing /etc/sysconfig/network-scripts/ifcfg-eth0 appropriately.

Re: Nagios XI installation on Windows doesn't allocate an ip

Posted: Mon Jun 06, 2016 2:44 pm
by AJVee
Hi,

I am using the network adapter option in the network settings and the option is
Qualcomm Atheros AR9485 Wireless Network Adapter
and I checked for the DHCP server on my windows and when I type in the
ipconfig /all
I get
DHCP Server .... 1.1.1.1
:|

and how do I edit the ifcfg-eth0... a little more insight please

regards

Re: Nagios XI installation on Windows doesn't allocate an ip

Posted: Mon Jun 06, 2016 3:02 pm
by lmiltchev
and how do I edit the ifcfg-eth0... a little more insight please
Usually all you need to do is open the file in a text editor (vi, nano, etc.), set the "onboot" value to "on":

Code: Select all

ONBOOT=on
save, exit, and restart networking:

Code: Select all

service network restart
Hope this helps.

Re: Nagios XI installation on Windows doesn't allocate an ip

Posted: Wed Jun 08, 2016 4:33 pm
by AJVee
Thanks for your time lmiltchev,

I moved out of that environment and now onto complete Ubuntu and I face a new set of problems there

could you please help me with that and the issue is that:

On an Ubuntu 16.04 and when I use https://assets.nagios.com/downloads/nag ... ios-XI.pdf as a reference guide to install nagios xi, I am facing the following errors

I am new to Ubuntu so please guide me through this


Error
dpkg-query: package 'nagios' is not installed and no information is available

dpkg-query: package 'nagios-nrpe' is not installed and no information is available

dpkg-query: package 'nagios-nsca' is not installed and no information is available

dpkg-query: package 'ndoutils' is not installed and no information is available

dpkg-query: package 'ndoutils-mysql' is not installed and no information is available

dpkg-query: package 'nrpe' is not installed and no information is available

dpkg-query: package 'nsca' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
Reading package lists...
Building dependency tree...
Reading state information...
Package libapache2-mod-php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-mcrypt is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-mysql is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-pgsql is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-gd is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'php5' has no installation candidate
E: Package 'libapache2-mod-php5' has no installation candidate
E: Package 'php5-gd' has no installation candidate
E: Package 'php5-mcrypt' has no installation candidate
E: Unable to locate package php5-mssql
E: Package 'php5-mysql' has no installation candidate
E: Unable to locate package php-html-template-it
E: Package 'php5-pgsql' has no installation candidate
E: Unable to locate package php5-snmp
E: Unable to locate package php5-ldap
E: Unable to locate package php5-curl
RESULT=100

Re: Nagios XI installation on Windows doesn't allocate an ip

Posted: Wed Jun 08, 2016 4:44 pm
by lmiltchev
I believe you are confusing Nagios XI with NRPE (an agent that you can install on a remote machine in order to monitor it via Nagios or Nagios XI).

Installing Nagios XI on Ubuntu is not supported yet. As far as installing NRPE, this is an old document...

If you want to install the Linux agent (NRPE + Nagios plugins) on Ubuntu, you need to follow the document below:

https://assets.nagios.com/downloads/nag ... _Agent.pdf