2019-02-25 09:09:36 -05:00
|
|
|
# Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+
|
2013-11-03 07:45:26 -05:00
|
|
|
|
2018-01-18 07:50:38 -05:00
|
|
|
mkclass_target(gelfwriter.ti gelfwriter-ti.cpp gelfwriter-ti.hpp)
|
|
|
|
|
mkclass_target(graphitewriter.ti graphitewriter-ti.cpp graphitewriter-ti.hpp)
|
2021-04-14 12:52:36 -04:00
|
|
|
mkclass_target(influxdbcommonwriter.ti influxdbcommonwriter-ti.cpp influxdbcommonwriter-ti.hpp)
|
2018-01-18 07:50:38 -05:00
|
|
|
mkclass_target(influxdbwriter.ti influxdbwriter-ti.cpp influxdbwriter-ti.hpp)
|
2021-04-15 08:08:50 -04:00
|
|
|
mkclass_target(influxdb2writer.ti influxdb2writer-ti.cpp influxdb2writer-ti.hpp)
|
2018-01-18 07:50:38 -05:00
|
|
|
mkclass_target(elasticsearchwriter.ti elasticsearchwriter-ti.cpp elasticsearchwriter-ti.hpp)
|
|
|
|
|
mkclass_target(opentsdbwriter.ti opentsdbwriter-ti.cpp opentsdbwriter-ti.hpp)
|
|
|
|
|
mkclass_target(perfdatawriter.ti perfdatawriter-ti.cpp perfdatawriter-ti.hpp)
|
2013-11-03 07:45:26 -05:00
|
|
|
|
2014-08-30 12:08:28 -04:00
|
|
|
set(perfdata_SOURCES
|
2018-01-18 07:50:38 -05:00
|
|
|
elasticsearchwriter.cpp elasticsearchwriter.hpp elasticsearchwriter-ti.hpp
|
|
|
|
|
gelfwriter.cpp gelfwriter.hpp gelfwriter-ti.hpp
|
|
|
|
|
graphitewriter.cpp graphitewriter.hpp graphitewriter-ti.hpp
|
2021-04-14 12:52:36 -04:00
|
|
|
influxdbcommonwriter.cpp influxdbcommonwriter.hpp influxdbcommonwriter-ti.hpp
|
2018-01-18 07:50:38 -05:00
|
|
|
influxdbwriter.cpp influxdbwriter.hpp influxdbwriter-ti.hpp
|
2021-04-15 08:08:50 -04:00
|
|
|
influxdb2writer.cpp influxdb2writer.hpp influxdb2writer-ti.hpp
|
2018-01-18 07:50:38 -05:00
|
|
|
opentsdbwriter.cpp opentsdbwriter.hpp opentsdbwriter-ti.hpp
|
|
|
|
|
perfdatawriter.cpp perfdatawriter.hpp perfdatawriter-ti.hpp
|
2014-08-30 12:08:28 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
if(ICINGA2_UNITY_BUILD)
|
2018-01-19 03:18:52 -05:00
|
|
|
mkunity_target(perfdata perfdata perfdata_SOURCES)
|
2014-08-30 12:08:28 -04:00
|
|
|
endif()
|
|
|
|
|
|
2018-01-16 22:28:21 -05:00
|
|
|
add_library(perfdata OBJECT ${perfdata_SOURCES})
|
2013-11-03 07:45:26 -05:00
|
|
|
|
2018-01-16 22:28:21 -05:00
|
|
|
add_dependencies(perfdata base config icinga)
|
2013-11-03 07:45:26 -05:00
|
|
|
|
|
|
|
|
set_target_properties (
|
|
|
|
|
perfdata PROPERTIES
|
|
|
|
|
FOLDER Components
|
|
|
|
|
)
|
|
|
|
|
|
2014-12-19 03:45:35 -05:00
|
|
|
install_if_not_exists(
|
|
|
|
|
${PROJECT_SOURCE_DIR}/etc/icinga2/features-available/gelf.conf
|
2018-07-31 05:59:09 -04:00
|
|
|
${ICINGA2_CONFIGDIR}/features-available
|
2014-12-19 03:45:35 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
install_if_not_exists(
|
|
|
|
|
${PROJECT_SOURCE_DIR}/etc/icinga2/features-available/graphite.conf
|
2018-07-31 05:59:09 -04:00
|
|
|
${ICINGA2_CONFIGDIR}/features-available
|
2014-12-19 03:45:35 -05:00
|
|
|
)
|
|
|
|
|
|
2016-04-19 07:54:41 -04:00
|
|
|
install_if_not_exists(
|
|
|
|
|
${PROJECT_SOURCE_DIR}/etc/icinga2/features-available/influxdb.conf
|
2018-07-31 05:59:09 -04:00
|
|
|
${ICINGA2_CONFIGDIR}/features-available
|
2016-04-19 07:54:41 -04:00
|
|
|
)
|
|
|
|
|
|
2021-04-15 08:08:50 -04:00
|
|
|
install_if_not_exists(
|
|
|
|
|
${PROJECT_SOURCE_DIR}/etc/icinga2/features-available/influxdb2.conf
|
|
|
|
|
${ICINGA2_CONFIGDIR}/features-available
|
|
|
|
|
)
|
|
|
|
|
|
2017-09-07 09:11:57 -04:00
|
|
|
install_if_not_exists(
|
2017-11-09 08:05:10 -05:00
|
|
|
${PROJECT_SOURCE_DIR}/etc/icinga2/features-available/elasticsearch.conf
|
2018-07-31 05:59:09 -04:00
|
|
|
${ICINGA2_CONFIGDIR}/features-available
|
2017-09-07 09:11:57 -04:00
|
|
|
)
|
|
|
|
|
|
2015-01-28 04:57:34 -05:00
|
|
|
install_if_not_exists(
|
|
|
|
|
${PROJECT_SOURCE_DIR}/etc/icinga2/features-available/opentsdb.conf
|
2018-07-31 05:59:09 -04:00
|
|
|
${ICINGA2_CONFIGDIR}/features-available
|
2015-01-28 04:57:34 -05:00
|
|
|
)
|
|
|
|
|
|
2014-12-19 03:45:35 -05:00
|
|
|
install_if_not_exists(
|
|
|
|
|
${PROJECT_SOURCE_DIR}/etc/icinga2/features-available/perfdata.conf
|
2018-07-31 05:59:09 -04:00
|
|
|
${ICINGA2_CONFIGDIR}/features-available
|
2014-12-19 03:45:35 -05:00
|
|
|
)
|
|
|
|
|
|
2018-07-31 05:59:09 -04:00
|
|
|
install(CODE "file(MAKE_DIRECTORY \"\$ENV{DESTDIR}${ICINGA2_FULL_SPOOLDIR}/perfdata\")")
|
|
|
|
|
install(CODE "file(MAKE_DIRECTORY \"\$ENV{DESTDIR}${ICINGA2_FULL_SPOOLDIR}/tmp\")")
|
2014-12-19 03:45:35 -05:00
|
|
|
|
2015-02-02 03:58:38 -05:00
|
|
|
set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "${CPACK_NSIS_EXTRA_INSTALL_COMMANDS}" PARENT_SCOPE)
|