# defaults for cli-nagios module
#
[cli-nagios]
  server_address			# empty means all interfaces
  server_port		5666
  nrpe_user		nagios
  nrpe_group		nagios
  allowed_hosts		undef		# you need to define this! only one IPs allowed
  debug			0
  command_timeout	60
  connection_timeout	300
  autocheckdisk_parms	10% 5%

# standardized commands
#
# be carefull on choosing entries names in the sections
# below: each entry with name NAME in the 'cli-nagios-check...'
# sections will create a command named SECT_NAME, where SECT
# is the relevant part of section (ie: disk, proc)

# standard commands, disks (partitions)
#
# most of partitions checks comands are automatically created
# scanning /etc/fstab, using cli-nagios.autocheckdisk_parms
# as thresold parameters; in this section you can override
# the parms, or add custom checks
#
[cli-nagios-checkdisk]
  # examples:
  #mypartition		25% 15% /mnt/mypart
  #mypartition2		::cli-nagios.autocheckdisk_parms:: /

# standard commands, processes
#
# procs uses 'check_proc_regex' custom plugin, that scans
# 'ps' output against regular expression passed as arg;
# you can add -c and -w arguments to override plugin defaults,
# that are "at least one, and only one instance running" (-c 1:1)
#
# note that if you don't need to use regexp on the FULL ps output
# but only on executable name, or you don't need regexp at all,
# is better to use the standard 'check_progs' plugin (see cron
# example in the cli-nagios-command section)
#
# the sshd entry is provieded as example; note the quotes around
# the regexp
#

# check processes using regexp
#
# name	'regexp' -c range [-w range]
#
[cli-nagios-checkproc]
  sshd		'sshd -D' -c 1:1


# check disks space
#
# name  warn% crit% mountpoint
#
[cli-nagios-checkdisk]


# check disks smart status
#
# name  device
#
[cli-nagios-checksmart]



# basic commands
#
[cli-nagios-command]
  users		check_users -w 5 -c 10
  load		check_load -w 15,10,5 -c 30,25,20
  swap		check_swap -w 40% -c 20% -a
  proc_zombie	check_procs -w 5 -c 10 -s Z
  proc_total	check_procs -w 190 -c 200
  proc_crond	check_procs -w 1: -c 1:5 -C cron
  ram		check_ram -w 10 -c 5
  kubackup	check_kubackup -c 168 -w 96
