Problems setting up initial scan after install

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Problems setting up initial scan after install

Post by rkennedy »

bwallace wrote:Thanks for running the nmap scan manually. What network configuration are you using in your guest - bridged, NAT, host-only, some other custom? We'll need to know this. Also, from the Nagios server, are you able to ping a host or two on that subnet?
Also - can you show us example of pinging an IP in that subnet 190.200.0.0/24? If ICMP traffic isn't blocked then the nmap should be returning results.

I was able to run an nmap, with different results so I believe something might be up with your network. Are you sure it's not 192.200.0.0/24? Here is what I found -

Code: Select all

[root@localhost ~]# nmap 190.200.0.0/24

Starting Nmap 6.40 ( http://nmap.org ) at 2016-06-13 17:04 EDT
Nmap scan report for bol-01-lo66.bras.cantv.net (190.200.0.1)
Host is up (0.15s latency).
Not shown: 997 closed ports
PORT    STATE    SERVICE
22/tcp  filtered ssh
23/tcp  filtered telnet
445/tcp filtered microsoft-ds

Nmap scan report for 190.200.0.23
Host is up (0.18s latency).
All 1000 scanned ports on 190.200.0.23 are closed (845) or filtered (155)

Nmap done: 256 IP addresses (2 hosts up) scanned in 34.97 seconds
Former Nagios Employee
mdifiglia
Posts: 15
Joined: Mon Jun 13, 2016 10:59 am

Re: Problems setting up initial scan after install

Post by mdifiglia »

Hello the results are the same with adding the -PN to nmap. The guest server is host-only on the same network that we are scanning with the Nagios database also on the same server and no firewalls to block internal traffic. This is the OVA out of the box install with me only having to static the IP and enter some DNS entries to get onto the Nagios splash screen. Everything else seems to be working great. I actually did the OVA install twice because after the first time I did the recommended password changes and I thought that I may have messed something up. So this last install has all the default passwords at this time.

It seems like it could be more database related since nothing gets populated into the database. I'm not very familiar with MySQL, but I did the check and it is running. How can I make sure that Nagios has access to populate the database?

By the way thank you so much for all your help so far it is appreciated.
mdifiglia
Posts: 15
Joined: Mon Jun 13, 2016 10:59 am

Re: Problems setting up initial scan after install

Post by mdifiglia »

Capture.JPG
I realize our subnet is not RFC compliant and that is something we will be working on in the next few months.
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Problems setting up initial scan after install

Post by rkennedy »

Does your machine have routes to the 190.200.0.0/24 network locally? What you posted is in a completely different network.

What is the output of route -n?

Check the SQL credentials with these 3 commands -

Code: Select all

mysql -uroot -pnagiosxi
mysql -unagiosxi -pn@gweb
mysql -undoutils -pn@gweb
Former Nagios Employee
mdifiglia
Posts: 15
Joined: Mon Jun 13, 2016 10:59 am

Re: Problems setting up initial scan after install

Post by mdifiglia »

After correcting my IP's for the Scan Target's under Auto-Discovery Jobs I have devices found.
Auto-Discovery.JPG
So that part is working OK. I still can't get configuration wizard jobs to complete and populate the database. I ran the SQL commands to confirm the passwords and they completed OK.
SQL.JPG
I thought using an OVA file would make this setup a slam dunk. I don't understand why this is going so wrong. Very frustrating :cry:
You do not have the required permissions to view the files attached to this post.
mdifiglia
Posts: 15
Joined: Mon Jun 13, 2016 10:59 am

Re: Problems setting up initial scan after install

Post by mdifiglia »

Good news to report!!!!!! After pulling my hair out and struggling with the OVA 5.2.8 install I saw that a newer version of Nagios 5.2.9 was out and there was a new OVA for it. So I started from scratch deployed the 5.2.9 and it was up and running in 5 minutes. I'm not sure what was the issue with the 5.2.8 OVA, but it caused me to lose sleep and what hair I have left on my head.

Thank you so much bwallace and rkennedy for your help and patience with me. Please let anyone know that the 5.2.8 OVA probably had a bug!!!!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Problems setting up initial scan after install

Post by rkennedy »

Oh wow. I brought it up for discussion that there appears to be issues for 5.2.8. Could you provide specifics on what you were encountering?

On a good note - glad to hear you got it working with 5.2.9! :D
Former Nagios Employee
mdifiglia
Posts: 15
Joined: Mon Jun 13, 2016 10:59 am

Re: Problems setting up initial scan after install

Post by mdifiglia »

Everything setup great on 5.2.8 except when I tried to use the configuration wizard and tried monitoring anything (websites, servers, switches etc..) it wouldn't work. It would just keep scrolling and scrolling. When I tried it on the 5.2.9 install it worked in seconds. Seemed like an issue with the MySQL database not letting it populate anything. the Auto Discovery jobs worked fine, but I don't think those are stored in the database since they are only csv files.

My first installation of 5.2.8 I did the basics of static IP, DNS record for Nagios splash screen. I didn't try any configuration jobs since it looked like it was working. I then followed best practices and changed all the default passwords. I handed the server over to my network team for them to start setting it up and they informed me it didn't work. I double checked everything and re-entered the passwords and it still didn't work. So after a few days of frustration I deleted the server and started from scratch leaving the default passwords in place. It still wouldn't work. That is when I started my post and tried everything that was advised to me to test. Late last night I saw that an updated version was available. So I gave it a try this morning doing everything the same as before and like magic it worked great!!!
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Problems setting up initial scan after install

Post by mcapra »

That is very peculiar. The good news is things seem functional now!

Is it alright if we lock this thread?
Former Nagios employee
https://www.mcapra.com/
mdifiglia
Posts: 15
Joined: Mon Jun 13, 2016 10:59 am

Re: Problems setting up initial scan after install

Post by mdifiglia »

Yes please do, thank you.
Locked