Changing timeout on default check_apt on localhost

There is a default check_apt on localhost in the “built-in” setup on a fresh install.

I need to extend the timeout-time to at least 20 seconds.

is it in /etc/icinga2/conf.d/apt.conf?

apply Service "apt" {
  import "generic-service"
  check_command = "apt"  
  assign where host.name == NodeName
}

put a variable vars.apt_timeout into the service object

apply Service "apt" {
  import "generic-service"
  check_command = "apt"  

  vars.apt_timeout = 20

  assign where host.name == NodeName
}
1 Like