Systemd check failing on CentOS 8

I’m using a systemd check located here (GitHub - patrikskrivanek/icinga2-check_systemd_service: Icinga2 exchange plugin for monitoring systemd services.). Below are my configs. What I’m seeing is that on the CentOS 7 servers, the check is working normally. On CentOS 8, I’m getting “ERROR: service gitlab-runner doesn’t exist”. What am I missing?

template CheckCommand "systemd-service" {
    import "plugin-check-command"
    command = [ PluginDir + "/check_systemd_service" ]
    arguments += {
        "--service_name" = {
            description = "Name of systemd service for check"
            order = 1
            repeat_key = false
            required = true
            skip_key = true
            value = "$systemd_service$"
        }
    }
}

object CheckCommand "gitlab-runner-service" {
    import "plugin-check-command"
    import "systemd-service"

    arguments += {
        "--service_name" = {
            description = "Name of systemd service for check"
            order = 1
            required = true
            skip_key = true
            value = "gitlab-runner"
        }
    }
}

apply Service "gitlab-runner-service" {
    import "linux-services"

    check_command = "gitlab-runner-service"
    assign where match("*runner*", host.name)

    import DirectorOverrideTemplate
}

Some additional details. After checking the selinux attributes of the command file are correct. I added a couple echo statements into the script to output the hostname, to make sure that it’s running on the endpoint. Then added this echo statement:

echo `systemctl list-units --type=service | grep gitlab`

The error I see in the output is the following. So it seems like selinux might be killing the script.

<Timeout exceeded.><Terminated by signal 9 (Killed).>

I was able to solve by running with sudo