Having this warning

warning/ApplyRule: Apply rule ‘Memory Usage’ (in /et c/icinga2/conf.d/services.conf: 107:1-107:28) for type ‘Service’ does not match anywhere!
[2025-02-13 05:44:38 +0000] warning/ApplyRule: Apply rule ‘Disk Usage C’ (in /et c/icinga2/conf.d/services.conf: 115:1-115:28) for type ‘Service’ does not match showing this warning

can anybody help me please

Hi @Wisal,
This Warning simply states, that one of your Service Apply Rules does not match any Host and is therefore not used at all.
That Warning serves only as a hint that a) there is useless configuration which takes additional time during Relad or b) the Apply Rule is “wrong”, meaning, it should apply but does not due to the match expression in the rule.

If you would expect a Service Disk Usage C somewhere but it does not exist b is probably the case.

2 Likes

thank you so much @lorenz