Page 1 of 1

Not all hosts accessible through extinfo.cgi

Posted: Thu May 13, 2021 8:59 am
by rhassing
I have a nagios core 4.4.6 installation.

If I login the webserver as either admin or rhg (both users in my htpasswd file), I only see a limited number of hosts (I see only 13 hosts and 114 services).

This is my config check:

Code: Select all

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 512 services.
	Checked 64 hosts.
	Checked 17 host groups.
	Checked 3 service groups.
	Checked 5 contacts.
	Checked 7 contact groups.
	Checked 153 commands.
	Checked 9 time periods.
	Checked 0 host escalations.
	Checked 0 service escalations.
Checking for circular paths...
	Checked 64 hosts
	Checked 0 service dependencies
	Checked 0 host dependencies
	Checked 9 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
In cgi.cfg I have the following:

Code: Select all

main_config_file=/etc/nagios/nagios.cfg
physical_html_path=/usr/share/nagios/html
url_html_path=/nagios
show_context_help=0
use_pending_states=1
use_authentication=1
use_ssl_authentication=0
authorized_for_system_information=*
authorized_for_configuration_information=*
authorized_for_system_commands=*
authorized_for_all_services=*
authorized_for_all_hosts=*
authorized_for_all_service_commands=*
authorized_for_all_host_commands=*
default_statuswrl_layout=4
ping_syntax=/bin/ping -n -U -c 5 $HOSTADDRESS$
refresh_rate=90
result_limit=100
escape_html_tags=1
action_url_target=_blank
notes_url_target=_blank
lock_author_names=1
navbar_search_for_addresses=1
navbar_search_for_aliases=1
In my nagios webpage I can see for example host CLOUD-SW01, but not CLOUD-SW02.
The hosts config files for both hosts are identical, except for the host_name, display_name and address.

If I open /nagios/cgi-bin/extinfo.cgi?type=1&host=CLOUD-SW01
I will get the information on the host

If I open /nagios/cgi-bin/extinfo.cgi?type=1&host=CLOUD-SW02
I get "It appears as though you do not have permission to view information for this host..."

If I open a Thruk webpage with a livestatus backend to nagios, I see all 64 hosts and all their configured services.

I'm so confused and double checked everything as far as I know.