Configured server not displayed in web interface

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Post Reply
MxR57
Posts: 2
Joined: Mon Apr 15, 2024 2:16 pm

Configured server not displayed in web interface

Post by MxR57 »

Greetings,

This is my first time in forum and posting a question, so I apologies in advance if I am not following the forum protocols for posting questions.

Using Nagios Core 4.4.6, once a day we rebuild server_hosts.cfg that includes all the existing operational/active servers. We also rebuild server_hostgroups.cfg based on the properties of the servers in server_hosts.cfg. Finally, we restart Nagios that will use the newly build config files. However, when we bring up the web api, 8 of the newly configured servers are not displayed. They are in both server_hosts.cfg and server_hostgroups.cfg files.

Thanks in advance for helping me solve this.
bbahn
Posts: 118
Joined: Thu Jan 12, 2023 5:42 pm

Re: Configured server not displayed in web interface

Post by bbahn »

Hello MxR57,

Can you run

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
to see if Nagios Core thinks your configuration is good?

You can also check the permissions of your configuration file with ls -l and check /var/log/nagios/nagios.log to see if Nagios Core is running into any errors. It may also contain other diagnostic information that could help.
April: Actively advancing awesome answers with ardent alliteration, aptly addressing all ambiguities. Amplify your acumen and avail our amicable assistance. Eagerly awaiting your astute assessments of our advice.
MxR57
Posts: 2
Joined: Mon Apr 15, 2024 2:16 pm

Re: Configured server not displayed in web interface

Post by MxR57 »

Thanks for your reply. Here is verifying the nagios.cfg:

sh-4.2$ /usr/sbin/nagios -v /etc/nagios/nagios.cfg

Nagios Core 4.4.6
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2020-04-28
License: GPL

Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
Checked 32874 services.
Checked 2128 hosts.
Checked 83 host groups.
Checked 14 service groups.
Checked 8 contacts.
Checked 8 contact groups.
Checked 67 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 2128 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check


I am not sure what you mean about Nagios running! From GUI API I have:

Nagios Process Information
Last Updated: Tue Apr 23 19:18:56 UTC 2024
Updated every 90 seconds
Nagios® Core™ 4.4.6 - www.nagios.org
Logged in as nagiosadmin

and

Program Version: 4.4.6
Program Start Time: 04-23-2024 12:17:08
Total Running Time: 0d 7h 1m 48s
Last Log File Rotation: N/A
Nagios PID 10

and I see all the servers in the GUI except the new ones that were added.
Post Reply