Livestatus on Nagios 5
-
optionstechnology
- Posts: 234
- Joined: Thu Nov 17, 2016 11:26 am
Livestatus on Nagios 5
I am running Nagios 5.3.1 on RHEL 7
Trying to get livestatus installed so I can use Thruk
Has anyone successfully done this? I have tried the last stable 1.2.8 but when I install it scrambles the nagios service
Trying to get livestatus installed so I can use Thruk
Has anyone successfully done this? I have tried the last stable 1.2.8 but when I install it scrambles the nagios service
Re: Livestatus on Nagios 5
We can help with Nagios, but unfortunately livestatus isn't our product so we're limited on the support we can provide. The same thing applies to Thruk.
Former Nagios Employee
-
SteveBeauchemin
- Posts: 524
- Joined: Mon Oct 14, 2013 7:19 pm
Re: Livestatus on Nagios 5
I use livestatus and NagVis on Nagios XI 5.4. You are compiling livestatus right?
Remember to use the nagios 4 parameter.
The livestatus.o file gets sent to /usr/local/lib/mk-livestatus...
Steve B
Remember to use the nagios 4 parameter.
Code: Select all
tar -xzvf mk-live*
cd mk-live*
./configure --with-nagios4
make
make install
Steve B
XI 5.7.3 / Core 4.4.6 / NagVis 1.9.8 / LiveStatus 1.5.0p11 / RRDCached 1.7.0 / Redis 3.2.8 /
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Livestatus on Nagios 5
Thanks @SteveBeauchemin!
One thing to note is the version of Core is different between 5.3.1 and 5.4, but we do not test livestatus, so I do not know if this makes a difference.
One thing to note is the version of Core is different between 5.3.1 and 5.4, but we do not test livestatus, so I do not know if this makes a difference.
-
optionstechnology
- Posts: 234
- Joined: Thu Nov 17, 2016 11:26 am
Re: Livestatus on Nagios 5
Thanks for your reply SteveBeauchemin, I've ran though the installer as normal- using version 1.2.8
It compiles fine with the --with-nagios4 option and all seems to be working fine-
This is what I add to the nagios.cfg-
When I restart Nagios it reports that the monitoring engine is not running and I cannot start it...
It compiles fine with the --with-nagios4 option and all seems to be working fine-
Code: Select all
[root@opnag01p tmp]# cd mk-livestatus-1.2.8
[root@opnag01p mk-livestatus-1.2.8]# ./configure --with-nagios4
checking for a BSD-compatible install... /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 gcc-5... no
checking for clang-3.9... no
checking for clang-3.8... no
checking for clang-3.7... no
checking for clang-3.6... no
checking for clang-3.5... no
checking for clang-3.4... no
checking for gcc-4.9... no
checking for gcc-4.8... no
checking for gcc... gcc
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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++-5... no
checking for clang++-3.9... no
checking for clang++-3.8... no
checking for clang++-3.7... no
checking for clang++-3.6... no
checking for clang++-3.5... no
checking for clang++-3.4... no
checking for g++-4.9... no
checking for g++-4.8... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for ranlib... ranlib
checking for ar... ar
checking the archiver (ar) interface... ar
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: config.h is unchanged
config.status: executing depfiles commands
[root@opnag01p mk-livestatus-1.2.8]# make
make all-recursive
make[1]: Entering directory `/tmp/mk-livestatus-1.2.8'
Making all in src
make[2]: Entering directory `/tmp/mk-livestatus-1.2.8/src'
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-DynamicColumn.o livestatus_so-EmptyColumn.o livestatus_so-NullColumn.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-MetricsColumn.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_c.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-StatusSpecialIntColumn.o livestatus_so-HostSpecialDoubleColumn.o livestatus_so-TableCommands.o livestatus_so-TableContacts.o livestatus_so-TableDownComm.o livestatus_so-TableHostgroups.o livestatus_so-ServiceSpecialDoubleColumn.o livestatus_so-TableHosts.o livestatus_so-TableServicegroups.o livestatus_so-TableServices.o livestatus_so-TableStatus.o livestatus_so-LogEntry.o livestatus_so-LogCache.o livestatus_so-Logfile.o livestatus_so-TableStateHistory.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-BlobColumn.o livestatus_so-HostFileColumn.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-mk_inventory.o livestatus_so-ContactgroupsColumn.o livestatus_so-CustomTimeperiodColumn.o livestatus_so-HostServiceState.o livestatus_so-opids.o livestatus_so-auth.o -o livestatus.o -lpthread -static-libstdc++
make[2]: Leaving directory `/tmp/mk-livestatus-1.2.8/src'
make[2]: Entering directory `/tmp/mk-livestatus-1.2.8'
make[2]: Leaving directory `/tmp/mk-livestatus-1.2.8'
make[1]: Leaving directory `/tmp/mk-livestatus-1.2.8'
[root@opnag01p mk-livestatus-1.2.8]# make install
Making install in src
make[1]: Entering directory `/tmp/mk-livestatus-1.2.8/src'
make[2]: Entering directory `/tmp/mk-livestatus-1.2.8/src'
/bin/mkdir -p '/usr/local/bin'
/bin/install -c unixcat '/usr/local/bin'
/bin/mkdir -p '/usr/local/lib/mk-livestatus'
/bin/install -c -m 644 livestatus.so '/usr/local/lib/mk-livestatus'
( cd '/usr/local/lib/mk-livestatus' && ranlib livestatus.so )
/bin/sh /tmp/mk-livestatus-1.2.8/install-sh -d /usr/local/lib/mk-livestatus
/bin/install -c livestatus.o /usr/local/lib/mk-livestatus
rm -f /usr/local/lib/mk-livestatus/livestatus.so
make[2]: Leaving directory `/tmp/mk-livestatus-1.2.8/src'
make[1]: Leaving directory `/tmp/mk-livestatus-1.2.8/src'
make[1]: Entering directory `/tmp/mk-livestatus-1.2.8'
make[2]: Entering directory `/tmp/mk-livestatus-1.2.8'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/tmp/mk-livestatus-1.2.8'
make[1]: Leaving directory `/tmp/mk-livestatus-1.2.8'
[root@opnag01p mk-livestatus-1.2.8]# ./configure --with-nagios4
I can see that the livestatus.o exists fine, but I cannot find a 'live' file anywhere....broker_module=/usr/local/lib/mk-livestatus/livestatus.o /usr/local/nagios/var/rw/live
When I restart Nagios it reports that the monitoring engine is not running and I cannot start it...
Code: Select all
â nagios.service - LSB: Starts and stops the Nagios monitoring server
Loaded: loaded (/etc/rc.d/init.d/nagios; bad; vendor preset: disabled)
Active: active (exited) since Tue 2017-01-17 17:29:53 GMT; 16h ago
Docs: man:systemd-sysv-generator(8)
Process: 14995 ExecStop=/etc/rc.d/init.d/nagios stop (code=exited, status=0/SUCCESS)
Process: 15016 ExecStart=/etc/rc.d/init.d/nagios start (code=exited, status=0/SUCCESS)
Jan 17 17:29:53 opnag01p.options-it.com nagios[15044]: wproc: Registry request: name=Core Worker 15048;pid=15048
Jan 17 17:29:53 opnag01p.options-it.com nagios[15044]: wproc: Registry request: name=Core Worker 15051;pid=15051
Jan 17 17:29:53 opnag01p.options-it.com nagios[15044]: wproc: Registry request: name=Core Worker 15062;pid=15062
Jan 17 17:29:53 opnag01p.options-it.com nagios[15044]: wproc: Registry request: name=Core Worker 15052;pid=15052
Jan 17 17:29:53 opnag01p.options-it.com nagios[15044]: wproc: Registry request: name=Core Worker 15065;pid=15065
Jan 17 17:29:53 opnag01p.options-it.com nagios[15044]: wproc: Registry request: name=Core Worker 15054;pid=15054
Jan 17 17:29:53 opnag01p.options-it.com nagios[15044]: wproc: Registry request: name=Core Worker 15055;pid=15055
Jan 17 17:29:53 opnag01p.options-it.com nagios[15044]: wproc: Registry request: name=Core Worker 15056;pid=15056
Jan 17 17:29:53 opnag01p.options-it.com nagios[15016]: Starting nagios: done.
Jan 17 17:29:53 opnag01p.options-it.com systemd[1]: Started LSB: Starts and stops the Nagios monitoring server.
-
SteveBeauchemin
- Posts: 524
- Joined: Mon Oct 14, 2013 7:19 pm
Re: Livestatus on Nagios 5
For what its worth - I have a large installation and had to increase some livestatus defaults.
In nagios.cfg I have
If you read the livestatus web site they do say something about default settings too small, and Nagios failing to run. It is obscure, but stated there somewhere.
Steve B
In nagios.cfg I have
Code: Select all
broker_module=/usr/local/lib/mk-livestatus/livestatus.o /usr/local/nagios/var/rw/live pnp_path=/usr/local/nagios/share/perfdata num_client_threads=30 thread_stack_size=262144Steve B
XI 5.7.3 / Core 4.4.6 / NagVis 1.9.8 / LiveStatus 1.5.0p11 / RRDCached 1.7.0 / Redis 3.2.8 /
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
Re: Livestatus on Nagios 5
Can you run the following commands and show the output in code wraps?
Code: Select all
systemctl stop nagios.service
systemctl stop ndo2db.service
systemctl start ndo2db.service
systemctl start nagios.service
systemctl status nagios.service
systemctl status ndo2db.service
grep live /usr/local/nagios/var/nagios.log
grep broker /usr/local/nagios/etc/nagios.cfg
ll /usr/local/lib/mk-livestatus
ll /usr/local/nagios/var/rwBe sure to check out our Knowledgebase for helpful articles and solutions!
-
optionstechnology
- Posts: 234
- Joined: Thu Nov 17, 2016 11:26 am
Re: Livestatus on Nagios 5
systemctl status nagios.service
systemctl status ndo2db.service
grep live /usr/local/nagios/var/nagios.log
grep broker /usr/local/nagios/etc/nagios.cfg
ll /usr/local/lib/mk-livestatus
ll /usr/local/nagios/var/rw
Code: Select all
â nagios.service - LSB: Starts and stops the Nagios monitoring server
Loaded: loaded (/etc/rc.d/init.d/nagios; bad; vendor preset: disabled)
Active: active (exited) since Thu 2017-01-19 09:11:03 GMT; 7s ago
Docs: man:systemd-sysv-generator(8)
Process: 12516 ExecStop=/etc/rc.d/init.d/nagios stop (code=exited, status=0/SUCCESS)
Process: 12697 ExecStart=/etc/rc.d/init.d/nagios start (code=exited, status=0/SUCCESS)
Jan 19 09:11:03 opnag01p.options-it.com nagios[12725]: wproc: Registry request: name=Core Worker 127...40
Jan 19 09:11:03 opnag01p.options-it.com nagios[12725]: wproc: Registry request: name=Core Worker 127...41
Jan 19 09:11:03 opnag01p.options-it.com nagios[12725]: wproc: Registry request: name=Core Worker 127...52
Jan 19 09:11:03 opnag01p.options-it.com nagios[12725]: wproc: Registry request: name=Core Worker 127...43
Jan 19 09:11:03 opnag01p.options-it.com nagios[12725]: wproc: Registry request: name=Core Worker 127...44
Jan 19 09:11:03 opnag01p.options-it.com nagios[12725]: wproc: Registry request: name=Core Worker 127...53
Jan 19 09:11:03 opnag01p.options-it.com nagios[12725]: wproc: Registry request: name=Core Worker 127...47
Jan 19 09:11:03 opnag01p.options-it.com nagios[12725]: wproc: Registry request: name=Core Worker 127...36
Jan 19 09:11:03 opnag01p.options-it.com nagios[12697]: Starting nagios: done.
Jan 19 09:11:03 opnag01p.options-it.com systemd[1]: Started LSB: Starts and stops the Nagios monito...er.
Hint: Some lines were ellipsized, use -l to show in full.
Code: Select all
â ndo2db.service - LSB: Nagios NDO2DB Initscript
Loaded: loaded (/etc/rc.d/init.d/ndo2db; bad; vendor preset: disabled)
Active: active (running) since Thu 2017-01-19 09:10:55 GMT; 19s ago
Docs: man:systemd-sysv-generator(8)
Process: 12536 ExecStop=/etc/rc.d/init.d/ndo2db stop (code=exited, status=0/SUCCESS)
Process: 12555 ExecStart=/etc/rc.d/init.d/ndo2db start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/ndo2db.service
ââ12563 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
Jan 19 09:10:55 opnag01p.options-it.com systemd[1]: Starting LSB: Nagios NDO2DB Initscript...
Jan 19 09:10:55 opnag01p.options-it.com ndo2db[12555]: Starting ndo2db: done.
Jan 19 09:10:55 opnag01p.options-it.com systemd[1]: Started LSB: Nagios NDO2DB Initscript.
Jan 19 09:11:03 opnag01p.options-it.com ndo2db[12756]: Successfully connected to MySQL database
Jan 19 09:11:03 opnag01p.options-it.com ndo2db[12755]: Successfully connected to MySQL database
Jan 19 09:11:03 opnag01p.options-it.com ndo2db[12755]: Successfully disconnected from MySQL database
Code: Select all
[1484674193] Error: Could not load module '/usr/local/lib/mk-livestatus/livestatus.o' -> /usr/local/lib/mk-livestatus/livestatus.o: undefined symbol: external_command_buffer_slots
[1484674193] Error: Failed to load module '/usr/local/lib/mk-livestatus/livestatus.o'.
[1484814577] Error: Could not load module '/usr/local/lib/mk-livestatus/livestatus.o' -> /usr/local/lib/mk-livestatus/livestatus.o: undefined symbol: external_command_buffer_slots
[1484814577] Error: Failed to load module '/usr/local/lib/mk-livestatus/livestatus.o'.
[1484814662] Error: Could not load module '/usr/local/lib/mk-livestatus/livestatus.o' -> /usr/local/lib/mk-livestatus/livestatus.o: undefined symbol: external_command_buffer_slots
[1484814662] Error: Failed to load module '/usr/local/lib/mk-livestatus/livestatus.o'.
[1484817063] Error: Could not load module '/usr/local/lib/mk-livestatus/livestatus.o' -> /usr/local/lib/mk-livestatus/livestatus.o: undefined symbol: external_command_buffer_slots
[1484817063] Error: Failed to load module '/usr/local/lib/mk-livestatus/livestatus.o'.
[root@opnag01p ~]# Code: Select all
broker_module=/usr/local/nagios/bin/ndomod.o config_file=/usr/local/nagios/etc/ndomod.cfg
#broker_module=/usr/local/lib/mk-livestatus/livestatus.o /usr/local/nagios/var/rw/live
#event_broker_options=-1
broker_module=/usr/local/lib/mk-livestatus/livestatus.o /usr/local/nagios/var/rw/live pnp_path=/usr/local/nagios/share/perfdata num_client_threads=30 thread_stack_size=262144
event_broker_options=-1
Code: Select all
total 720
-rwxr-xr-x 1 root root 733224 Jan 18 09:55 livestatus.o
Code: Select all
total 0
srw-rw---- 1 nagios nagcmd 0 Jan 19 09:11 nagios.qh
Re: Livestatus on Nagios 5
I'm not familiar with livestatus, but am only seeing one error stick out -
Take a look at this thread to see if it helps for compiling - https://support.nagios.com/forum/viewto ... 48#p206095
Code: Select all
[1484817063] Error: Could not load module '/usr/local/lib/mk-livestatus/livestatus.o' -> /usr/local/lib/mk-livestatus/livestatus.o: undefined symbol: external_command_buffer_slots
[1484817063] Error: Failed to load module '/usr/local/lib/mk-livestatus/livestatus.o'.Former Nagios Employee
-
SteveBeauchemin
- Posts: 524
- Joined: Mon Oct 14, 2013 7:19 pm
Re: Livestatus on Nagios 5
I just installed Nagios 5.4.0 on Red Hat 7. I use NagVis and livestatus. I just installed the latest livestatus.
These are my notes...
How to run livestatus on Nagios 5.4.0
Always I get the latest 'Stable' version number from here. I look for the check_mk raw edition version number. It is the same as the livestatus version number.
https://mathias-kettner.de/check_mk_dow ... p?HTML=yes
Then I download that specific stable version of livestatus.
Also acquire the Nagios Core 4.2.4 tar file to use in compiling livestatus. Extract it to make the libraries available.
Then do the livestatus install using the full path to the Nagios Core include files.
Start or restart Nagios XI and from a separate screen watch the Nagios Log file during the restart while using grep for livestatus
And like magic it works.
Steve B
These are my notes...
How to run livestatus on Nagios 5.4.0
Always I get the latest 'Stable' version number from here. I look for the check_mk raw edition version number. It is the same as the livestatus version number.
https://mathias-kettner.de/check_mk_dow ... p?HTML=yes
Then I download that specific stable version of livestatus.
Code: Select all
wget http://www.mathias-kettner.de/download/mk-livestatus-1.2.8p15.tar.gzCode: Select all
wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.2.4.tar.gz
tar -xzvf nagios-4.2.4.tar.gz
Code: Select all
tar -xzvf mk-livestatus-1.2.8p15.tar.gz
cd mk-livestatus-1.2.8p15/
./configure CPPFLAGS=-I/usr/local/src/Downloads/nagios-4.2.4/include/ --with-nagios4
make
make install
Code: Select all
tail -f /usr/local/nagios/var/nagios.log | grep livestatus
[1484848205] livestatus: Setting number of client threads to 30
[1484848205] livestatus: Setting size of thread stacks to 524288
[1484848205] livestatus: Livestatus 1.2.8p15 by Mathias Kettner. Socket: '/usr/local/nagios/var/rw/live'
[1484848205] livestatus: Please visit us at http://mathias-kettner.de/
[1484848205] livestatus: Hint: please try out OMD - the Open Monitoring Distribution
[1484848205] livestatus: Please visit OMD at http://omdistro.org
[1484848206] livestatus: Finished initialization. Further log messages go to /usr/local/nagios/var/livestatus.log
[1484848206] Event broker module '/usr/local/lib/mk-livestatus/livestatus.o' initialized successfully.
Steve B
XI 5.7.3 / Core 4.4.6 / NagVis 1.9.8 / LiveStatus 1.5.0p11 / RRDCached 1.7.0 / Redis 3.2.8 /
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1