Hello community,
I’m starting deploying a new icinga2 installation with one Master server with Ubuntu 22.04 on GCP, I have added a new remote host for monitoring on ubuntu 22.04 with the icinga2 package with the icinga2 node wizard and creating the pki ticket, as this point everything seems ok, but I realized that for example de Load metric that I’m using the following service for every Linux-server
apply Service "load" {
import "generic-service"
check_command = "load"
/* Used by the ScheduledDowntime apply rule in `downtimes.conf`. */
// vars.backup_downtime = "02:00-03:00"
assign where host.vars.os == "Linux"
}
Also the metrics for the disk are from the NodeMaster, this is the value that icinga2web is reporting me
DISK OK - free space: / 19171 MB (77% inode=97%);
And the value from the df -h
root@itsglpi01:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 39G 5.9G 33G 16% /
devtmpfs 1.8G 0 1.8G 0% /dev
tmpfs 1.8G 0 1.8G 0% /dev/shm
tmpfs 367M 968K 366M 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 1.8G 0 1.8G 0% /sys/fs/cgroup
/dev/loop5 92M 92M 0 100% /snap/lxd/24061
/dev/sda15 105M 6.1M 99M 6% /boot/efi
/dev/loop10 56M 56M 0 100% /snap/core18/2721
/dev/loop11 54M 54M 0 100% /snap/snapd/18933
/dev/loop4 54M 54M 0 100% /snap/snapd/19122
/dev/loop8 64M 64M 0 100% /snap/core20/1879
/dev/loop0 336M 336M 0 100% /snap/google-cloud-cli/131
/dev/loop9 56M 56M 0 100% /snap/core18/2745
/dev/loop1 64M 64M 0 100% /snap/core20/1891
/dev/loop3 336M 336M 0 100% /snap/google-cloud-cli/133
tmpfs 367M 0 367M 0% /run/user/1001
Below you’ll find more info about my icinga2 installation and its configuration files
- Version used (
icinga2 --version
)
root@itsmonit01:/etc/icinga2/conf.d# icinga2 --version
icinga2 - The Icinga 2 network monitoring daemon (version: r2.13.7-1)
Copyright (c) 2012-2023 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: 22.04.2 LTS (Jammy Jellyfish)
Kernel: Linux
Kernel version: 5.19.0-1022-gcp
Architecture: x86_64
Build information:
Compiler: GNU 11.3.0
Build host: runner-hh8q3bz2-project-575-concurrent-0
OpenSSL version: OpenSSL 3.0.2 15 Mar 2022
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
- Enabled features (
icinga2 feature list
)
root@itsmonit01:/etc/icinga2/conf.d# icinga2 --version
icinga2 - The Icinga 2 network monitoring daemon (version: r2.13.7-1)
Copyright (c) 2012-2023 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: 22.04.2 LTS (Jammy Jellyfish)
Kernel: Linux
Kernel version: 5.19.0-1022-gcp
Architecture: x86_64
Build information:
Compiler: GNU 11.3.0
Build host: runner-hh8q3bz2-project-575-concurrent-0
OpenSSL version: OpenSSL 3.0.2 15 Mar 2022
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
- Icinga Web 2 version and modules (System - About)
Icinga Web 2 Version 2.11.4
Git commit 11453bfa92a70a44efbf7f966f5e7f27e9300a28
PHP Version 8.1.2-1ubuntu2.11
Git commit date 2023-01-26
- Config validation (
icinga2 daemon -C
)
root@itsmonit01:/etc/icinga2/conf.d# icinga2 daemon -C
[2023-05-21 19:00:29 +0000] information/cli: Icinga application loader (version: r2.13.7-1)
[2023-05-21 19:00:29 +0000] information/cli: Loading configuration file(s).
[2023-05-21 19:00:29 +0000] information/ConfigItem: Committing config item(s).
[2023-05-21 19:00:29 +0000] information/ApiListener: My API identity: itsmonit01.c.itonpremisetocloud.internal
[2023-05-21 19:00:29 +0000] warning/ApplyRule: Apply rule 'backup-downtime' (in /etc/icinga2/conf.d/downtimes.conf: 5:1-5:52) for type 'ScheduledDowntime' does not match anywhere!
[2023-05-21 19:00:29 +0000] warning/ApplyRule: Apply rule 'apt' (in /etc/icinga2/conf.d/apt.conf: 1:0-1:18) for type 'Service' does not match anywhere!
[2023-05-21 19:00:29 +0000] warning/ApplyRule: Apply rule 'icinga' (in /etc/icinga2/conf.d/services.conf: 75:1-75:22) for type 'Service' does not match anywhere!
[2023-05-21 19:00:29 +0000] warning/ApplyRule: Apply rule 'procs' (in /etc/icinga2/conf.d/services.conf: 94:1-94:21) for type 'Service' does not match anywhere!
[2023-05-21 19:00:29 +0000] warning/ApplyRule: Apply rule 'swap' (in /etc/icinga2/conf.d/services.conf: 102:1-102:20) for type 'Service' does not match anywhere!
[2023-05-21 19:00:29 +0000] warning/ApplyRule: Apply rule 'users' (in /etc/icinga2/conf.d/services.conf: 110:1-110:21) for type 'Service' does not match anywhere!
[2023-05-21 19:00:29 +0000] information/ConfigItem: Instantiated 15 Notifications.
[2023-05-21 19:00:29 +0000] information/ConfigItem: Instantiated 1 IcingaApplication.
[2023-05-21 19:00:29 +0000] information/ConfigItem: Instantiated 2 HostGroups.
[2023-05-21 19:00:29 +0000] information/ConfigItem: Instantiated 3 Hosts.
[2023-05-21 19:00:29 +0000] information/ConfigItem: Instantiated 1 FileLogger.
[2023-05-21 19:00:29 +0000] information/ConfigItem: Instantiated 4 Downtimes.
[2023-05-21 19:00:29 +0000] information/ConfigItem: Instantiated 1 IdoMysqlConnection.
[2023-05-21 19:00:29 +0000] information/ConfigItem: Instantiated 1 CheckerComponent.
[2023-05-21 19:00:29 +0000] information/ConfigItem: Instantiated 3 Zones.
[2023-05-21 19:00:29 +0000] information/ConfigItem: Instantiated 1 ExternalCommandListener.
[2023-05-21 19:00:29 +0000] information/ConfigItem: Instantiated 1 Endpoint.
[2023-05-21 19:00:29 +0000] information/ConfigItem: Instantiated 1 ApiUser.
[2023-05-21 19:00:29 +0000] information/ConfigItem: Instantiated 1 ApiListener.
[2023-05-21 19:00:29 +0000] information/ConfigItem: Instantiated 1 NotificationComponent.
[2023-05-21 19:00:29 +0000] information/ConfigItem: Instantiated 244 CheckCommands.
[2023-05-21 19:00:29 +0000] information/ConfigItem: Instantiated 1 UserGroup.
[2023-05-21 19:00:29 +0000] information/ConfigItem: Instantiated 3 ServiceGroups.
[2023-05-21 19:00:29 +0000] information/ConfigItem: Instantiated 3 TimePeriods.
[2023-05-21 19:00:29 +0000] information/ConfigItem: Instantiated 1 User.
[2023-05-21 19:00:29 +0000] information/ConfigItem: Instantiated 12 Services.
[2023-05-21 19:00:29 +0000] information/ConfigItem: Instantiated 2 NotificationCommands.
[2023-05-21 19:00:29 +0000] information/ScriptGlobal: Dumping variables to file '/var/cache/icinga2/icinga2.vars'
[2023-05-21 19:00:29 +0000] information/cli: Finished validating the configuration file(s).
Thanks and hope that community can help me with this