Install MK Livestatus

Facebooktwittergoogle_plusmail

NagiosのaddonにNagVisがありますが、これをインストールしてみることにしました。
OSはCentOS release 5.8 (Final)です

Nagios
http://www.nagios.org/
Nagiosのインストール
http://www.rootlinks.net/2012/10/29/install-nagios/

NagVis
http://www.nagvis.org/
NagVis 1.7 Documentation
http://docs.nagvis.org/1.7/en_US/index.html
NagVis 1.7 System requirements
http://docs.nagvis.org/1.7/en_US/system_requirements.html

MKLivestatusが必要とのことなのでインストールを行います
MK Livestatus
http://mathias-kettner.de/checkmk_livestatus.html
Download Check_MK
http://mathias-kettner.de/check_mk_download.html

  1. MK Livestatus download
  2. MK Livestatusのソースコードをdownloadします。最新版はmk-livestatus-1.2.0p3.tar.gzでした

    [root@ns src]# cd /usr/local/src
    [root@ns src]# wget http://mathias-kettner.de/download/mk-livestatus-1.2.0p3.tar.gz
    –2012-12-06 15:36:05– http://mathias-kettner.de/download/mk-livestatus-1.2.0p3.tar.gz
    mathias-kettner.de をDNSに問いあわせています… 176.9.69.235
    mathias-kettner.de|176.9.69.235|:80 に接続しています… 接続しました。
    HTTP による接続要求を送信しました、応答を待っています… 200 OK
    長さ: 371779 (363K) [application/x-gzip]
    mk-livestatus-1.2.0p3.tar.gz' に保存中

    100%[======================================>] 371,779 191K/s 時間 1.9s

    2012-12-06 15:36:08 (191 KB/s) - mk-livestatus-1.2.0p3.tar.gz’ へ保存完了 [371779/371779]

  3. Unpack
  4. [root@ns src]# tar xvfz mk-livestatus-1.2.0p3.tar.gz
    mk-livestatus-1.2.0p3/
    mk-livestatus-1.2.0p3/install-sh
    mk-livestatus-1.2.0p3/missing
    mk-livestatus-1.2.0p3/nagios/
    mk-livestatus-1.2.0p3/nagios/README
    mk-livestatus-1.2.0p3/nagios/cgiutils.h
    mk-livestatus-1.2.0p3/nagios/nebmods.h
    mk-livestatus-1.2.0p3/nagios/nebcallbacks.h
    mk-livestatus-1.2.0p3/nagios/locations.h
    mk-livestatus-1.2.0p3/nagios/broker.h
    mk-livestatus-1.2.0p3/nagios/nebstructs.h
    mk-livestatus-1.2.0p3/nagios/skiplist.h
    mk-livestatus-1.2.0p3/nagios/neberrors.h
    mk-livestatus-1.2.0p3/nagios/macros.h
    mk-livestatus-1.2.0p3/nagios/sretention.h
    mk-livestatus-1.2.0p3/nagios/downtime.h
    mk-livestatus-1.2.0p3/nagios/common.h
    mk-livestatus-1.2.0p3/nagios/nebmodules.h
    mk-livestatus-1.2.0p3/nagios/config.h
    mk-livestatus-1.2.0p3/nagios/perfdata.h
    mk-livestatus-1.2.0p3/nagios/statusdata.h
    mk-livestatus-1.2.0p3/nagios/nagios.h
    mk-livestatus-1.2.0p3/nagios/objects.h
    mk-livestatus-1.2.0p3/nagios/cgiauth.h
    mk-livestatus-1.2.0p3/nagios/comments.h
    mk-livestatus-1.2.0p3/ltmain.sh
    mk-livestatus-1.2.0p3/aclocal.m4
    mk-livestatus-1.2.0p3/config.guess
    mk-livestatus-1.2.0p3/Makefile.in
    mk-livestatus-1.2.0p3/config.h.in
    mk-livestatus-1.2.0p3/config.sub
    mk-livestatus-1.2.0p3/depcomp
    mk-livestatus-1.2.0p3/src/
    mk-livestatus-1.2.0p3/src/TimePointerColumn.cc
    mk-livestatus-1.2.0p3/src/OffsetStringMacroColumn.cc
    mk-livestatus-1.2.0p3/src/IntColumn.cc
    mk-livestatus-1.2.0p3/src/ServicegroupsColumn.cc
    mk-livestatus-1.2.0p3/src/HostlistColumn.h
    mk-livestatus-1.2.0p3/src/OffsetTimeColumn.cc
    mk-livestatus-1.2.0p3/src/NegatingFilter.h
    mk-livestatus-1.2.0p3/src/GlobalCountersColumn.cc
    mk-livestatus-1.2.0p3/src/CustomVarsExplicitColumn.h
    mk-livestatus-1.2.0p3/src/CustomVarsExplicitColumn.cc
    mk-livestatus-1.2.0p3/src/TimeColumnFilter.cc
    mk-livestatus-1.2.0p3/src/IntPointerColumn.h
    mk-livestatus-1.2.0p3/src/CountAggregator.h
    mk-livestatus-1.2.0p3/src/DowntimeOrComment.cc
    mk-livestatus-1.2.0p3/src/livechecking.c
    mk-livestatus-1.2.0p3/src/TableStatus.h
    mk-livestatus-1.2.0p3/src/TableServicegroups.cc
    mk-livestatus-1.2.0p3/src/ServicelistColumnFilter.h
    mk-livestatus-1.2.0p3/src/HostContactsColumn.cc
    mk-livestatus-1.2.0p3/src/Query.cc
    mk-livestatus-1.2.0p3/src/OringFilter.cc
    mk-livestatus-1.2.0p3/src/IntColumnFilter.h
    mk-livestatus-1.2.0p3/src/IntColumnFilter.cc
    mk-livestatus-1.2.0p3/src/HostContactsColumn.h
    mk-livestatus-1.2.0p3/src/GlobalCountersColumn.h
    mk-livestatus-1.2.0p3/src/logger.c
    mk-livestatus-1.2.0p3/src/unixcat.c
    mk-livestatus-1.2.0p3/src/OffsetIntColumn.h
    mk-livestatus-1.2.0p3/src/ContactsColumn.h
    mk-livestatus-1.2.0p3/src/TableServicegroups.h
    mk-livestatus-1.2.0p3/src/TableLog.cc
    mk-livestatus-1.2.0p3/src/OutputBuffer.cc
    mk-livestatus-1.2.0p3/src/DoubleAggregator.cc
    mk-livestatus-1.2.0p3/src/TableHosts.h
    mk-livestatus-1.2.0p3/src/IntAggregator.h
    mk-livestatus-1.2.0p3/src/TableContacts.cc
    mk-livestatus-1.2.0p3/src/OffsetTimeperiodColumn.cc
    mk-livestatus-1.2.0p3/src/data_encoding.h
    mk-livestatus-1.2.0p3/src/Logfile.cc
    mk-livestatus-1.2.0p3/src/OffsetStringHostMacroColumn.cc
    mk-livestatus-1.2.0p3/src/Query.h
    mk-livestatus-1.2.0p3/src/OffsetStringColumn.h
    mk-livestatus-1.2.0p3/src/ServicegroupsColumn.h
    mk-livestatus-1.2.0p3/src/HostlistStateColumn.h
    mk-livestatus-1.2.0p3/src/HostgroupsColumn.h
    mk-livestatus-1.2.0p3/src/Filter.h
    mk-livestatus-1.2.0p3/src/EmptyColumn.h
    mk-livestatus-1.2.0p3/src/TimeperiodsCache.h
    mk-livestatus-1.2.0p3/src/opids.h
    mk-livestatus-1.2.0p3/src/Filter.cc
    mk-livestatus-1.2.0p3/src/HostlistColumn.cc
    mk-livestatus-1.2.0p3/src/ListColumn.cc
    mk-livestatus-1.2.0p3/src/TimeColumnFilter.h
    mk-livestatus-1.2.0p3/src/Table.h
    mk-livestatus-1.2.0p3/src/DownCommColumn.h
    mk-livestatus-1.2.0p3/src/IntColumn.h
    mk-livestatus-1.2.0p3/src/HostSpecialIntColumn.cc
    mk-livestatus-1.2.0p3/src/HostSpecialIntColumn.h
    mk-livestatus-1.2.0p3/src/DownCommColumn.cc
    mk-livestatus-1.2.0p3/src/waittriggers.h
    mk-livestatus-1.2.0p3/src/TableCommands.h
    mk-livestatus-1.2.0p3/src/Makefile.in
    mk-livestatus-1.2.0p3/src/DowntimeOrComment.h
    mk-livestatus-1.2.0p3/src/TableContactgroups.cc
    mk-livestatus-1.2.0p3/src/tables.h
    mk-livestatus-1.2.0p3/src/ContactgroupsMemberColumn.h
    mk-livestatus-1.2.0p3/src/StringColumnFilter.h
    mk-livestatus-1.2.0p3/src/TableLog.h
    mk-livestatus-1.2.0p3/src/OffsetDoubleColumn.cc
    mk-livestatus-1.2.0p3/src/strutil.cc
    mk-livestatus-1.2.0p3/src/ServiceContactsColumn.cc
    mk-livestatus-1.2.0p3/src/ServiceContactsColumn.h
    mk-livestatus-1.2.0p3/src/DoubleColumnFilter.cc
    mk-livestatus-1.2.0p3/src/TableHostgroups.cc
    mk-livestatus-1.2.0p3/src/ContactgroupsColumn.cc
    mk-livestatus-1.2.0p3/src/ServicelistColumn.cc
    mk-livestatus-1.2.0p3/src/OringFilter.h
    mk-livestatus-1.2.0p3/src/TableColumns.cc
    mk-livestatus-1.2.0p3/src/InputBuffer.cc
    mk-livestatus-1.2.0p3/src/auth.h
    mk-livestatus-1.2.0p3/src/AttributelistFilter.cc
    mk-livestatus-1.2.0p3/src/CustomVarsFilter.h
    mk-livestatus-1.2.0p3/src/CustomVarsColumn.h
    mk-livestatus-1.2.0p3/src/TableColumns.h
    mk-livestatus-1.2.0p3/src/OffsetStringMacroColumn.h
    mk-livestatus-1.2.0p3/src/ListColumnFilter.h
    mk-livestatus-1.2.0p3/src/DoubleColumn.h
    mk-livestatus-1.2.0p3/src/HostgroupsColumn.cc
    mk-livestatus-1.2.0p3/src/ServicelistStateColumn.h
    mk-livestatus-1.2.0p3/src/ServiceSpecialIntColumn.h
    mk-livestatus-1.2.0p3/src/AndingFilter.h
    mk-livestatus-1.2.0p3/src/pnp4nagios.h
    mk-livestatus-1.2.0p3/src/StatsColumn.cc
    mk-livestatus-1.2.0p3/src/logger.h
    mk-livestatus-1.2.0p3/src/ListColumn.h
    mk-livestatus-1.2.0p3/src/global_counters.h
    mk-livestatus-1.2.0p3/src/DoubleAggregator.h
    mk-livestatus-1.2.0p3/src/OffsetIntColumn.cc
    mk-livestatus-1.2.0p3/src/OffsetStringColumn.cc
    mk-livestatus-1.2.0p3/src/livestatus.h
    mk-livestatus-1.2.0p3/src/livecheck.c
    mk-livestatus-1.2.0p3/src/HostlistStateColumn.cc
    mk-livestatus-1.2.0p3/src/StringColumnFilter.cc
    mk-livestatus-1.2.0p3/src/TableContactgroups.h
    mk-livestatus-1.2.0p3/src/TableTimeperiods.h
    mk-livestatus-1.2.0p3/src/pnp4nagios.cc
    mk-livestatus-1.2.0p3/src/AttributelistColumn.cc
    mk-livestatus-1.2.0p3/src/TableContacts.h
    mk-livestatus-1.2.0p3/src/Store.cc
    mk-livestatus-1.2.0p3/src/OffsetStringHostMacroColumn.h
    mk-livestatus-1.2.0p3/src/ContactgroupsColumn.h
    mk-livestatus-1.2.0p3/src/TableStatus.cc
    mk-livestatus-1.2.0p3/src/ContactgroupsMemberColumn.cc
    mk-livestatus-1.2.0p3/src/store.cc
    mk-livestatus-1.2.0p3/src/OffsetTimeColumn.h
    mk-livestatus-1.2.0p3/src/AttributelistFilter.h
    mk-livestatus-1.2.0p3/src/livechecking.h
    mk-livestatus-1.2.0p3/src/ServiceSpecialIntColumn.cc
    mk-livestatus-1.2.0p3/src/Aggregator.h
    mk-livestatus-1.2.0p3/src/StringColumn.cc
    mk-livestatus-1.2.0p3/src/IntAggregator.cc
    mk-livestatus-1.2.0p3/src/TableServices.cc
    mk-livestatus-1.2.0p3/src/OutputBuffer.h
    mk-livestatus-1.2.0p3/src/TableDownComm.h
    mk-livestatus-1.2.0p3/src/OffsetDoubleColumn.h
    mk-livestatus-1.2.0p3/src/OffsetTimeperiodColumn.h
    mk-livestatus-1.2.0p3/src/Column.cc
    mk-livestatus-1.2.0p3/src/LogEntry.cc
    mk-livestatus-1.2.0p3/src/AndingFilter.cc
    mk-livestatus-1.2.0p3/src/ServicelistColumn.h
    mk-livestatus-1.2.0p3/src/TableCommands.cc
    mk-livestatus-1.2.0p3/src/Logfile.h
    mk-livestatus-1.2.0p3/src/LogEntry.h
    mk-livestatus-1.2.0p3/src/TimePointerColumn.h
    mk-livestatus-1.2.0p3/src/module.c
    mk-livestatus-1.2.0p3/src/DoubleColumn.cc
    mk-livestatus-1.2.0p3/src/ClientQueue.cc
    mk-livestatus-1.2.0p3/src/StringPointerColumn.h
    mk-livestatus-1.2.0p3/src/AttributelistColumn.h
    mk-livestatus-1.2.0p3/src/ClientQueue.h
    mk-livestatus-1.2.0p3/src/EmptyColumn.cc
    mk-livestatus-1.2.0p3/src/HostlistColumnFilter.cc
    mk-livestatus-1.2.0p3/src/DoubleColumnFilter.h
    mk-livestatus-1.2.0p3/src/nagios.h
    mk-livestatus-1.2.0p3/src/StringColumn.h
    mk-livestatus-1.2.0p3/src/StatsColumn.h
    mk-livestatus-1.2.0p3/src/opids.cc
    mk-livestatus-1.2.0p3/src/ServicelistColumnFilter.cc
    mk-livestatus-1.2.0p3/src/OffsetStringServiceMacroColumn.cc
    mk-livestatus-1.2.0p3/src/Column.h
    mk-livestatus-1.2.0p3/src/ServicelistStateColumn.cc
    mk-livestatus-1.2.0p3/src/Makefile.am
    mk-livestatus-1.2.0p3/src/PerfdataAggregator.cc
    mk-livestatus-1.2.0p3/src/CustomVarsColumn.cc
    mk-livestatus-1.2.0p3/src/TableDownComm.cc
    mk-livestatus-1.2.0p3/src/TableServices.h
    mk-livestatus-1.2.0p3/src/HostlistColumnFilter.h
    mk-livestatus-1.2.0p3/src/ListColumnFilter.cc
    mk-livestatus-1.2.0p3/src/Table.cc
    mk-livestatus-1.2.0p3/src/waittriggers.c
    mk-livestatus-1.2.0p3/src/CustomVarsFilter.cc
    mk-livestatus-1.2.0p3/src/OffsetStringServiceMacroColumn.h
    mk-livestatus-1.2.0p3/src/strutil.h
    mk-livestatus-1.2.0p3/src/ColumnsColumn.cc
    mk-livestatus-1.2.0p3/src/TableHosts.cc
    mk-livestatus-1.2.0p3/src/auth.cc
    mk-livestatus-1.2.0p3/src/TableTimeperiods.cc
    mk-livestatus-1.2.0p3/src/PerfdataAggregator.h
    mk-livestatus-1.2.0p3/src/CountAggregator.cc
    mk-livestatus-1.2.0p3/src/TimeperiodsCache.cc
    mk-livestatus-1.2.0p3/src/ContactsColumn.cc
    mk-livestatus-1.2.0p3/src/ColumnsColumn.h
    mk-livestatus-1.2.0p3/src/check_icmp.c
    mk-livestatus-1.2.0p3/src/InputBuffer.h
    mk-livestatus-1.2.0p3/src/Store.h
    mk-livestatus-1.2.0p3/src/global_counters.c
    mk-livestatus-1.2.0p3/src/store.h
    mk-livestatus-1.2.0p3/src/TableHostgroups.h
    mk-livestatus-1.2.0p3/configure
    mk-livestatus-1.2.0p3/Makefile.am
    mk-livestatus-1.2.0p3/configure.ac
    mk-livestatus-1.2.0p3/api/
    mk-livestatus-1.2.0p3/api/python/
    mk-livestatus-1.2.0p3/api/python/README
    mk-livestatus-1.2.0p3/api/python/livestatus.py
    mk-livestatus-1.2.0p3/api/python/make_nagvis_map.py
    mk-livestatus-1.2.0p3/api/python/example_multisite.py
    mk-livestatus-1.2.0p3/api/python/example.py
    mk-livestatus-1.2.0p3/api/perl/
    mk-livestatus-1.2.0p3/api/perl/README
    mk-livestatus-1.2.0p3/api/perl/MANIFEST
    mk-livestatus-1.2.0p3/api/perl/t/
    mk-livestatus-1.2.0p3/api/perl/t/03-Monitoring-Livestatus-MULTI-internals.t
    mk-livestatus-1.2.0p3/api/perl/t/34-Monitoring-Livestatus-utf8_support.t
    mk-livestatus-1.2.0p3/api/perl/t/32-Monitoring-Livestatus-backend-test.t
    mk-livestatus-1.2.0p3/api/perl/t/perlcriticrc
    mk-livestatus-1.2.0p3/api/perl/t/20-Monitoring-Livestatus-test_socket.t
    mk-livestatus-1.2.0p3/api/perl/t/31-Monitoring-Livestatus-MULTI-live-test.t
    mk-livestatus-1.2.0p3/api/perl/t/30-Monitoring-Livestatus-live-test.t
    mk-livestatus-1.2.0p3/api/perl/t/22-Monitoring-Livestatus-UNIX.t
    mk-livestatus-1.2.0p3/api/perl/t/33-Monitoring-Livestatus-test_socket_timeout.t
    mk-livestatus-1.2.0p3/api/perl/t/01-Monitoring-Livestatus-basic_tests.t
    mk-livestatus-1.2.0p3/api/perl/t/99-Perl-Critic.t
    mk-livestatus-1.2.0p3/api/perl/t/35-Monitoring-Livestatus-callbacks_support.t
    mk-livestatus-1.2.0p3/api/perl/t/21-Monitoring-Livestatus-INET.t
    mk-livestatus-1.2.0p3/api/perl/t/02-Monitoring-Livestatus-internals.t
    mk-livestatus-1.2.0p3/api/perl/t/98-Pod-Coverage.t
    mk-livestatus-1.2.0p3/api/perl/t/97-Pod.t
    mk-livestatus-1.2.0p3/api/perl/examples/
    mk-livestatus-1.2.0p3/api/perl/examples/test.pl
    mk-livestatus-1.2.0p3/api/perl/examples/dump.pl
    mk-livestatus-1.2.0p3/api/perl/Changes
    mk-livestatus-1.2.0p3/api/perl/Makefile.PL
    mk-livestatus-1.2.0p3/api/perl/lib/
    mk-livestatus-1.2.0p3/api/perl/lib/Monitoring/
    mk-livestatus-1.2.0p3/api/perl/lib/Monitoring/Livestatus/
    mk-livestatus-1.2.0p3/api/perl/lib/Monitoring/Livestatus/MULTI.pm
    mk-livestatus-1.2.0p3/api/perl/lib/Monitoring/Livestatus/UNIX.pm
    mk-livestatus-1.2.0p3/api/perl/lib/Monitoring/Livestatus/INET.pm
    mk-livestatus-1.2.0p3/api/perl/lib/Monitoring/Livestatus.pm
    mk-livestatus-1.2.0p3/api/perl/META.yml
    mk-livestatus-1.2.0p3/api/perl/inc/
    mk-livestatus-1.2.0p3/api/perl/inc/Module/
    mk-livestatus-1.2.0p3/api/perl/inc/Module/Install.pm
    mk-livestatus-1.2.0p3/api/perl/inc/Module/Install/
    mk-livestatus-1.2.0p3/api/perl/inc/Module/Install/Win32.pm
    mk-livestatus-1.2.0p3/api/perl/inc/Module/Install/Base.pm
    mk-livestatus-1.2.0p3/api/perl/inc/Module/Install/Metadata.pm
    mk-livestatus-1.2.0p3/api/perl/inc/Module/Install/Makefile.pm
    mk-livestatus-1.2.0p3/api/perl/inc/Module/Install/Fetch.pm
    mk-livestatus-1.2.0p3/api/perl/inc/Module/Install/Can.pm
    mk-livestatus-1.2.0p3/api/perl/inc/Module/Install/WriteAll.pm
    mk-livestatus-1.2.0p3/api/perl/inc/Module/Install/AutoInstall.pm
    mk-livestatus-1.2.0p3/api/perl/inc/Module/Install/Include.pm
    mk-livestatus-1.2.0p3/api/perl/inc/Module/AutoInstall.pm
    [root@ns src]# cd mk-livestatus-1.2.0p3
    [root@ns mk-livestatus-1.2.0p3]# ls -l
    合計 636
    -rw-rw-r– 1 root root 1425 3月 9 2012 Makefile.am
    -rw-rw-r– 1 root root 22947 9月 27 17:11 Makefile.in
    -rw-rw-r– 1 root root 34611 9月 27 17:11 aclocal.m4
    drwxrwxr-x 4 root root 4096 9月 27 17:11 api
    -rwxrwxr-x 1 root root 44892 7月 22 2010 config.guess
    -rw-rw-r– 1 root root 6381 9月 27 17:11 config.h.in
    -rwxrwxr-x 1 root root 33387 7月 22 2010 config.sub
    -rwxrwxr-x 1 root root 208522 9月 27 17:11 configure
    -rw-rw-r– 1 root root 2760 9月 27 17:08 configure.ac
    -rwxrwxr-x 1 root root 17867 7月 22 2010 depcomp
    -rwxrwxr-x 1 root root 13620 7月 22 2010 install-sh
    -rw-rw-r– 1 root root 201460 3月 9 2012 ltmain.sh
    -rwxrwxr-x 1 root root 11135 7月 22 2010 missing
    drwxrwxr-x 2 root root 4096 9月 27 17:11 nagios
    drwxrwxr-x 2 root root 12288 9月 27 17:11 src

  5. ./configure
  6. [root@ns mk-livestatus-1.2.0p3]# ./configure
    checking for a BSD-compatible install… /usr/bin/install -c
    checking whether build environment is sane… yes
    checking for a thread-safe mkdir -p… /bin/mkdir -p
    checking for gawk… gawk
    checking whether make sets $(MAKE)… yes
    checking for g++… g++
    checking whether the C++ compiler works… yes
    checking for C++ compiler default output file name… a.out
    checking for suffix of executables…
    checking whether we are cross compiling… no
    checking for suffix of object files… o
    checking whether we are using the GNU C++ compiler… yes
    checking whether g++ accepts -g… yes
    checking for style of include used by make… GNU
    checking dependency style of g++… gcc3
    checking for gcc… gcc
    checking whether we are using the GNU C compiler… yes
    checking whether gcc accepts -g… yes
    checking for gcc option to accept ISO C89… none needed
    checking dependency style of gcc… gcc3
    checking for ranlib… ranlib
    checking for socket in -lsocket… no
    checking for connect in -lsocket… no
    checking for shutdown in -lsocket… no
    checking for dirent.h that defines DIR… yes
    checking for library containing opendir… none required
    checking how to run the C preprocessor… gcc -E
    checking for grep that handles long lines and -e… /bin/grep
    checking for egrep… /bin/grep -E
    checking for ANSI C header files… yes
    checking for sys/wait.h that is POSIX.1 compatible… yes
    checking for sys/types.h… yes
    checking for sys/stat.h… yes
    checking for stdlib.h… yes
    checking for string.h… yes
    checking for memory.h… yes
    checking for strings.h… yes
    checking for inttypes.h… yes
    checking for stdint.h… yes
    checking for unistd.h… yes
    checking arpa/inet.h usability… yes
    checking arpa/inet.h presence… yes
    checking for arpa/inet.h… yes
    checking fcntl.h usability… yes
    checking fcntl.h presence… yes
    checking for fcntl.h… yes
    checking limits.h usability… yes
    checking limits.h presence… yes
    checking for limits.h… yes
    checking netdb.h usability… yes
    checking netdb.h presence… yes
    checking for netdb.h… yes
    checking netinet/in.h usability… yes
    checking netinet/in.h presence… yes
    checking for netinet/in.h… yes
    checking for stdint.h… (cached) yes
    checking for stdlib.h… (cached) yes
    checking for string.h… (cached) yes
    checking for strings.h… (cached) yes
    checking sys/socket.h usability… yes
    checking sys/socket.h presence… yes
    checking for sys/socket.h… yes
    checking sys/time.h usability… yes
    checking sys/time.h presence… yes
    checking for sys/time.h… yes
    checking sys/timeb.h usability… yes
    checking sys/timeb.h presence… yes
    checking for sys/timeb.h… yes
    checking syslog.h usability… yes
    checking syslog.h presence… yes
    checking for syslog.h… yes
    checking for unistd.h… (cached) yes
    checking for stdbool.h that conforms to C99… yes
    checking for _Bool… yes
    checking for an ANSI C-conforming const… yes
    checking for inline… inline
    checking for int32_t… yes
    checking for int64_t… yes
    checking for size_t… yes
    checking for ssize_t… yes
    checking whether time.h and sys/time.h may both be included… yes
    checking for uint32_t… yes
    checking for uint64_t… yes
    checking for stdlib.h… (cached) yes
    checking for GNU libc compatible malloc… yes
    checking for stdlib.h… (cached) yes
    checking for GNU libc compatible realloc… yes
    checking sys/select.h usability… yes
    checking sys/select.h presence… yes
    checking for sys/select.h… yes
    checking for sys/socket.h… (cached) yes
    checking types of arguments for select… int,fd_set *,struct timeval *
    checking return type of signal handlers… void
    checking whether lstat correctly handles trailing slash… yes
    checking whether stat accepts an empty string… no
    checking for bzero… yes
    checking for gettimeofday… yes
    checking for memmove… yes
    checking for regcomp… yes
    checking for select… yes
    checking for socket… yes
    checking for strcasecmp… yes
    checking for strdup… yes
    checking for strerror… yes
    checking for strtoul… yes
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating src/Makefile
    config.status: creating config.h
    config.status: executing depfiles commands

  7. make
  8. makeしますが、このときにCPUがマルチコアならオプションを追加した方が早くなるそうです

    If you are running on a multicore CPU you can speed up compilation by adding -j 4 or -j 8 to make:

    私の場合は小規模でVMware ESXi上の仮想OSにインストールしましたのでオプションは追加しませんでした

    [root@ns mk-livestatus-1.2.0p3]# make
    make all-recursive
    make[1]: ディレクトリ /usr/local/src/mk-livestatus-1.2.0p3' に入ります
    Making all in src
    make[2]: ディレクトリ
    /usr/local/src/mk-livestatus-1.2.0p3/src’ に入ります
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-AndingFilter.o -MD -MP -MF .deps/livestatus_so-AndingFilter.Tpo -c -o livestatus_so-AndingFilter.o test -f 'AndingFilter.cc' || echo './'AndingFilter.cc
    mv -f .deps/livestatus_so-AndingFilter.Tpo .deps/livestatus_so-AndingFilter.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-ClientQueue.o -MD -MP -MF .deps/livestatus_so-ClientQueue.Tpo -c -o livestatus_so-ClientQueue.o test -f 'ClientQueue.cc' || echo './'ClientQueue.cc
    mv -f .deps/livestatus_so-ClientQueue.Tpo .deps/livestatus_so-ClientQueue.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-Column.o -MD -MP -MF .deps/livestatus_so-Column.Tpo -c -o livestatus_so-Column.o test -f 'Column.cc' || echo './'Column.cc
    mv -f .deps/livestatus_so-Column.Tpo .deps/livestatus_so-Column.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-ColumnsColumn.o -MD -MP -MF .deps/livestatus_so-ColumnsColumn.Tpo -c -o livestatus_so-ColumnsColumn.o test -f 'ColumnsColumn.cc' || echo './'ColumnsColumn.cc
    mv -f .deps/livestatus_so-ColumnsColumn.Tpo .deps/livestatus_so-ColumnsColumn.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-CustomVarsExplicitColumn.o -MD -MP -MF .deps/livestatus_so-CustomVarsExplicitColumn.Tpo -c -o livestatus_so-CustomVarsExplicitColumn.o test -f 'CustomVarsExplicitColumn.cc' || echo './'CustomVarsExplicitColumn.cc
    mv -f .deps/livestatus_so-CustomVarsExplicitColumn.Tpo .deps/livestatus_so-CustomVarsExplicitColumn.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-ContactsColumn.o -MD -MP -MF .deps/livestatus_so-ContactsColumn.Tpo -c -o livestatus_so-ContactsColumn.o test -f 'ContactsColumn.cc' || echo './'ContactsColumn.cc
    mv -f .deps/livestatus_so-ContactsColumn.Tpo .deps/livestatus_so-ContactsColumn.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-CustomVarsColumn.o -MD -MP -MF .deps/livestatus_so-CustomVarsColumn.Tpo -c -o livestatus_so-CustomVarsColumn.o test -f 'CustomVarsColumn.cc' || echo './'CustomVarsColumn.cc
    mv -f .deps/livestatus_so-CustomVarsColumn.Tpo .deps/livestatus_so-CustomVarsColumn.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-CustomVarsFilter.o -MD -MP -MF .deps/livestatus_so-CustomVarsFilter.Tpo -c -o livestatus_so-CustomVarsFilter.o test -f 'CustomVarsFilter.cc' || echo './'CustomVarsFilter.cc
    mv -f .deps/livestatus_so-CustomVarsFilter.Tpo .deps/livestatus_so-CustomVarsFilter.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-DoubleColumn.o -MD -MP -MF .deps/livestatus_so-DoubleColumn.Tpo -c -o livestatus_so-DoubleColumn.o test -f 'DoubleColumn.cc' || echo './'DoubleColumn.cc
    mv -f .deps/livestatus_so-DoubleColumn.Tpo .deps/livestatus_so-DoubleColumn.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-DoubleColumnFilter.o -MD -MP -MF .deps/livestatus_so-DoubleColumnFilter.Tpo -c -o livestatus_so-DoubleColumnFilter.o test -f 'DoubleColumnFilter.cc' || echo './'DoubleColumnFilter.cc
    mv -f .deps/livestatus_so-DoubleColumnFilter.Tpo .deps/livestatus_so-DoubleColumnFilter.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-DowntimeOrComment.o -MD -MP -MF .deps/livestatus_so-DowntimeOrComment.Tpo -c -o livestatus_so-DowntimeOrComment.o test -f 'DowntimeOrComment.cc' || echo './'DowntimeOrComment.cc
    mv -f .deps/livestatus_so-DowntimeOrComment.Tpo .deps/livestatus_so-DowntimeOrComment.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-DownCommColumn.o -MD -MP -MF .deps/livestatus_so-DownCommColumn.Tpo -c -o livestatus_so-DownCommColumn.o test -f 'DownCommColumn.cc' || echo './'DownCommColumn.cc
    mv -f .deps/livestatus_so-DownCommColumn.Tpo .deps/livestatus_so-DownCommColumn.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-EmptyColumn.o -MD -MP -MF .deps/livestatus_so-EmptyColumn.Tpo -c -o livestatus_so-EmptyColumn.o test -f 'EmptyColumn.cc' || echo './'EmptyColumn.cc
    mv -f .deps/livestatus_so-EmptyColumn.Tpo .deps/livestatus_so-EmptyColumn.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-Filter.o -MD -MP -MF .deps/livestatus_so-Filter.Tpo -c -o livestatus_so-Filter.o test -f 'Filter.cc' || echo './'Filter.cc
    mv -f .deps/livestatus_so-Filter.Tpo .deps/livestatus_so-Filter.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-GlobalCountersColumn.o -MD -MP -MF .deps/livestatus_so-GlobalCountersColumn.Tpo -c -o livestatus_so-GlobalCountersColumn.o test -f 'GlobalCountersColumn.cc' || echo './'GlobalCountersColumn.cc
    mv -f .deps/livestatus_so-GlobalCountersColumn.Tpo .deps/livestatus_so-GlobalCountersColumn.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-HostContactsColumn.o -MD -MP -MF .deps/livestatus_so-HostContactsColumn.Tpo -c -o livestatus_so-HostContactsColumn.o test -f 'HostContactsColumn.cc' || echo './'HostContactsColumn.cc
    mv -f .deps/livestatus_so-HostContactsColumn.Tpo .deps/livestatus_so-HostContactsColumn.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-HostgroupsColumn.o -MD -MP -MF .deps/livestatus_so-HostgroupsColumn.Tpo -c -o livestatus_so-HostgroupsColumn.o test -f 'HostgroupsColumn.cc' || echo './'HostgroupsColumn.cc
    mv -f .deps/livestatus_so-HostgroupsColumn.Tpo .deps/livestatus_so-HostgroupsColumn.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-HostlistColumn.o -MD -MP -MF .deps/livestatus_so-HostlistColumn.Tpo -c -o livestatus_so-HostlistColumn.o test -f 'HostlistColumn.cc' || echo './'HostlistColumn.cc
    mv -f .deps/livestatus_so-HostlistColumn.Tpo .deps/livestatus_so-HostlistColumn.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-HostlistColumnFilter.o -MD -MP -MF .deps/livestatus_so-HostlistColumnFilter.Tpo -c -o livestatus_so-HostlistColumnFilter.o test -f 'HostlistColumnFilter.cc' || echo './'HostlistColumnFilter.cc
    mv -f .deps/livestatus_so-HostlistColumnFilter.Tpo .deps/livestatus_so-HostlistColumnFilter.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-HostlistStateColumn.o -MD -MP -MF .deps/livestatus_so-HostlistStateColumn.Tpo -c -o livestatus_so-HostlistStateColumn.o test -f 'HostlistStateColumn.cc' || echo './'HostlistStateColumn.cc
    mv -f .deps/livestatus_so-HostlistStateColumn.Tpo .deps/livestatus_so-HostlistStateColumn.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-HostSpecialIntColumn.o -MD -MP -MF .deps/livestatus_so-HostSpecialIntColumn.Tpo -c -o livestatus_so-HostSpecialIntColumn.o test -f 'HostSpecialIntColumn.cc' || echo './'HostSpecialIntColumn.cc
    mv -f .deps/livestatus_so-HostSpecialIntColumn.Tpo .deps/livestatus_so-HostSpecialIntColumn.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-ServiceSpecialIntColumn.o -MD -MP -MF .deps/livestatus_so-ServiceSpecialIntColumn.Tpo -c -o livestatus_so-ServiceSpecialIntColumn.o test -f 'ServiceSpecialIntColumn.cc' || echo './'ServiceSpecialIntColumn.cc
    mv -f .deps/livestatus_so-ServiceSpecialIntColumn.Tpo .deps/livestatus_so-ServiceSpecialIntColumn.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-InputBuffer.o -MD -MP -MF .deps/livestatus_so-InputBuffer.Tpo -c -o livestatus_so-InputBuffer.o test -f 'InputBuffer.cc' || echo './'InputBuffer.cc
    mv -f .deps/livestatus_so-InputBuffer.Tpo .deps/livestatus_so-InputBuffer.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-IntColumn.o -MD -MP -MF .deps/livestatus_so-IntColumn.Tpo -c -o livestatus_so-IntColumn.o test -f 'IntColumn.cc' || echo './'IntColumn.cc
    mv -f .deps/livestatus_so-IntColumn.Tpo .deps/livestatus_so-IntColumn.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-IntColumnFilter.o -MD -MP -MF .deps/livestatus_so-IntColumnFilter.Tpo -c -o livestatus_so-IntColumnFilter.o test -f 'IntColumnFilter.cc' || echo './'IntColumnFilter.cc
    mv -f .deps/livestatus_so-IntColumnFilter.Tpo .deps/livestatus_so-IntColumnFilter.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-ListColumn.o -MD -MP -MF .deps/livestatus_so-ListColumn.Tpo -c -o livestatus_so-ListColumn.o test -f 'ListColumn.cc' || echo './'ListColumn.cc
    mv -f .deps/livestatus_so-ListColumn.Tpo .deps/livestatus_so-ListColumn.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-ListColumnFilter.o -MD -MP -MF .deps/livestatus_so-ListColumnFilter.Tpo -c -o livestatus_so-ListColumnFilter.o test -f 'ListColumnFilter.cc' || echo './'ListColumnFilter.cc
    mv -f .deps/livestatus_so-ListColumnFilter.Tpo .deps/livestatus_so-ListColumnFilter.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-OffsetDoubleColumn.o -MD -MP -MF .deps/livestatus_so-OffsetDoubleColumn.Tpo -c -o livestatus_so-OffsetDoubleColumn.o test -f 'OffsetDoubleColumn.cc' || echo './'OffsetDoubleColumn.cc
    mv -f .deps/livestatus_so-OffsetDoubleColumn.Tpo .deps/livestatus_so-OffsetDoubleColumn.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-OffsetIntColumn.o -MD -MP -MF .deps/livestatus_so-OffsetIntColumn.Tpo -c -o livestatus_so-OffsetIntColumn.o test -f 'OffsetIntColumn.cc' || echo './'OffsetIntColumn.cc
    mv -f .deps/livestatus_so-OffsetIntColumn.Tpo .deps/livestatus_so-OffsetIntColumn.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-OffsetStringColumn.o -MD -MP -MF .deps/livestatus_so-OffsetStringColumn.Tpo -c -o livestatus_so-OffsetStringColumn.o test -f 'OffsetStringColumn.cc' || echo './'OffsetStringColumn.cc
    mv -f .deps/livestatus_so-OffsetStringColumn.Tpo .deps/livestatus_so-OffsetStringColumn.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-OffsetTimeperiodColumn.o -MD -MP -MF .deps/livestatus_so-OffsetTimeperiodColumn.Tpo -c -o livestatus_so-OffsetTimeperiodColumn.o test -f 'OffsetTimeperiodColumn.cc' || echo './'OffsetTimeperiodColumn.cc
    mv -f .deps/livestatus_so-OffsetTimeperiodColumn.Tpo .deps/livestatus_so-OffsetTimeperiodColumn.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-OringFilter.o -MD -MP -MF .deps/livestatus_so-OringFilter.Tpo -c -o livestatus_so-OringFilter.o test -f 'OringFilter.cc' || echo './'OringFilter.cc
    mv -f .deps/livestatus_so-OringFilter.Tpo .deps/livestatus_so-OringFilter.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-OutputBuffer.o -MD -MP -MF .deps/livestatus_so-OutputBuffer.Tpo -c -o livestatus_so-OutputBuffer.o test -f 'OutputBuffer.cc' || echo './'OutputBuffer.cc
    mv -f .deps/livestatus_so-OutputBuffer.Tpo .deps/livestatus_so-OutputBuffer.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-OffsetTimeColumn.o -MD -MP -MF .deps/livestatus_so-OffsetTimeColumn.Tpo -c -o livestatus_so-OffsetTimeColumn.o test -f 'OffsetTimeColumn.cc' || echo './'OffsetTimeColumn.cc
    mv -f .deps/livestatus_so-OffsetTimeColumn.Tpo .deps/livestatus_so-OffsetTimeColumn.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-TimePointerColumn.o -MD -MP -MF .deps/livestatus_so-TimePointerColumn.Tpo -c -o livestatus_so-TimePointerColumn.o test -f 'TimePointerColumn.cc' || echo './'TimePointerColumn.cc
    mv -f .deps/livestatus_so-TimePointerColumn.Tpo .deps/livestatus_so-TimePointerColumn.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-TimeColumnFilter.o -MD -MP -MF .deps/livestatus_so-TimeColumnFilter.Tpo -c -o livestatus_so-TimeColumnFilter.o test -f 'TimeColumnFilter.cc' || echo './'TimeColumnFilter.cc
    mv -f .deps/livestatus_so-TimeColumnFilter.Tpo .deps/livestatus_so-TimeColumnFilter.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-PerfdataAggregator.o -MD -MP -MF .deps/livestatus_so-PerfdataAggregator.Tpo -c -o livestatus_so-PerfdataAggregator.o test -f 'PerfdataAggregator.cc' || echo './'PerfdataAggregator.cc
    mv -f .deps/livestatus_so-PerfdataAggregator.Tpo .deps/livestatus_so-PerfdataAggregator.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-Query.o -MD -MP -MF .deps/livestatus_so-Query.Tpo -c -o livestatus_so-Query.o test -f 'Query.cc' || echo './'Query.cc
    mv -f .deps/livestatus_so-Query.Tpo .deps/livestatus_so-Query.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-ServiceContactsColumn.o -MD -MP -MF .deps/livestatus_so-ServiceContactsColumn.Tpo -c -o livestatus_so-ServiceContactsColumn.o test -f 'ServiceContactsColumn.cc' || echo './'ServiceContactsColumn.cc
    mv -f .deps/livestatus_so-ServiceContactsColumn.Tpo .deps/livestatus_so-ServiceContactsColumn.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-ServicegroupsColumn.o -MD -MP -MF .deps/livestatus_so-ServicegroupsColumn.Tpo -c -o livestatus_so-ServicegroupsColumn.o test -f 'ServicegroupsColumn.cc' || echo './'ServicegroupsColumn.cc
    mv -f .deps/livestatus_so-ServicegroupsColumn.Tpo .deps/livestatus_so-ServicegroupsColumn.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-ServicelistColumn.o -MD -MP -MF .deps/livestatus_so-ServicelistColumn.Tpo -c -o livestatus_so-ServicelistColumn.o test -f 'ServicelistColumn.cc' || echo './'ServicelistColumn.cc
    mv -f .deps/livestatus_so-ServicelistColumn.Tpo .deps/livestatus_so-ServicelistColumn.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-ServicelistColumnFilter.o -MD -MP -MF .deps/livestatus_so-ServicelistColumnFilter.Tpo -c -o livestatus_so-ServicelistColumnFilter.o test -f 'ServicelistColumnFilter.cc' || echo './'ServicelistColumnFilter.cc
    mv -f .deps/livestatus_so-ServicelistColumnFilter.Tpo .deps/livestatus_so-ServicelistColumnFilter.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-ServicelistStateColumn.o -MD -MP -MF .deps/livestatus_so-ServicelistStateColumn.Tpo -c -o livestatus_so-ServicelistStateColumn.o test -f 'ServicelistStateColumn.cc' || echo './'ServicelistStateColumn.cc
    mv -f .deps/livestatus_so-ServicelistStateColumn.Tpo .deps/livestatus_so-ServicelistStateColumn.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-store.o -MD -MP -MF .deps/livestatus_so-store.Tpo -c -o livestatus_so-store.o test -f 'store.cc' || echo './'store.cc
    mv -f .deps/livestatus_so-store.Tpo .deps/livestatus_so-store.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-Store.o -MD -MP -MF .deps/livestatus_so-Store.Tpo -c -o livestatus_so-Store.o test -f 'Store.cc' || echo './'Store.cc
    mv -f .deps/livestatus_so-Store.Tpo .deps/livestatus_so-Store.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-StringColumn.o -MD -MP -MF .deps/livestatus_so-StringColumn.Tpo -c -o livestatus_so-StringColumn.o test -f 'StringColumn.cc' || echo './'StringColumn.cc
    mv -f .deps/livestatus_so-StringColumn.Tpo .deps/livestatus_so-StringColumn.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-StringColumnFilter.o -MD -MP -MF .deps/livestatus_so-StringColumnFilter.Tpo -c -o livestatus_so-StringColumnFilter.o test -f 'StringColumnFilter.cc' || echo './'StringColumnFilter.cc
    mv -f .deps/livestatus_so-StringColumnFilter.Tpo .deps/livestatus_so-StringColumnFilter.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-strutil.o -MD -MP -MF .deps/livestatus_so-strutil.Tpo -c -o livestatus_so-strutil.o test -f 'strutil.cc' || echo './'strutil.cc
    mv -f .deps/livestatus_so-strutil.Tpo .deps/livestatus_so-strutil.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-Table.o -MD -MP -MF .deps/livestatus_so-Table.Tpo -c -o livestatus_so-Table.o test -f 'Table.cc' || echo './'Table.cc
    mv -f .deps/livestatus_so-Table.Tpo .deps/livestatus_so-Table.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-TableColumns.o -MD -MP -MF .deps/livestatus_so-TableColumns.Tpo -c -o livestatus_so-TableColumns.o test -f 'TableColumns.cc' || echo './'TableColumns.cc
    mv -f .deps/livestatus_so-TableColumns.Tpo .deps/livestatus_so-TableColumns.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-TableCommands.o -MD -MP -MF .deps/livestatus_so-TableCommands.Tpo -c -o livestatus_so-TableCommands.o test -f 'TableCommands.cc' || echo './'TableCommands.cc
    mv -f .deps/livestatus_so-TableCommands.Tpo .deps/livestatus_so-TableCommands.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-TableContacts.o -MD -MP -MF .deps/livestatus_so-TableContacts.Tpo -c -o livestatus_so-TableContacts.o test -f 'TableContacts.cc' || echo './'TableContacts.cc
    mv -f .deps/livestatus_so-TableContacts.Tpo .deps/livestatus_so-TableContacts.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-TableDownComm.o -MD -MP -MF .deps/livestatus_so-TableDownComm.Tpo -c -o livestatus_so-TableDownComm.o test -f 'TableDownComm.cc' || echo './'TableDownComm.cc
    mv -f .deps/livestatus_so-TableDownComm.Tpo .deps/livestatus_so-TableDownComm.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-TableHostgroups.o -MD -MP -MF .deps/livestatus_so-TableHostgroups.Tpo -c -o livestatus_so-TableHostgroups.o test -f 'TableHostgroups.cc' || echo './'TableHostgroups.cc
    mv -f .deps/livestatus_so-TableHostgroups.Tpo .deps/livestatus_so-TableHostgroups.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-TableHosts.o -MD -MP -MF .deps/livestatus_so-TableHosts.Tpo -c -o livestatus_so-TableHosts.o test -f 'TableHosts.cc' || echo './'TableHosts.cc
    mv -f .deps/livestatus_so-TableHosts.Tpo .deps/livestatus_so-TableHosts.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-TableServicegroups.o -MD -MP -MF .deps/livestatus_so-TableServicegroups.Tpo -c -o livestatus_so-TableServicegroups.o test -f 'TableServicegroups.cc' || echo './'TableServicegroups.cc
    mv -f .deps/livestatus_so-TableServicegroups.Tpo .deps/livestatus_so-TableServicegroups.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-TableServices.o -MD -MP -MF .deps/livestatus_so-TableServices.Tpo -c -o livestatus_so-TableServices.o test -f 'TableServices.cc' || echo './'TableServices.cc
    mv -f .deps/livestatus_so-TableServices.Tpo .deps/livestatus_so-TableServices.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-TableStatus.o -MD -MP -MF .deps/livestatus_so-TableStatus.Tpo -c -o livestatus_so-TableStatus.o test -f 'TableStatus.cc' || echo './'TableStatus.cc
    mv -f .deps/livestatus_so-TableStatus.Tpo .deps/livestatus_so-TableStatus.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-LogEntry.o -MD -MP -MF .deps/livestatus_so-LogEntry.Tpo -c -o livestatus_so-LogEntry.o test -f 'LogEntry.cc' || echo './'LogEntry.cc
    mv -f .deps/livestatus_so-LogEntry.Tpo .deps/livestatus_so-LogEntry.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-Logfile.o -MD -MP -MF .deps/livestatus_so-Logfile.Tpo -c -o livestatus_so-Logfile.o test -f 'Logfile.cc' || echo './'Logfile.cc
    mv -f .deps/livestatus_so-Logfile.Tpo .deps/livestatus_so-Logfile.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-TableLog.o -MD -MP -MF .deps/livestatus_so-TableLog.Tpo -c -o livestatus_so-TableLog.o test -f 'TableLog.cc' || echo './'TableLog.cc
    mv -f .deps/livestatus_so-TableLog.Tpo .deps/livestatus_so-TableLog.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-TableTimeperiods.o -MD -MP -MF .deps/livestatus_so-TableTimeperiods.Tpo -c -o livestatus_so-TableTimeperiods.o test -f 'TableTimeperiods.cc' || echo './'TableTimeperiods.cc
    mv -f .deps/livestatus_so-TableTimeperiods.Tpo .deps/livestatus_so-TableTimeperiods.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-TableContactgroups.o -MD -MP -MF .deps/livestatus_so-TableContactgroups.Tpo -c -o livestatus_so-TableContactgroups.o test -f 'TableContactgroups.cc' || echo './'TableContactgroups.cc
    mv -f .deps/livestatus_so-TableContactgroups.Tpo .deps/livestatus_so-TableContactgroups.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-ContactgroupsMemberColumn.o -MD -MP -MF .deps/livestatus_so-ContactgroupsMemberColumn.Tpo -c -o livestatus_so-ContactgroupsMemberColumn.o test -f 'ContactgroupsMemberColumn.cc' || echo './'ContactgroupsMemberColumn.cc
    mv -f .deps/livestatus_so-ContactgroupsMemberColumn.Tpo .deps/livestatus_so-ContactgroupsMemberColumn.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-OffsetStringMacroColumn.o -MD -MP -MF .deps/livestatus_so-OffsetStringMacroColumn.Tpo -c -o livestatus_so-OffsetStringMacroColumn.o test -f 'OffsetStringMacroColumn.cc' || echo './'OffsetStringMacroColumn.cc
    mv -f .deps/livestatus_so-OffsetStringMacroColumn.Tpo .deps/livestatus_so-OffsetStringMacroColumn.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-OffsetStringServiceMacroColumn.o -MD -MP -MF .deps/livestatus_so-OffsetStringServiceMacroColumn.Tpo -c -o livestatus_so-OffsetStringServiceMacroColumn.o test -f 'OffsetStringServiceMacroColumn.cc' || echo './'OffsetStringServiceMacroColumn.cc
    mv -f .deps/livestatus_so-OffsetStringServiceMacroColumn.Tpo .deps/livestatus_so-OffsetStringServiceMacroColumn.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-OffsetStringHostMacroColumn.o -MD -MP -MF .deps/livestatus_so-OffsetStringHostMacroColumn.Tpo -c -o livestatus_so-OffsetStringHostMacroColumn.o test -f 'OffsetStringHostMacroColumn.cc' || echo './'OffsetStringHostMacroColumn.cc
    mv -f .deps/livestatus_so-OffsetStringHostMacroColumn.Tpo .deps/livestatus_so-OffsetStringHostMacroColumn.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-StatsColumn.o -MD -MP -MF .deps/livestatus_so-StatsColumn.Tpo -c -o livestatus_so-StatsColumn.o test -f 'StatsColumn.cc' || echo './'StatsColumn.cc
    mv -f .deps/livestatus_so-StatsColumn.Tpo .deps/livestatus_so-StatsColumn.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-IntAggregator.o -MD -MP -MF .deps/livestatus_so-IntAggregator.Tpo -c -o livestatus_so-IntAggregator.o test -f 'IntAggregator.cc' || echo './'IntAggregator.cc
    IntAggregator.cc: In member function ‘virtual void IntAggregator::output(Query*)’:
    IntAggregator.cc:77: 警告: passing ‘double’ for argument 1 to ‘void Query::outputInteger64(int64_t)’
    IntAggregator.cc:85: 警告: passing ‘double’ for argument 1 to ‘void Query::outputInteger64(int64_t)’
    mv -f .deps/livestatus_so-IntAggregator.Tpo .deps/livestatus_so-IntAggregator.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-CountAggregator.o -MD -MP -MF .deps/livestatus_so-CountAggregator.Tpo -c -o livestatus_so-CountAggregator.o test -f 'CountAggregator.cc' || echo './'CountAggregator.cc
    mv -f .deps/livestatus_so-CountAggregator.Tpo .deps/livestatus_so-CountAggregator.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-DoubleAggregator.o -MD -MP -MF .deps/livestatus_so-DoubleAggregator.Tpo -c -o livestatus_so-DoubleAggregator.o test -f 'DoubleAggregator.cc' || echo './'DoubleAggregator.cc
    mv -f .deps/livestatus_so-DoubleAggregator.Tpo .deps/livestatus_so-DoubleAggregator.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-AttributelistColumn.o -MD -MP -MF .deps/livestatus_so-AttributelistColumn.Tpo -c -o livestatus_so-AttributelistColumn.o test -f 'AttributelistColumn.cc' || echo './'AttributelistColumn.cc
    mv -f .deps/livestatus_so-AttributelistColumn.Tpo .deps/livestatus_so-AttributelistColumn.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-AttributelistFilter.o -MD -MP -MF .deps/livestatus_so-AttributelistFilter.Tpo -c -o livestatus_so-AttributelistFilter.o test -f 'AttributelistFilter.cc' || echo './'AttributelistFilter.cc
    mv -f .deps/livestatus_so-AttributelistFilter.Tpo .deps/livestatus_so-AttributelistFilter.Po
    gcc -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-global_counters.o -MD -MP -MF .deps/livestatus_so-global_counters.Tpo -c -o livestatus_so-global_counters.o test -f 'global_counters.c' || echo './'global_counters.c
    mv -f .deps/livestatus_so-global_counters.Tpo .deps/livestatus_so-global_counters.Po
    gcc -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-module.o -MD -MP -MF .deps/livestatus_so-module.Tpo -c -o livestatus_so-module.o test -f 'module.c' || echo './'module.c
    mv -f .deps/livestatus_so-module.Tpo .deps/livestatus_so-module.Po
    gcc -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-logger.o -MD -MP -MF .deps/livestatus_so-logger.Tpo -c -o livestatus_so-logger.o test -f 'logger.c' || echo './'logger.c
    mv -f .deps/livestatus_so-logger.Tpo .deps/livestatus_so-logger.Po
    gcc -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-waittriggers.o -MD -MP -MF .deps/livestatus_so-waittriggers.Tpo -c -o livestatus_so-waittriggers.o test -f 'waittriggers.c' || echo './'waittriggers.c
    mv -f .deps/livestatus_so-waittriggers.Tpo .deps/livestatus_so-waittriggers.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-TimeperiodsCache.o -MD -MP -MF .deps/livestatus_so-TimeperiodsCache.Tpo -c -o livestatus_so-TimeperiodsCache.o test -f 'TimeperiodsCache.cc' || echo './'TimeperiodsCache.cc
    mv -f .deps/livestatus_so-TimeperiodsCache.Tpo .deps/livestatus_so-TimeperiodsCache.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-pnp4nagios.o -MD -MP -MF .deps/livestatus_so-pnp4nagios.Tpo -c -o livestatus_so-pnp4nagios.o test -f 'pnp4nagios.cc' || echo './'pnp4nagios.cc
    mv -f .deps/livestatus_so-pnp4nagios.Tpo .deps/livestatus_so-pnp4nagios.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-ContactgroupsColumn.o -MD -MP -MF .deps/livestatus_so-ContactgroupsColumn.Tpo -c -o livestatus_so-ContactgroupsColumn.o test -f 'ContactgroupsColumn.cc' || echo './'ContactgroupsColumn.cc
    mv -f .deps/livestatus_so-ContactgroupsColumn.Tpo .deps/livestatus_so-ContactgroupsColumn.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-opids.o -MD -MP -MF .deps/livestatus_so-opids.Tpo -c -o livestatus_so-opids.o test -f 'opids.cc' || echo './'opids.cc
    mv -f .deps/livestatus_so-opids.Tpo .deps/livestatus_so-opids.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-auth.o -MD -MP -MF .deps/livestatus_so-auth.Tpo -c -o livestatus_so-auth.o test -f 'auth.cc' || echo './'auth.cc
    mv -f .deps/livestatus_so-auth.Tpo .deps/livestatus_so-auth.Po
    gcc -DHAVE_CONFIG_H -I. -I.. -I../nagios -fPIC -g -O2 -MT livestatus_so-livechecking.o -MD -MP -MF .deps/livestatus_so-livechecking.Tpo -c -o livestatus_so-livechecking.o test -f 'livechecking.c' || echo './'livechecking.c
    mv -f .deps/livestatus_so-livechecking.Tpo .deps/livestatus_so-livechecking.Po
    rm -f livestatus.so
    ar cru livestatus.so livestatus_so-AndingFilter.o livestatus_so-ClientQueue.o livestatus_so-Column.o livestatus_so-ColumnsColumn.o livestatus_so-CustomVarsExplicitColumn.o livestatus_so-ContactsColumn.o livestatus_so-CustomVarsColumn.o livestatus_so-CustomVarsFilter.o livestatus_so-DoubleColumn.o livestatus_so-DoubleColumnFilter.o livestatus_so-DowntimeOrComment.o livestatus_so-DownCommColumn.o livestatus_so-EmptyColumn.o livestatus_so-Filter.o livestatus_so-GlobalCountersColumn.o livestatus_so-HostContactsColumn.o livestatus_so-HostgroupsColumn.o livestatus_so-HostlistColumn.o livestatus_so-HostlistColumnFilter.o livestatus_so-HostlistStateColumn.o livestatus_so-HostSpecialIntColumn.o livestatus_so-ServiceSpecialIntColumn.o livestatus_so-InputBuffer.o livestatus_so-IntColumn.o livestatus_so-IntColumnFilter.o livestatus_so-ListColumn.o livestatus_so-ListColumnFilter.o livestatus_so-OffsetDoubleColumn.o livestatus_so-OffsetIntColumn.o livestatus_so-OffsetStringColumn.o livestatus_so-OffsetTimeperiodColumn.o livestatus_so-OringFilter.o livestatus_so-OutputBuffer.o livestatus_so-OffsetTimeColumn.o livestatus_so-TimePointerColumn.o livestatus_so-TimeColumnFilter.o livestatus_so-PerfdataAggregator.o livestatus_so-Query.o livestatus_so-ServiceContactsColumn.o livestatus_so-ServicegroupsColumn.o livestatus_so-ServicelistColumn.o livestatus_so-ServicelistColumnFilter.o livestatus_so-ServicelistStateColumn.o livestatus_so-store.o livestatus_so-Store.o livestatus_so-StringColumn.o livestatus_so-StringColumnFilter.o livestatus_so-strutil.o livestatus_so-Table.o livestatus_so-TableColumns.o livestatus_so-TableCommands.o livestatus_so-TableContacts.o livestatus_so-TableDownComm.o livestatus_so-TableHostgroups.o livestatus_so-TableHosts.o livestatus_so-TableServicegroups.o livestatus_so-TableServices.o livestatus_so-TableStatus.o livestatus_so-LogEntry.o livestatus_so-Logfile.o livestatus_so-TableLog.o livestatus_so-TableTimeperiods.o livestatus_so-TableContactgroups.o livestatus_so-ContactgroupsMemberColumn.o livestatus_so-OffsetStringMacroColumn.o livestatus_so-OffsetStringServiceMacroColumn.o livestatus_so-OffsetStringHostMacroColumn.o livestatus_so-StatsColumn.o livestatus_so-IntAggregator.o livestatus_so-CountAggregator.o livestatus_so-DoubleAggregator.o livestatus_so-AttributelistColumn.o livestatus_so-AttributelistFilter.o livestatus_so-global_counters.o livestatus_so-module.o livestatus_so-logger.o livestatus_so-waittriggers.o livestatus_so-TimeperiodsCache.o livestatus_so-pnp4nagios.o livestatus_so-ContactgroupsColumn.o livestatus_so-opids.o livestatus_so-auth.o livestatus_so-livechecking.o
    ranlib livestatus.so
    gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT unixcat.o -MD -MP -MF .deps/unixcat.Tpo -c -o unixcat.o unixcat.c
    mv -f .deps/unixcat.Tpo .deps/unixcat.Po
    gcc -g -O2 -o unixcat unixcat.o -lpthread
    gcc -x c -Wno-deprecated-declarations -g -O2 -I.. -s -o livecheck livecheck.c strutil.cc check_icmp.c
    rm -f plugin.so
    g++ -s -fPIC -shared livestatus_so-AndingFilter.o livestatus_so-ClientQueue.o livestatus_so-Column.o livestatus_so-ColumnsColumn.o livestatus_so-CustomVarsExplicitColumn.o livestatus_so-ContactsColumn.o livestatus_so-CustomVarsColumn.o livestatus_so-CustomVarsFilter.o livestatus_so-DoubleColumn.o livestatus_so-DoubleColumnFilter.o livestatus_so-DowntimeOrComment.o livestatus_so-DownCommColumn.o livestatus_so-EmptyColumn.o livestatus_so-Filter.o livestatus_so-GlobalCountersColumn.o livestatus_so-HostContactsColumn.o livestatus_so-HostgroupsColumn.o livestatus_so-HostlistColumn.o livestatus_so-HostlistColumnFilter.o livestatus_so-HostlistStateColumn.o livestatus_so-HostSpecialIntColumn.o livestatus_so-ServiceSpecialIntColumn.o livestatus_so-InputBuffer.o livestatus_so-IntColumn.o livestatus_so-IntColumnFilter.o livestatus_so-ListColumn.o livestatus_so-ListColumnFilter.o livestatus_so-OffsetDoubleColumn.o livestatus_so-OffsetIntColumn.o livestatus_so-OffsetStringColumn.o livestatus_so-OffsetTimeperiodColumn.o livestatus_so-OringFilter.o livestatus_so-OutputBuffer.o livestatus_so-OffsetTimeColumn.o livestatus_so-TimePointerColumn.o livestatus_so-TimeColumnFilter.o livestatus_so-PerfdataAggregator.o livestatus_so-Query.o livestatus_so-ServiceContactsColumn.o livestatus_so-ServicegroupsColumn.o livestatus_so-ServicelistColumn.o livestatus_so-ServicelistColumnFilter.o livestatus_so-ServicelistStateColumn.o livestatus_so-store.o livestatus_so-Store.o livestatus_so-StringColumn.o livestatus_so-StringColumnFilter.o livestatus_so-strutil.o livestatus_so-Table.o livestatus_so-TableColumns.o livestatus_so-TableCommands.o livestatus_so-TableContacts.o livestatus_so-TableDownComm.o livestatus_so-TableHostgroups.o livestatus_so-TableHosts.o livestatus_so-TableServicegroups.o livestatus_so-TableServices.o livestatus_so-TableStatus.o livestatus_so-LogEntry.o livestatus_so-Logfile.o livestatus_so-TableLog.o livestatus_so-TableTimeperiods.o livestatus_so-TableContactgroups.o livestatus_so-ContactgroupsMemberColumn.o livestatus_so-OffsetStringMacroColumn.o livestatus_so-OffsetStringServiceMacroColumn.o livestatus_so-OffsetStringHostMacroColumn.o livestatus_so-StatsColumn.o livestatus_so-IntAggregator.o livestatus_so-CountAggregator.o livestatus_so-DoubleAggregator.o livestatus_so-AttributelistColumn.o livestatus_so-AttributelistFilter.o livestatus_so-global_counters.o livestatus_so-module.o livestatus_so-logger.o livestatus_so-waittriggers.o livestatus_so-TimeperiodsCache.o livestatus_so-pnp4nagios.o livestatus_so-ContactgroupsColumn.o livestatus_so-opids.o livestatus_so-auth.o livestatus_so-livechecking.o -o livestatus.o -lpthread -lstdc++
    make[2]: ディレクトリ /usr/local/src/mk-livestatus-1.2.0p3/src' から出ます
    make[2]: ディレクトリ
    /usr/local/src/mk-livestatus-1.2.0p3′ に入ります
    make[2]: all-am' に対して行うべき事はありません.
    make[2]: ディレクトリ
    /usr/local/src/mk-livestatus-1.2.0p3′ から出ます
    make[1]: ディレクトリ /usr/local/src/mk-livestatus-1.2.0p3' から出ます

  9. install
  10. [root@ns mk-livestatus-1.2.0p3]# make install
    Making install in src
    make[1]: ディレクトリ
    /usr/local/src/mk-livestatus-1.2.0p3/src’ に入ります
    make[2]: ディレクトリ /usr/local/src/mk-livestatus-1.2.0p3/src' に入ります
    test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
    /usr/bin/install -c unixcat '/usr/local/bin'
    test -z "/usr/local/lib/mk-livestatus" || /bin/mkdir -p "/usr/local/lib/mk-livestatus"
    /usr/bin/install -c -m 644 livestatus.so '/usr/local/lib/mk-livestatus'
    ( cd '/usr/local/lib/mk-livestatus' && ranlib livestatus.so )
    test -z "/usr/local/lib/mk-livestatus" || /bin/mkdir -p "/usr/local/lib/mk-livestatus"
    /usr/bin/install -c livecheck '/usr/local/lib/mk-livestatus'
    /bin/sh /usr/local/src/mk-livestatus-1.2.0p3/install-sh -d /usr/local/lib/mk-livestatus
    /usr/bin/install -c livestatus.o /usr/local/lib/mk-livestatus
    rm -f /usr/local/lib/mk-livestatus/livestatus.so
    make[2]: ディレクトリ
    /usr/local/src/mk-livestatus-1.2.0p3/src’ から出ます
    make[1]: ディレクトリ /usr/local/src/mk-livestatus-1.2.0p3/src' から出ます
    make[1]: ディレクトリ
    /usr/local/src/mk-livestatus-1.2.0p3′ に入ります
    make[2]: ディレクトリ /usr/local/src/mk-livestatus-1.2.0p3' に入ります
    make[2]:
    install-exec-am’ に対して行うべき事はありません.
    make[2]: install-data-am' に対して行うべき事はありません.
    make[2]: ディレクトリ
    /usr/local/src/mk-livestatus-1.2.0p3′ から出ます
    make[1]: ディレクトリ `/usr/local/src/mk-livestatus-1.2.0p3′ から出ます

  11. Edit nagios.cfg
  12. Nagios設定ファイルnagios.cfgを編集します

    [root@ns mk-livestatus-1.2.0p3]# vi /usr/local/nagios/etc/nagios.cfg

    ##############################################################################
    #
    # NAGIOS.CFG – Sample Main Config File for Nagios 3.4.1
    #
    # Read the documentation for more information on this configuration
    # file. I’ve provided some comments here, but things may not be so
    # clear without further explanation.
    #
    # Last Modified: 12-14-2008
    #
    ##############################################################################
    (snip)
    # EVENT BROKER OPTIONS
    # Controls what (if any) data gets sent to the event broker.
    # Values: 0 = Broker nothing
    event_broker_options=-1
    (snip)
    # EVENT BROKER MODULE(S)
    # This directive is used to specify an event broker module that should
    # by loaded by Nagios at startup. Use multiple directives if you want
    # to load more than one module. Arguments that should be passed to
    # the module at startup are seperated from the module path by a space.
    broker_module=/usr/local/lib/mk-livestatus/livestatus.o /usr/local/nagios/var/rw/live

    /usr/local/nagios/var/rw/liveの部分は環境に合わせて変更して下さい
    本家サイトには下記の記述があります

    The only mandatory argument is the complete path to the UNIX socket that Livestatus shall create (/var/lib/nagios/rw/live in our example). Please change that if needed. The best is probably to put it into the same directory as the Nagios pipe. Just as Nagios does with its pipe, Livestatus creates the socket with the permissions 0660. If the directory that the socket is located in has the SGID bit for the group set (chmod g+s), then the socket will be owned by the same group as the directory.

  13. Restart Nagios
  14. Nagiosを再起動します

    [root@ns mk-livestatus-1.2.0p3]# /etc/init.d/nagios restart
    Running configuration check…done.
    Stopping nagios: .done.
    Starting nagios: done.

  15. 動作確認
  16. MK Livestatusが有効になっているか確認します

    [root@ns mk-livestatus-1.2.0p3]# ls -l /usr/local/nagios/var/rw/
    合計 0
    srw-rw—- 1 nagios nagcmd 0 12月 6 15:50 live

    [root@ns mk-livestatus-1.2.0p3]# grep live /usr/local/nagios/var/nagios.log
    [1354776651] livestatus: Livestatus 1.2.0p3 by Mathias Kettner. Socket: ‘/usr/local/nagios/var/rw/live’
    [1354776651] livestatus: Please visit us at http://mathias-kettner.de/
    [1354776651] livestatus: Hint: please try out OMD – the Open Monitoring Distribution
    [1354776651] livestatus: Please visit OMD at http://omdistro.org
    [1354776651] livestatus: Finished initialization. Further log messages go to /usr/local/nagios/var/livestatus.log
    [1354776651] Event broker module ‘/usr/local/lib/mk-livestatus/livestatus.o’ initialized successfully.

次回はNagVisのインストールです

Leave a Reply

  

  

  


*