Search code examples
pluginsubuntu-16.04icinga2

Icinga2 check_load plugin thresholds


I've recently installed Icinga2 on a bunch of Ubuntu LXC containers. I have a master node where you can log into icingaweb to check status.

However the load thresholds seem low and I cannot see how our even where you can adjust the parameters. May I ask for someone to point me in the right direction? Is this done on the master or the remote nodes? What's the file and where does it sit in the file structure?

I installed Icinga2 on Ubuntu 16.04 server from the Icinga2 PPA


Solution

  • Create a service definition for load in master:

    apply Service "load" {
        import "generic-service"
        check_command = "load"
        vars.load_wload1 = 5
        vars.load_wload5 = 4
        vars.load_wload15 = 3
        vars.load_cload1 = 10
        vars.load_cload5 = 6
        vars.load_cload15 = 4
        command_endpoint = host.address
        assign where host.name == "monitored client"
    }
    

    More info here