All very good questions and apologize for being generic in my initial post.
This is a new install of icingaweb2. The primary configuration is existing
hosts is configured to use Nagios; nrpe.cfg and plugins are already
established and looking to migrate the fleet of Linux servers to IcingaWeb.
I have already updated the nrpe.cfg to allow the host IP icinga is
installed on and that is the one host I am testing with.
Looks I see the issue now highlighed below, however, not sure where in the
installation documentation this is outlined to resolve.
*[root@bcv-devops-icinga icinga2]# icinga2 daemon -C*
information/cli: Icinga application loader (version: v2.6.3)
information/cli: Loading configuration file(s).
warning/ConfigCompiler: Cannot compile file
'/etc/icinga2/conf.d/host/baschisp02.conf': Error: Function call
'std::ifstream::open' for file '/etc/icinga2/conf.d/host/baschisp02.conf'
failed with error code 13, 'Permission denied'
(0) Compiling configuration file '/etc/icinga2/conf.d/host/baschisp02.conf'
information/ConfigItem: Committing config item(s).
information/ApiListener: My API identity: bcv-devops-icinga
warning/ApplyRule: Apply rule 'satellite-host' (in
/etc/icinga2/conf.d/satellite.conf: 29:1-29:41) for type 'Dependency' does
not match anywhere!
information/ConfigItem: Instantiated 1 ApiUser.
information/ConfigItem: Instantiated 1 ApiListener.
information/ConfigItem: Instantiated 2 Zones.
information/ConfigItem: Instantiated 1 FileLogger.
information/ConfigItem: Instantiated 2 Endpoints.
information/ConfigItem: Instantiated 12 Notifications.
information/ConfigItem: Instantiated 2 NotificationCommands.
information/ConfigItem: Instantiated 1 ScheduledDowntime.
information/ConfigItem: Instantiated 201 CheckCommands.
information/ConfigItem: Instantiated 1 Downtime.
information/ConfigItem: Instantiated 2 HostGroups.
information/ConfigItem: Instantiated 1 IcingaApplication.
information/ConfigItem: Instantiated 1 Host.
information/ConfigItem: Instantiated 1 User.
information/ConfigItem: Instantiated 1 UserGroup.
information/ConfigItem: Instantiated 3 TimePeriods.
information/ConfigItem: Instantiated 3 ServiceGroups.
information/ConfigItem: Instantiated 11 Services.
information/ConfigItem: Instantiated 1 ExternalCommandListener.
information/ConfigItem: Instantiated 1 CheckerComponent.
information/ConfigItem: Instantiated 1 IdoMysqlConnection.
information/ConfigItem: Instantiated 1 LivestatusListener.
information/ScriptGlobal: Dumping variables to file
'/var/cache/icinga2/icinga2.vars'
information/cli: Finished validating the configuration file(s).
*[root@bcv-devops-icinga icinga2]# icinga2 object list --type host*
Object 'bcv-devops-icinga' of type 'Host':
% declared in '/etc/icinga2/conf.d/hosts.conf', lines 18:1-18:20
* __name = "bcv-devops-icinga"
* action_url = ""
* address = "127.0.0.1"
% = modified in '/etc/icinga2/conf.d/hosts.conf', lines 23:3-23:23
* address6 = "::1"
% = modified in '/etc/icinga2/conf.d/hosts.conf', lines 24:3-24:18
* check_command = "hostalive"
% = modified in '/etc/icinga2/conf.d/templates.conf', lines 19:3-19:29
* check_interval = 60
% = modified in '/etc/icinga2/conf.d/templates.conf', lines 16:3-16:21
* check_period = ""
* check_timeout = null
* command_endpoint = ""
* display_name = "bcv-devops-icinga"
* enable_active_checks = true
* enable_event_handler = true
* enable_flapping = false
* enable_notifications = true
* enable_passive_checks = true
* enable_perfdata = true
* event_command = ""
* flapping_threshold = 30
* groups = [ ]
* icon_image = ""
* icon_image_alt = ""
* max_check_attempts = 3
% = modified in '/etc/icinga2/conf.d/templates.conf', lines 15:3-15:24
* name = "bcv-devops-icinga"
* notes = ""
* notes_url = ""
* package = "_etc"
* retry_interval = 30
% = modified in '/etc/icinga2/conf.d/templates.conf', lines 17:3-17:22
* templates = [ "bcv-devops-icinga", "generic-host" ]
% = modified in '/etc/icinga2/conf.d/hosts.conf', lines 18:1-18:20
% = modified in '/etc/icinga2/conf.d/templates.conf', lines 14:1-14:28
* type = "Host"
* vars
* disks
* disk
% = modified in '/etc/icinga2/conf.d/hosts.conf', lines 39:3-41:3
* disk /
% = modified in '/etc/icinga2/conf.d/hosts.conf', lines 42:3-44:3
* disk_partitions = "/"
* http_vhosts
* http
% = modified in '/etc/icinga2/conf.d/hosts.conf', lines 30:3-32:3
* http_uri = "/"
* notification
* mail
% = modified in '/etc/icinga2/conf.d/hosts.conf', lines 47:3-50:3
* groups = [ "icingaadmins" ]
* os = "Linux"
% = modified in '/etc/icinga2/conf.d/hosts.conf', lines 27:3-27:19
* volatile = false
* zone = ""
On Wed, Jul 19, 2017 at 10:34 AM, Antony Stone <
[email protected]> wrote:
> On Wednesday 19 July 2017 at 17:30:14, Garrett Pye wrote:
>
> > Little confused about why new hosts in /etc/icinga2/conf.d/ directory are
> > not showing up after restart.
>
> Are you saying that old hosts, which were there before, are still showing
> up,
> but *new* ones aren't?
>
> Or is this a new installation of Icinga2 and you're only just trying to get
> some hosts in there?
>
> > Does each host need its own .conf file or are
> > they supposed to be configured in the one hosts.conf file?
>
> Doesn't matter. You can put things in any files you like so long as they
> end
> in .conf
>
> > Disabled features: compatlog debuglog gelf graphite influxdb opentsdb
> > perfdata statusdata syslog
> > Enabled features: api checker command ido-mysql livestatus mainlog
> > notification
> >
> > What other information is needed to properly identify where or what the
> > issue is?
>
> 1. See if:
>
> icinga2 daemon -C
>
> shows any errors.
>
> 2. Take a look at the output of:
>
> icinga2 object list --type host
>
> and see if that gives you any clues.
>
> 3. If not, post here an example of one of your host definitions which isn't
> working, and we might have some ideas.
>
>
> Antony.
>
> --
> "I estimate there's a world market for about five computers."
>
> - Thomas J Watson, Chairman of IBM
>
> Please reply to the
> list;
> please *don't* CC
> me.
> _______________________________________________
> icinga-users mailing list
> [email protected]
> https://lists.icinga.org/mailman/listinfo/icinga-users
>
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users