I am not able to the metric on icinga2 UI & when i tried to validate the master icinga2 configs i see the below error… [2020-03-19 20:01:43 -0600] warning/ApplyRule: Apply rule 'checkcpu' (in /etc/icinga2/zones.d/master/global-templates/windows-services.conf: 72:1-72:24) for type 'Service' does not match an ywhere!
Sample host file… Can you please advise me whats wrong i did?
Have you run the Setup-Wizard for the Framework?
It looks to me it is only partial intalled.
Use-Icinga;
Start-IcingaAgentInstallWizard;
The wizard will guide you through the entire installation and configuration. Afterwards everything should be working properly.
Im just realising that the documentation is lacking this information basicly. I will improve this shortly!
What the Install Wizard will do is ask you plenty of different questions on how your system should be configured (Icinga 2 related) and where to install Plugins / the Service from.
I’m wondering where the problem is then. Is the check not deployed to Icinga 2?
In general you should see the checkcpu service if it is assigned to the host. Does it show up there and if yes, which results are you receiving?
The Framework will simply provide a source and foundation for Icinga Plugins. They are all executed through the Icinga 2 Agent on the system or - if you want to any reason - by the NSClient++.
The background daemon will simply allow you to register checks and frequently execute them to provide metrics over time (as NSClient++ is doing). As of yet, the Framework is not capable to send data back to Icinga 2 directly.
you still require either Icinga 2 or the NSClient++ to actually execute the check.
So basicly im wondering, why your check-cpu Check-Command is not transfered to the Agent. Is the service not listed at all on this host?
actually check-cpu is not showing on Icinga2 UI Yeah service is not listed at all on the host in ICinga2 UI… Do you think i missed something in configurations?
but you use host.endpoint which does not exists? maybe you meant host.vars.client_endpoint and host.vars.powershell_framework is also not set on the host - so the service doesn’t get applied to the host:
On check execution -> its clearly shows its executing on remote box… when manually login into remote machine… ran the commands, I am able to see the cpu information