This is a new install and I am new in general to icinga2.
The localhost status and metrics no longer appearing on icingaWeb2. I must have misconfigured something because the localhost stats used to appear.
output below:
- cat /etc/icinga2/conf.d/hosts.conf
- icinga2 daemon -C
- icinga state and version details
:/etc# cat /etc/icinga2/conf.d/hosts.conf
/*
* Host definitions with object attributes
* used for apply rules for Service, Notification,
* Dependency and ScheduledDowntime objects.
*
* Tip: Use `icinga2 object list --type Host` to
* list all host objects after running
* configuration validation (`icinga2 daemon -C`).
*/
/*
* This is an example host based on your
* local host's FQDN. Specify the NodeName
* constant in `constants.conf` or use your
* own description, e.g. "db-host-1".
*/
object Host NodeName {
/* Import the default host template defined in `templates.conf`. */
import "generic-host"
/* Specify the address attributes for checks e.g. `ssh` or `http`. */
address = "127.0.0.1"
address6 = "::1"
/* Set custom variable `os` for hostgroup assignment in `groups.conf`. */
vars.os = "Linux"
/* Define http vhost attributes for service apply rules in `services.conf`. */
vars.http_vhosts["http"] = {
http_uri = "/"
}
/* Uncomment if you've sucessfully installed Icinga Web 2. */
vars.http_vhosts["Icinga Web 2"] = {
http_uri = "/icingaweb2"
}
/* Define disks and attributes for service apply rules in `services.conf`. */
vars.disks["disk"] = {
/* No parameters. */
}
vars.disks["disk /"] = {
disk_partitions = "/"
}
/* Define notification mail attributes for notification apply rules in `notifications.conf`. */
vars.notification["mail"] = {
/* The UserGroup `icingaadmins` is defined in `users.conf`. */
groups = [ "icingaadmins" ]
}
}
# icinga2 daemon -C
[2022-03-04 18:13:56 +0000] information/cli: Icinga application loader (version: r2.13.2-1)
[2022-03-04 18:13:56 +0000] information/cli: Loading configuration file(s).
[2022-03-04 18:13:56 +0000] information/ConfigItem: Committing config item(s).
[2022-03-04 18:13:56 +0000] information/ApiListener: My API identity: icinga.enabled.home
[2022-03-04 18:13:56 +0000] information/ConfigItem: Instantiated 1 GraphiteWriter.
[2022-03-04 18:13:56 +0000] information/ConfigItem: Instantiated 1 IcingaApplication.
[2022-03-04 18:13:56 +0000] information/ConfigItem: Instantiated 1 FileLogger.
[2022-03-04 18:13:56 +0000] information/ConfigItem: Instantiated 1 IcingaDB.
[2022-03-04 18:13:56 +0000] information/ConfigItem: Instantiated 1 CheckerComponent.
[2022-03-04 18:13:56 +0000] information/ConfigItem: Instantiated 1 ApiListener.
[2022-03-04 18:13:56 +0000] information/ConfigItem: Instantiated 1 IdoMysqlConnection.
[2022-03-04 18:13:56 +0000] information/ConfigItem: Instantiated 3 Zones.
[2022-03-04 18:13:56 +0000] information/ConfigItem: Instantiated 1 Endpoint.
[2022-03-04 18:13:56 +0000] information/ConfigItem: Instantiated 2 ApiUsers.
[2022-03-04 18:13:56 +0000] information/ConfigItem: Instantiated 244 CheckCommands.
[2022-03-04 18:13:56 +0000] information/ConfigItem: Instantiated 1 NotificationComponent.
[2022-03-04 18:13:56 +0000] information/ScriptGlobal: Dumping variables to file '/var/cache/icinga2/icinga2.vars'
[2022-03-04 18:13:56 +0000] information/cli: Finished validating the configuration file(s).
firefox 97.0.1 on OSX
icinga and icinga web running on ubuntu 20.04
Icinga Web 2 Version
2.9.5
Git commit
053971c99dc1a4510beb64a888ea695cc14032dc
PHP Version
8.0.16
Git commit date
2021-11-18
:~$ icinga2 --version
[2022-03-03 04:41:35 +0000] warning/Application: Failed adjust resource limit for number of processes (RLIMIT_NPROC) with error "Operation not permitted"
[2022-03-03 04:41:35 +0000] warning/Application: Failed adjust resource limit for number of processes (RLIMIT_NPROC) with error "Operation not permitted"
icinga2 - The Icinga 2 network monitoring daemon (version: r2.13.2-1)
Copyright (c) 2012-2022 Icinga GmbH (https://icinga.com/)
License GPLv2+: GNU GPL version 2 or later <https://gnu.org/licenses/gpl2.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
System information:
Platform: Ubuntu
Platform version: 20.04.4 LTS (Focal Fossa)
Kernel: Linux
Kernel version: 5.4.0-100-generic
Architecture: x86_64
Build information:
Compiler: GNU 9.3.0
Build host: runner-hh8q3bz2-project-298-concurrent-0
OpenSSL version: OpenSSL 1.1.1f 31 Mar 2020
Application information:
General paths:
Config directory: /etc/icinga2
Data directory: /var/lib/icinga2
Log directory: /var/log/icinga2
Cache directory: /var/cache/icinga2
Spool directory: /var/spool/icinga2
Run directory: /run/icinga2
Old paths (deprecated):
Installation root: /usr
Sysconf directory: /etc
Run directory (base): /run
Local state directory: /var
Internal paths:
Package data directory: /usr/share/icinga2
State path: /var/lib/icinga2/icinga2.state
Modified attributes path: /var/lib/icinga2/modified-attributes.conf
Objects path: /var/cache/icinga2/icinga2.debug
Vars path: /var/cache/icinga2/icinga2.vars
PID path: /run/icinga2/icinga2.pid
:~$ php --version
PHP 8.0.16 (cli) (built: Feb 21 2022 14:42:00) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.16, Copyright (c) Zend Technologies
with Zend OPcache v8.0.16, Copyright (c), by Zend Technologies
:~$