No WARN/CRIT thresholds when using ifw-api

Hi guys,

we are using Icinga for Windows for a while now and works very well for us !
Lately I have enabled the communication between the Icinga master and the IfW clients directly via API calls.

What I really liked, was the performance, execution of checks was much faster.

But just today I realized, that I can no longer set warning/critical thresholds for checks in Icinga Director - they are ignored.

I am using for example the “Invoke-IcingaCheckCPU” command and have a service template where I set the thresholds. But I am not able to see this variables in the curl command and they just do not work.

I have switched back by no longer loading “ifw-api” in the “Powershell Base” command and thresholds are working again.

Can you tell me what I have missed?

Best regards
Volke

This is my system:

Give as much information as you can, e.g.

  • Icinga for Windows output (Show-Icinga)

PS H:> Show-Icinga
Icinga for Windows environment:

Environment configuration:

PowerShell Root => C:\Program Files\WindowsPowerShell\Modules
Icinga for Windows Service Path => C:\Program Files\icinga-framework-service
Icinga for Windows Service User => NT Authority\NetworkService
Icinga for Windows Service Pid => 6072
Icinga for Windows JEA Pid =>
Icinga Agent Path => C:\Program Files\ICINGA2
Icinga Agent User => NT AUTHORITY\System
Defined Default User => NT AUTHORITY\System
Icinga Managed User => False
PowerShell Version => 5.1.17763.6530
Operating System => Microsoft Windows Server 2019 Standard
Operating System Version => 10.0.17763
JEA Context =>
JEA Session File =>
Api Check Forwarder => True
Debug Mode => False

Icinga for Windows Certificate:

Issuer => CN=Icinga CA
Subject => CN=

List of configured background daemons on this system:

Start-IcingaWindowsRESTApi

No arguments defined

List of configured background service checks on this system:
=> Collect Metrics Over Time - Icinga for Windows

No background service checks configured

List of configured repositories on this system. The list order matches the apply order:

Icinga Stable Local

CloneSource =>
Enabled => True
LocalPath =>
Order => 0
RemotePath => http:///IcingaForWindows/stable/ifw.repo.json
UseSCP => False

Installed components on this system:

Component Version Available


agent 2.14.3 2.14.3
framework 1.12.3 1.12.3
plugins 1.12.0 1.12.0
service 1.2.0 1.2.0

Available versions flagged with “*” mean that this component is locked to this version
PS H:>

  • Version used (icinga2 --version)

icinga2 --version

icinga2 - The Icinga 2 network monitoring daemon (version: r2.14.3-1)

Copyright (c) 2012-2024 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: Rocky Linux
Platform version: 8.10 (Green Obsidian)
Kernel: Linux
Kernel version: 4.18.0-553.27.1.el8_10.x86_64
Architecture: x86_64

Build information:
Compiler: GNU 8.5.0
Build host: unknown
OpenSSL version: OpenSSL 1.1.1k FIPS 25 Mar 2021

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

  • Operating System and version
  • Enabled features (icinga2 feature list)

Disabled features: compatlog debuglog elasticsearch gelf influxdb journald opentsdb
Enabled features: api checker command graphite icingadb ido-mysql influxdb2 livestatus mainlog notification perfdata syslog

  • Icinga Web 2 version and modules (System - About):
    Icinga Web 2 Version 2.11.4

  • Config validation (icinga2 daemon -C) - all green

  • If you run multiple Icinga 2 instances, the zones.conf file (or icinga2 object list --type Endpoint and icinga2 object list --type Zone) from all affected nodes