I cant add hosts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
alexbani
Posts: 2
Joined: Thu Oct 25, 2018 1:19 pm

I cant add hosts

Post by alexbani »

Hello,

I tried to add the host with the automatic discovery, and it foundl around 14 devices, which i want to monitor at least 10.

But when i want to view the host, i only get to see my local.host host, which is the Pc where i installed Nagios. Then i tryed to do it "manually" with the wizard and with the networks it appears as if added the host succesfully but i cant see the hosts on my views. Then i tryed to manually wizard a windows server and at the end i got the following mistake.

"CONFIGURATION VERIFICATION FAILED"

I ping all my devices and I can see them without a problem. I just cant monitor any of them.

Help please. Can you help us remotely?
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: I cant add hosts

Post by npolovenko »

Hello, @alexbani. So you ran the autodiscovery wizard against 14 devices, but they're not showing up in the host status dashboard?

Please run the following command and show me the output:
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
To schedule a remote session you'd need to open a support ticket here:
https://support.nagios.com/tickets
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
alexbani
Posts: 2
Joined: Thu Oct 25, 2018 1:19 pm

Re: I cant add hosts

Post by alexbani »

Exactly, i ran the autodiscovery and it found 14 devices, which i cant view on my Dashboard, only on my core configure manger. But cant get to monitor anything but my own host. I have the 50 node licence.

I was thinking i cant just reach them, but then how can i see them when i run the autodiscovery?

I will attached a print screen of the command you just told me.
You do not have the required permissions to view the files attached to this post.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: I cant add hosts

Post by npolovenko »

@alexbani, Nagios detected that there are errors in your configuration files and that's why new entries were not written out during the Apply Configuration.
To fix the configuration issues, in XI web interface please go to Configure -> Core Configurations Manager, then click on Tools -> Config File Management in the left column. Then perform the following actions in order:
1)Write
2)Delete
3)Write
4)Verify

At this point, you'll see the error message -> Invalid max_check_attempts value for host 'prueba host'. Open the config file /usr/local/nagios/etc/hosts/prueba host.cfg on the line 16 and fix the error. After that repeat all 4 steps again and if you see other errors you should fix them.

PS: Config files should not have spaces in them, like in "prueba host.cfg". I suggest using a dash or underscore instead.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked