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;;

If I configure the task via director the Return is:

The Service is configured via the director as folow:

## zones.d/JIWNUC01/services.conf

object Service "Invoke-IcingaCheckScheduledTask" { host_name = "[](" import "[Invoke-IcingaCheckScheduledTask](" vars.IcingaCheckScheduledTask_Array_TaskName = [ "alvinsqldbbackup" ] }


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

Anyone able to help? :slight_smile: