Nagios XI installation on Windows doesn't allocate an ipaddr

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
AJVee
Posts: 8
Joined: Mon Jun 06, 2016 11:11 am

Nagios XI installation on Windows doesn't allocate an ipaddr

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

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

Post 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.
Former Nagios employee
AJVee
Posts: 8
Joined: Mon Jun 06, 2016 11:11 am

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

Post 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
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

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

Post by eloyd »

What hypervisor are you using?
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
AJVee
Posts: 8
Joined: Mon Jun 06, 2016 11:11 am

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

Post 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
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

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

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
AJVee
Posts: 8
Joined: Mon Jun 06, 2016 11:11 am

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

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
AJVee
Posts: 8
Joined: Mon Jun 06, 2016 11:11 am

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

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked