Consulta Nagvis

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
alex3105
Posts: 103
Joined: Sat Jul 28, 2018 10:54 am

Re: Consulta Nagvis

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Consulta Nagvis

Post 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.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
alex3105
Posts: 103
Joined: Sat Jul 28, 2018 10:54 am

Re: Consulta Nagvis

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Consulta Nagvis

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
alex3105
Posts: 103
Joined: Sat Jul 28, 2018 10:54 am

Re: Consulta Nagvis

Post 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)
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Consulta Nagvis

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
alex3105
Posts: 103
Joined: Sat Jul 28, 2018 10:54 am

Re: Consulta Nagvis

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Consulta Nagvis

Post 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?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
alex3105
Posts: 103
Joined: Sat Jul 28, 2018 10:54 am

Re: Consulta Nagvis

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Consulta Nagvis

Post by scottwilkerson »

and did you start the ndo2db service?

Code: Select all

service ndo2db start
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked