Compare commits
5 Commits
d886ac18dc
...
50a727ba29
Author | SHA1 | Date |
---|---|---|
|
50a727ba29 | |
|
45eb6340ff | |
|
34c0b6fe01 | |
|
e84393e786 | |
|
f590db8bce |
|
@ -0,0 +1 @@
|
|||
*.swp
|
|
@ -1,40 +0,0 @@
|
|||
# COMMAND DEFINITIONS
|
||||
#
|
||||
# Command definitions that this daemon will run. Definitions
|
||||
# are in the following format:
|
||||
#
|
||||
# command[<command_name>]=<command_line>
|
||||
#
|
||||
# When the daemon receives a request to return the results of <command_name>
|
||||
# it will execute the command specified by the <command_line> argument.
|
||||
|
||||
# Below are some examples using static arguments:
|
||||
#
|
||||
# command[check_hda1]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /dev/hda1
|
||||
# command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20
|
||||
# command[check_total_procs]=/usr/lib/nagios/plugins/check_procs -w 150 -c 200
|
||||
# command[check_users]=/usr/lib/nagios/plugins/check_users -w 5 -c 10
|
||||
# command[check_zombie_procs]=/usr/lib/nagios/plugins/check_procs -w 5 -c 10 -s Z
|
||||
|
||||
# If you enable command argument processing (dont_blame_nrpe, above) you may
|
||||
# include variables in the command definition that will be substituted for the
|
||||
# values given by the client. Variables have the format $varname$, and are
|
||||
# compatible with NRPE or Nagios arguments of the form $ARGn$.
|
||||
#
|
||||
# Here are some examples using argument passing, with NRPE-compatible names:
|
||||
#
|
||||
# command[check_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
|
||||
# command[check_load]=/usr/lib/nagios/plugins/check_load -w $ARG1$ -c $ARG2$
|
||||
# command[check_procs]=/usr/lib/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$
|
||||
# command[check_users]=/usr/lib/nagios/plugins/check_users -w $ARG1$ -c $ARG2$
|
||||
#
|
||||
# And here are the same examples using arbitrary variable names:
|
||||
#
|
||||
# command[check_disk]=/usr/lib/nagios/plugins/check_disk -w $warn$ -c $crit$ -p $path$
|
||||
# command[check_load]=/usr/lib/nagios/plugins/check_load -w $warn$ -c $crit$
|
||||
# command[check_procs]=/usr/lib/nagios/plugins/check_procs -w $warn$ -c $crit$ -s $state$
|
||||
# command[check_users]=/usr/lib/nagios/plugins/check_users -w $warn$ -c $crit$
|
||||
|
||||
command[check_docker_container_status]=/usr/lib/nagios/plugins/check_docker --status running --containers $ARG1$
|
||||
command[check_docker_container_cpu]=/usr/lib/nagios/plugins/check_docker --cpu $ARG2$:$ARG3$ --containers $ARG1$
|
||||
command[check_docker_container_memory]=/usr/lib/nagios/plugins/check_docker --memory $ARG2$:$ARG3$:% --containers $ARG1$
|
|
@ -32,8 +32,9 @@
|
|||
#
|
||||
|
||||
command[check_proc_docker]=/usr/lib/nagios/plugins/check_procs -c 1:1 -C dockerd
|
||||
command[check_disk]=/usr/lib/nagios/plugins/check_disk -w $warn$ -c $crit$ -p $path$
|
||||
command[check_load]=/usr/lib/nagios/plugins/check_load -w $warn$ -c $crit$
|
||||
command[check_procs]=/usr/lib/nagios/plugins/check_procs -w $warn$ -c $crit$ -s $state$
|
||||
command[check_users]=/usr/lib/nagios/plugins/check_users -w $warn$ -c $crit$
|
||||
|
||||
command[check_disk]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /
|
||||
command[check_disk_docker]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /var/lib/docker/volumes
|
||||
command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20
|
||||
command[check_procs]=/usr/lib/nagios/plugins/check_procs -w 150 -c 200
|
||||
command[check_zombie_procs]=/usr/lib/nagios/plugins/check_procs -w 1 -c 10 -s Z
|
||||
command[check_users]=/usr/lib/nagios/plugins/check_users -w 1 -c 5
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
command[check_docker_container_status_ns1]=/usr/lib/nagios/plugins/check_docker --status running --containers ns1
|
||||
command[check_docker_container_cpu_ns1]=/usr/lib/nagios/plugins/check_docker --cpu 90:95 --containers ns1
|
||||
command[check_docker_container_memory_ns1]=/usr/lib/nagios/plugins/check_docker --memory 90:95:% --containers ns1
|
||||
command[check_docker_container_status_gitea]=/usr/lib/nagios/plugins/check_docker --status running --containers gitea
|
||||
command[check_docker_container_cpu_gitea]=/usr/lib/nagios/plugins/check_docker --cpu 90:95 --containers gitea
|
||||
command[check_docker_container_memory_gitea]=/usr/lib/nagios/plugins/check_docker --memory 90:95:% --containers gitea
|
||||
command[check_docker_container_status_gitea-db-1]=/usr/lib/nagios/plugins/check_docker --status running --containers gitea-db-1
|
||||
command[check_docker_container_cpu_gitea-db-1]=/usr/lib/nagios/plugins/check_docker --cpu 90:95 --containers gitea-db-1
|
||||
command[check_docker_container_memory_gitea-db-1]=/usr/lib/nagios/plugins/check_docker --memory 90:95:% --containers gitea-db-1
|
||||
command[check_docker_container_status_docker-registry1]=/usr/lib/nagios/plugins/check_docker --status running --containers docker-registry1
|
||||
command[check_docker_container_cpu_docker-registry1]=/usr/lib/nagios/plugins/check_docker --cpu 90:95 --containers docker-registry1
|
||||
command[check_docker_container_memory_docker-registry1]=/usr/lib/nagios/plugins/check_docker --memory 90:95:% --containers docker-registry1
|
||||
command[check_docker_container_status_thelinux_pro]=/usr/lib/nagios/plugins/check_docker --status running --containers thelinux_pro
|
||||
command[check_docker_container_cpu_thelinux_pro]=/usr/lib/nagios/plugins/check_docker --cpu 90:95 --containers thelinux_pro
|
||||
command[check_docker_container_memory_thelinux_pro]=/usr/lib/nagios/plugins/check_docker --memory 90:95:% --containers thelinux_pro
|
||||
command[check_docker_container_status_pihole1]=/usr/lib/nagios/plugins/check_docker --status running --containers pihole1
|
||||
command[check_docker_container_cpu_pihole1]=/usr/lib/nagios/plugins/check_docker --cpu 90:95 --containers pihole1
|
||||
command[check_docker_container_memory_pihole1]=/usr/lib/nagios/plugins/check_docker --memory 90:95:% --containers pihole1
|
||||
command[check_docker_container_status_kameronkenny_com_web1]=/usr/lib/nagios/plugins/check_docker --status running --containers kameronkenny.com_web1
|
||||
command[check_docker_container_cpu_kameronkenny_com_web1]=/usr/lib/nagios/plugins/check_docker --cpu 90:95 --containers kameronkenny.com_web1
|
||||
command[check_docker_container_memory_kameronkenny_com_web1]=/usr/lib/nagios/plugins/check_docker --memory 90:95:% --containers kameronkenny.com_web1
|
||||
command[check_docker_container_status_jenkins]=/usr/lib/nagios/plugins/check_docker --status running --containers jenkins
|
||||
command[check_docker_container_cpu_jenkins]=/usr/lib/nagios/plugins/check_docker --cpu 90:95 --containers jenkins
|
||||
command[check_docker_container_memory_jenkins]=/usr/lib/nagios/plugins/check_docker --memory 90:95:% --containers jenkins
|
|
@ -52,7 +52,7 @@ define hostgroup{
|
|||
members pi501.in.thelinuxpro.net,pi502.in.thelinuxpro.net,pi503.in.thelinuxpro.net,pi504.in.thelinuxpro.net
|
||||
}
|
||||
|
||||
### Services
|
||||
### Service definitions for all docker hosts
|
||||
define service{
|
||||
use local-service,graphed-service
|
||||
hostgroup_name docker-hosts
|
||||
|
@ -67,9 +67,245 @@ define service{
|
|||
check_command check_nrpe!check_proc_docker
|
||||
}
|
||||
|
||||
define service{
|
||||
use local-service,graphed-service
|
||||
hostgroup_name docker-hosts
|
||||
service_description Disk: /
|
||||
check_command check_nrpe!check_disk
|
||||
}
|
||||
|
||||
define service{
|
||||
use local-service,graphed-service
|
||||
hostgroup_name docker-hosts
|
||||
service_description Disk: /var/lib/docker/volumes
|
||||
check_command check_nrpe!check_disk_docker
|
||||
}
|
||||
|
||||
define service{
|
||||
use local-service,graphed-service
|
||||
hostgroup_name docker-hosts
|
||||
service_description System: Load
|
||||
check_command check_nrpe!check_load
|
||||
}
|
||||
|
||||
define service{
|
||||
use local-service,graphed-service
|
||||
hostgroup_name docker-hosts
|
||||
service_description System: Total Processes
|
||||
check_command check_nrpe!check_procs
|
||||
}
|
||||
|
||||
define service{
|
||||
use local-service,graphed-service
|
||||
hostgroup_name docker-hosts
|
||||
service_description System: Zombie Processes
|
||||
check_command check_nrpe!check_procs
|
||||
}
|
||||
|
||||
define service{
|
||||
use local-service,graphed-service
|
||||
hostgroup_name docker-hosts
|
||||
service_description System: Logged In users
|
||||
check_command check_nrpe!check_users
|
||||
}
|
||||
|
||||
define service{
|
||||
use local-service,graphed-service
|
||||
hostgroup_name docker-hosts
|
||||
service_description DNS Query: A Record
|
||||
check_command check_dns_a
|
||||
}
|
||||
|
||||
### Service Definitions per docker host
|
||||
define service{
|
||||
use local-service,graphed-service
|
||||
host_name pi501
|
||||
service_description Container Status: TEMPLATE
|
||||
check_command check_nrpe!check_docker_container_status_TEMPLATE
|
||||
register 0
|
||||
}
|
||||
|
||||
define service{
|
||||
use local-service,graphed-service
|
||||
host_name pi501
|
||||
service_description Container CPU: TEMPLATE
|
||||
check_command check_nrpe!check_docker_container_cpu_TEMPLATE
|
||||
register 0
|
||||
}
|
||||
|
||||
define service{
|
||||
use local-service,graphed-service
|
||||
host_name pi501
|
||||
service_description Container Memory: TEMPLATE
|
||||
check_command check_nrpe!check_docker_container_memory_TEMPLATE
|
||||
register 0
|
||||
}
|
||||
|
||||
define service{
|
||||
use local-service,graphed-service
|
||||
host_name pi501
|
||||
service_description Container Status: ns1
|
||||
check_command check_nrpe!check_docker_container_status_ns1
|
||||
}
|
||||
|
||||
define service{
|
||||
use local-service,graphed-service
|
||||
host_name pi501
|
||||
service_description Container CPU: ns1
|
||||
check_command check_nrpe!check_docker_container_cpu_ns1
|
||||
}
|
||||
|
||||
define service{
|
||||
use local-service,graphed-service
|
||||
host_name pi501
|
||||
service_description Container Memory: ns1
|
||||
check_command check_nrpe!check_docker_container_memory_ns1
|
||||
}
|
||||
|
||||
define service{
|
||||
use local-service,graphed-service
|
||||
host_name pi501
|
||||
service_description Container Status: gitea
|
||||
check_command check_nrpe!check_docker_container_status_gitea
|
||||
}
|
||||
|
||||
define service{
|
||||
use local-service,graphed-service
|
||||
host_name pi501
|
||||
service_description Container CPU: gitea
|
||||
check_command check_nrpe!check_docker_container_cpu_gitea
|
||||
}
|
||||
|
||||
define service{
|
||||
use local-service,graphed-service
|
||||
host_name pi501
|
||||
service_description Container Memory: gitea
|
||||
check_command check_nrpe!check_docker_container_memory_gitea
|
||||
}
|
||||
|
||||
define service{
|
||||
use local-service,graphed-service
|
||||
host_name pi501
|
||||
service_description Container Status: gitea-db-1
|
||||
check_command check_nrpe!check_docker_container_status_gitea-db-1
|
||||
}
|
||||
|
||||
define service{
|
||||
use local-service,graphed-service
|
||||
host_name pi501
|
||||
service_description Container CPU: gitea-db-1
|
||||
check_command check_nrpe!check_docker_container_cpu_gitea-db-1
|
||||
}
|
||||
|
||||
define service{
|
||||
use local-service,graphed-service
|
||||
host_name pi501
|
||||
service_description Container Memory: gitea-db-1
|
||||
check_command check_nrpe!check_docker_container_memory_gitea-db-1
|
||||
}
|
||||
|
||||
define service{
|
||||
use local-service,graphed-service
|
||||
host_name pi501
|
||||
service_description Container Status: docker-registry1
|
||||
check_command check_nrpe!check_docker_container_status_docker-registry1
|
||||
}
|
||||
|
||||
define service{
|
||||
use local-service,graphed-service
|
||||
host_name pi501
|
||||
service_description Container CPU: docker-registry1
|
||||
check_command check_nrpe!check_docker_container_cpu_docker-registry1
|
||||
}
|
||||
|
||||
define service{
|
||||
use local-service,graphed-service
|
||||
host_name pi501
|
||||
service_description Container Memory: docker-registry1
|
||||
check_command check_nrpe!check_docker_container_memory_docker-registry1
|
||||
}
|
||||
|
||||
define service{
|
||||
use local-service,graphed-service
|
||||
host_name pi501
|
||||
service_description Container Status: thelinux_pro
|
||||
check_command check_nrpe!check_docker_container_status_thelinux_pro
|
||||
}
|
||||
|
||||
define service{
|
||||
use local-service,graphed-service
|
||||
host_name pi501
|
||||
service_description Container CPU: thelinux_pro
|
||||
check_command check_nrpe!check_docker_container_cpu_thelinux_pro
|
||||
}
|
||||
|
||||
define service{
|
||||
use local-service,graphed-service
|
||||
host_name pi501
|
||||
service_description Container Memory: thelinux_pro
|
||||
check_command check_nrpe!check_docker_container_memory_thelinux_pro
|
||||
}
|
||||
|
||||
define service{
|
||||
use local-service,graphed-service
|
||||
host_name pi501
|
||||
service_description Container Status: pihole1
|
||||
check_command check_nrpe!check_docker_container_status_pihole1
|
||||
}
|
||||
|
||||
define service{
|
||||
use local-service,graphed-service
|
||||
host_name pi501
|
||||
service_description Container CPU: pihole1
|
||||
check_command check_nrpe!check_docker_container_cpu_pihole1
|
||||
}
|
||||
|
||||
define service{
|
||||
use local-service,graphed-service
|
||||
host_name pi501
|
||||
service_description Container Memory: pihole1
|
||||
check_command check_nrpe!check_docker_container_memory_pihole1
|
||||
}
|
||||
|
||||
define service{
|
||||
use local-service,graphed-service
|
||||
host_name pi501
|
||||
service_description Container Status: kameronkenny_com_web1
|
||||
check_command check_nrpe!check_docker_container_status_kameronkenny_com_web1
|
||||
}
|
||||
|
||||
define service{
|
||||
use local-service,graphed-service
|
||||
host_name pi501
|
||||
service_description Container CPU: kameronkenny_com_web1
|
||||
check_command check_nrpe!check_docker_container_cpu_kameronkenny_com_web1
|
||||
}
|
||||
|
||||
define service{
|
||||
use local-service,graphed-service
|
||||
host_name pi501
|
||||
service_description Container Memory: kameronkenny_com_web1
|
||||
check_command check_nrpe!check_docker_container_memory_kameronkenny_com_web1
|
||||
}
|
||||
|
||||
define service{
|
||||
use local-service,graphed-service
|
||||
host_name pi501
|
||||
service_description Container Status: jenkins
|
||||
check_command check_nrpe!check_docker_container_status_jenkins
|
||||
}
|
||||
|
||||
define service{
|
||||
use local-service,graphed-service
|
||||
host_name pi501
|
||||
service_description Container CPU: jenkins
|
||||
check_command check_nrpe!check_docker_container_cpu_jenkins
|
||||
}
|
||||
|
||||
define service{
|
||||
use local-service,graphed-service
|
||||
host_name pi501
|
||||
service_description Container Memory: jenkins
|
||||
check_command check_nrpe!check_docker_container_memory_jenkins
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue