Page 1 of 2

Nagios XI not saving monitors?

Posted: Wed Jun 13, 2018 10:48 am
by vornado
Using Nagios XI 5.4.13 on VMware vSphere.

I used the Website URL configuration wizard to create a monitor. After doing this, I expected the 'Up' count in the Host Status Summary on the Home Dashboard page to increase by 1, just like it did in a youtube video I watched. It did not increment. The Host Status page does not show the host I created the monitor for. What have I missed?

Steve

Re: Nagios XI not saving monitors?

Posted: Wed Jun 13, 2018 11:29 am
by scottwilkerson
Did the configuration apply successfully?

If you had the host already being monitored the host coun't wouldn't increase, just the service count.

Does the new service show up in the Configure -> CCM -> Services ?

Re: Nagios XI not saving monitors?

Posted: Wed Jun 13, 2018 4:06 pm
by vornado
I apologize -- when I posted my more detailed message, the forum apparently had logged me out and my message disappeared. My second attempt was kind of a rush job.

When I click 'Finish', I get 'Configuration applied successfully.' and 'Your configuration changes have been successfully applied and the monitoring engine was restarted.' and 'Configuration Request Successful'

When I click 'View Status Details' on the same page, the page it goes to says 'No matching services found - showing matching hosts instead.'

There was only 1 host already being monitored -- localhost -- and that was done by the install, I assume.

I do see the services on the CCM page, but there doesn't seem to be any indication that the monitors are running every 5 minutes as specified -- only a date and time when the entry was modified. Clicking on a service link takes me to a host management page with various settings.

Re: Nagios XI not saving monitors?

Posted: Wed Jun 13, 2018 4:42 pm
by scottwilkerson
Does the new service show up in the Configure -> CCM -> Services ?

Re: Nagios XI not saving monitors?

Posted: Thu Jun 14, 2018 12:02 pm
by vornado
Yes, the new services show up in CCM. However, the only services that appear when I click on the number 12 in the Service Status Summary on the home page are services related to localhost. I added the BBMap dashlet to a dashboard but it also only showed localhost.

Re: Nagios XI not saving monitors?

Posted: Thu Jun 14, 2018 1:36 pm
by vornado
When I clicked on the red indicator on the top status bar, it revealed an error with the backend database. As an online solution suggested, I deleted a file and restarted the ndo2db service and the indicator turned green. After that, there was a change in the summary counts, although it's showing that the new hosts are down when I know they aren't.

I have attached a picture showing the down hosts. Since the status is 'Ok' and there is a response time under Status Information, I'm not sure why they're being shown as down.

What do I have to do to get these hosts out of 'Unhandled'?

Re: Nagios XI not saving monitors?

Posted: Thu Jun 14, 2018 1:41 pm
by scottwilkerson
Click on one of the hosts so we can see the output for that particular host

Re: Nagios XI not saving monitors?

Posted: Fri Jun 15, 2018 10:42 am
by vornado
See attached. Service status shows list of 'Down' hosts (all of the new hosts that I added), although status is 'OK'. PING from a Windows command window shows that the hosts are NOT down. However, if I try to ping using the host name, I get name or service not known. If I ping the ip address, ping works fine.

Oddly enough, if I add an entry for this server in /etc/hosts on the nagios server, then it is reported as 'UP'. I don't believe this is how your product is supposed to work, though.

Code: Select all

10.0.11.7   dcoqa.ibsepm.com
Probably a related problem, smtp test email did not work when I used the name of the mail server but it did work with the IP address.

Re: Nagios XI not saving monitors?

Posted: Fri Jun 15, 2018 2:27 pm
by tgriep
From what you are describing, it sounds like the Nagios server is not setup to resolve the Hostnames using your DNS servers.
You would have to edit the /etc/resolve.conf file and add your DNS server settings in it and then it should resolve the IP addresses.
See these links for more details if needed.
https://linux.die.net/man/5/resolv.conf
https://www.centos.org/docs/5/html/5.1/ ... files.html

Re: Nagios XI not saving monitors?

Posted: Mon Jun 18, 2018 2:55 pm
by vornado
Thanks -- I copied resolv.conf from another Linux server and that seemed to allow me to use names instead of IP addresses.

I'm having new issues, but I'll open a new topic for those.

Thanks for your help.

Steve