Invoke-IcingaCheckScheduledTask [UNKNOWN] Unknown Tasks /Task not found

Hi Guys,

I’m facing Problems with the “Invoke-IcingaCheckScheduledTask” command on my windows 10 machine.
I can’t get it to work with a specific ScheduledTask to monitor.

When I Run the command on my machine:
Invoke-IcingaCheckScheduledTask -TaskName alvinsqldbbackup

I get the Correct output.:

[OK] Scheduled Tasks
| 'alvinsqldbbackup_tasks'=4;;
0

If I configure the task via director the Return is:
grafik

The Service is configured via the director as folow:

## zones.d/JIWNUC01/services.conf

object Service "Invoke-IcingaCheckScheduledTask" { host_name = "[JIWNUC01.kn.turmstrasse](https://icinga.johner-institut.de/icingaweb2/director/host?name=JIWNUC01.kn.turmstrasse)" import "[Invoke-IcingaCheckScheduledTask](https://icinga.johner-institut.de/icingaweb2/director/service?name=Invoke-IcingaCheckScheduledTask)" vars.IcingaCheckScheduledTask_Array_TaskName = [ "alvinsqldbbackup" ] }


zones.d/director-global/service_templates.conf

template Service "Invoke-IcingaCheckScheduledTask" {
    check_command = "Invoke-IcingaCheckScheduledTask"
}


Anyone able to help? :slight_smile: