-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (23 loc) · 1.1 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#
# Makefile for the Nagios configuration files
#
# modified by: Job Snijders <[email protected]>
# author: Alexander Schreiber <[email protected]>
#
# adopt this if you have the executable for mkncf somewhere else
# (like /usr/local/bin)
MKNCF=/usr/local/bin/mknagconf
# please note that the trailing / is important
DEF_PATH=./definitions/
CONFD_PATH=./conf.d/
all: ${CONFD_PATH}hosts_autogenerated.cfg ${CONFD_PATH}services_autogenerated.cfg ${CONFD_PATH}hostextinfo_autogenerated.cfg
${CONFD_PATH}hosts_autogenerated.cfg: ${DEF_PATH}hosts.def ${DEF_PATH}hosts.base
${MKNCF} ${DEF_PATH} ${CONFD_PATH} hosts
${CONFD_PATH}services_autogenerated.cfg: ${DEF_PATH}hosts.def ${DEF_PATH}services.base ${DEF_PATH}services.def ${DEF_PATH}services_checks.def ${DEF_PATH}services_contacts.def
${MKNCF} ${DEF_PATH} ${CONFD_PATH} services
${CONFD_PATH}hostextinfo_autogenerated.cfg: ${DEF_PATH}hostextinfo.def
${MKNCF} ${DEF_PATH} ${CONFD_PATH} hostextinfo
clean:
rm -f ${CONFD_PATH}hosts_autogenerated.cfg ${CONFD_PATH}services_autogenerated.cfg ${CONFD_PATH}hostextinfo_autogenerated.cfg
check:
nagios3 -v nagios.cfg