Page 2 of 7

Re: Consulta Nagvis

Posted: Tue Aug 14, 2018 2:40 pm
by alex3105
Reviewing the installation I have come to perform the installation following the following sequence:

root@linux# wget 'http://www.mathias-kettner.de/download/ ... 2.8.tar.gz'
root@linux# tar xzf mk-livestatus-1.2.8.tar.gz
root@linux# cd mk-livestatus-1.2.8
user@host:~$ ./configure
root@linux# make install

and the following error message appears:

[root@localhost mk-livestatus-1.2.8]# make install
Making install in src
make[1]: se ingresa al directorio `/home/nagios/Descargas/mk-livestatus-1.2.8/src'
source='AndingFilter.cc' object='livestatus_so-AndingFilter.o' libtool=no \
DEPDIR=.deps depmode=none /bin/sh ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I.. -std=c++11 -fPIC -c -o livestatus_so-AndingFilter.o `test -f 'AndingFilter.cc' || echo './'`AndingFilter.cc
../depcomp: línea 772: exec: g++: no se encontró
make[1]: *** [livestatus_so-AndingFilter.o] Error 127
make[1]: se sale del directorio `/home/nagios/Descargas/mk-livestatus-1.2.8/src'
make: *** [install-recursive] Error 1
[root@localhost mk-livestatus-1.2.8]#

I would be related to the problem that arises ... I have not found how to solve it, could you guide me how to continue

Re: Consulta Nagvis

Posted: Tue Aug 14, 2018 4:53 pm
by scottwilkerson
Sorry we do not produce livestatus, so I'm not familiar with the error you are getting, did you follow all the steps, one by one?

You may need to reach out to the developers of that project.

Re: Consulta Nagvis

Posted: Tue Aug 14, 2018 5:05 pm
by alex3105
Ok ... a query, could you tell me if instead of installing livestatus I install ndoutils I would have later problems with my implementation or maybe you have a link or link to install the ndoutils in centos 7 to end with nagvis.

Re: Consulta Nagvis

Posted: Wed Aug 15, 2018 8:27 am
by scottwilkerson
For ndoutils you can follow this guide
https://support.nagios.com/kb/article.php?id=406

Then in the Nagvis UI you would change the backend to ndo

Re: Consulta Nagvis

Posted: Wed Aug 15, 2018 5:15 pm
by alex3105
Can you confirm if I have to use this link to make the change?

http://docs.nagvis.org/1.4/en_US/backends.html

section ndo2db MySQL backend (ndomy)

Re: Consulta Nagvis

Posted: Thu Aug 16, 2018 8:18 am
by scottwilkerson
alex3105 wrote:Can you confirm if I have to use this link to make the change?

http://docs.nagvis.org/1.4/en_US/backends.html

section ndo2db MySQL backend (ndomy)
Yes that is the backend you would use the ndo2db

Re: Consulta Nagvis

Posted: Thu Aug 16, 2018 9:21 am
by alex3105
Dear, get to execute the next command

echo 'select * from nagios.nagios_logentries;' | mysql -u ndoutils -p'ndoutils_password'

but it does not show me records, previously the command

sysctl -e -p /etc/sysctl.conf

did not show the first 6 lines

Could you tell me some way to solve it?

Re: Consulta Nagvis

Posted: Thu Aug 16, 2018 10:04 am
by scottwilkerson
Can you run this again to verify you have ndo2db setup correctly

Code: Select all

grep broker /usr/local/nagios/etc/nagios.cfg
also, are you getting errors for ndo2db in the in the syslog?

Re: Consulta Nagvis

Posted: Thu Aug 16, 2018 10:59 am
by alex3105
Attached the result of the command:

#Controls what (if any) data gets sent to the event broker
#This directive is used to specify an event broker module that should
#broker_module=<modulepath>[moduleargs]
# broker_module =/somewhere/module1.o
#broker_module=/somewhere/module2.o arg1 arg2=3 debug=0
# 64 = Event broker
broker_module=/usr/local/nagios/bin/ndomod.o config_file=/usr/local/nagios/etc/ndomod.cfg

In the file: /var/log/messages I see status alerts of my computers monitored in this case switches

Re: Consulta Nagvis

Posted: Thu Aug 16, 2018 11:40 am
by scottwilkerson
and did you start the ndo2db service?

Code: Select all

service ndo2db start