<Component Thruk::Agents>
  <snclient>
    default_password = $USER5$
    check_nsc_web_extra_options = "-k -t 35"

    <disable network>
      enabled != true
      name    ~  ^(lo|.*Loopback)
    </disable>

    <disable drivesize>
      fstype  ~ ^(tracefs|cgroup|tmpfs|securityfs|debugfs|configfs|pstorefs|fusectl|cgroup2fs|bpf|efivarfs|sysfs|fuseblk|rpc_pipefs|nsfs|ramfs|binfmt_misc|nfs|devpts|mqueue|hugetlbfs)$
      drive   ~ ^(/run/|/dev|/boot/efi|/test|/sys|/proc)
      drive   =
      mounted = 0
    </disable>

    <service>
      name = httpd
      name = ntp
      host = ANY
    </service>

    <proc>
      name = snclient
      warn = 2
      crit = 2
    </proc>
    <proc>
      name = process %e %u
      match = httpd
      user = ANY
      host = ANY
      warn = 7:10
      crit = 5:20
    </proc>

    <extra_service_opts>
      service ~ ^net
      args    = warn='total > 1GB' crit='total > 1GB' filter='name != testpattern123'
    </extra_service_opts>

    <extra_service_checks>
      host    = ANY
      section = ANY
      tags    = ANY

      name    = ping  # the actual service description
      # add arbitrary naemon config attributes here as well
      check_command = check-host-alive!$HOSTADDRESS$
      first_notification_delay = 30
    </extra_service_checks>

    <exclude>
      service = zombie processes
    </exclude>

   # use custom inventory source for debugging and testing
   <datasource>
      host    = test
      command = cat 'var/tmp/%HOST%.json'
    </datasource>

  </snclient>
</Component>
