Page 1 of 1
NRPE issues
Posted: Tue May 16, 2017 10:29 am
by hsauerbach
In MySQL -- nagiosql.tbl_service table is being updated but nagios.nagios_services is NOT updating is it suppose too?
Yes. The Nagios database is used for display, so that suggests the checks are running and notifying properly, but just not updating the webUI. Are you receiving notifications? The nagios.log just has a bunch of ndomod errors in it.
Code: Select all[1494883743] ndomod: Error writing to data sink! Some output may get lost...
[1494883743] ndomod: Please check remote ndo2db log, database connection or SSL Parameters
Is there some sort of limiter in place? Those errors are interspersed with it working. Perhaps there are two ndo2db running? You can check with ps -aef | grep ndo2db
on the nagios console server:
[root@nsc-cld-dma-001 etc]# ps -aef | grep ndo2db
nagios 3740 1 0 May15 ? 00:00:00 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
root 13362 23464 0 11:19 pts/0 00:00:00 grep --color=auto ndo2db
On the client there is nothing running.
If I manually run /usr/local/nagiosxi/scripts/reconfigure_nagios.sh will that update nagios database?
Re: NRPE issues
Posted: Tue May 16, 2017 11:48 am
by avandemore
I'm having a hard time understanding what your root problem is. This is the output from a working XI system:
Code: Select all
# ps -aef | grep ndo2db
nagios 1571 1 0 May08 ? 00:00:00 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
nagios 1686 1571 0 May08 ? 00:00:06 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
nagios 1687 1686 0 May08 ? 00:01:42 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
root 2757 1620 0 11:47 pts/1 00:00:00 grep ndo2db
What does this show?
Re: NRPE issues
Posted: Tue May 16, 2017 11:58 am
by hsauerbach
Here are my console outputs:
[root]# ps -aef | grep ndo2db
nagios 3740 1 0 May15 ? 00:00:00 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
root 14197 23464 0 12:56 pts/0 00:00:00 grep --color=auto ndo2db
[root]# service ndo2db status
ndo2db (pid 3740) is running...
Re: NRPE issues
Posted: Tue May 16, 2017 12:30 pm
by dwhitfield
I don't know if we want to just lock this, but you've only posted about ndo2db issues in here, rather than the NRPE issues you were talking about in
https://support.nagios.com/forum/viewto ... 1&start=20.
Perhaps these two will help you understand the difference:
NDOUtils:
https://assets.nagios.com/downloads/nag ... OUtils.pdf
NRPE:
https://assets.nagios.com/downloads/nag ... e/NRPE.pdf
The TLDR version though is NDO is database stuff and NRPE is not (although you could check databases with NRPE). There should not be ndo on the remote server (unless the remote server is also running XI), but NRPE should be running on the remote server if you want to run standard checks (rather than using SNMP, WMI, or something else that does not require remote check execution)
Re: NRPE issues
Posted: Tue May 16, 2017 12:39 pm
by hsauerbach
All,
I changed the password for ndoutils in the ndo2db.cfg file because the original one did not work. The services are being inserted into the Nagios database and seem to be working. Everything is being done from the NagiosXI console.
Thanks to all the Nagios Support people.
Re: NRPE issues
Posted: Tue May 16, 2017 12:42 pm
by dwhitfield
hsauerbach wrote: The services are being inserted into the Nagios database and seem to be working.
Are we ready to lock this thread up now? I'm going to go back to the other threads and see if there are outstanding issues there.
Re: NRPE issues
Posted: Tue May 16, 2017 12:52 pm
by hsauerbach
yes let's lock this thread up.. Thanks