Global-template sample

This forum was archived to /woltlab and is now in read-only mode.
  • Hi

    I need to write a Global-Template for swap & load please tell me how to write it. below i wrote a sample one [i need like below one]


    global-templates


    template Host "linux-box" {


    check_period = "24x7"

    check_interval = 2m

    retry_interval = 1m

    max_check_attempts = 5

    check_command = "hostalive"

    }


    thanks

  • Hi Wolfgang

    Thanks for replying faster. I saw this before but i'm newer for icinga2, my enviroment is master / satellite / hosts, recently i installed "Grafana" for graph. The issue is Master server it's picking details OK but client details not picking, gets only "global-template" details. Then i think if create a monitoring record in global-template this issue can be solve. That is the reason i'm requesting a sample codes for above checkers, Could you please past sample code after that i can change according to that


    global-templates


    template Host "linux-box" {


    check_period = "24x7"

    check_interval = 2m

    retry_interval = 1m

    max_check_attempts = 5

    check_command = "hostalive"

    }


    If you can please past a sample codes for check_swap or check_load.


    Thanks