localhost/Service Status - ndo2db is UNKNOWN [Solved]

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
abiswas
Posts: 2
Joined: Wed Oct 25, 2017 9:51 am

localhost/Service Status - ndo2db is UNKNOWN [Solved]

Post by abiswas »

We started having an error with one of ndo2db service for couple days now.

Nagios has detected a problem with this service.

Notification Type: PROBLEM

Service: Service Status - ndo2db
Host: localhost
Address: 127.0.0.1
State: UNKNOWN
Info:
● ndo2db.service - Nagios Data Out Daemon

I have narrowed it down to the binary /usr/local/nagios/bin/ndomod.o

When I execute it, I get
# /usr/local/nagios/bin/ndomod.o
Segmentation fault

I have tried compiling it myself with the result.

And here is the service status:

● ndo2db.service - Nagios Data Out Daemon
Loaded: loaded (/usr/lib/systemd/system/ndo2db.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2018-08-10 15:40:28 EDT; 4 days ago
Docs: http://www.nagios.org/documentation
Process: 30102 ExecStopPost=/bin/rm -f /usr/local/nagios/var/ndo2db.pid (code=exited, status=0/SUCCESS)
Process: 30099 ExecStart=/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg -f (code=exited, status=1/FAILURE)
Main PID: 30099 (code=exited, status=1/FAILURE)

Aug 10 15:40:28 sentry systemd[1]: Started Nagios Data Out Daemon.
Aug 10 15:40:28 sentry systemd[1]: Starting Nagios Data Out Daemon...
Aug 10 15:40:28 sentry systemd[1]: ndo2db.service: main process exited, code=exited, status=1/FAILURE
Aug 10 15:40:28 sentry systemd[1]: Unit ndo2db.service entered failed state.
Aug 10 15:40:28 sentry systemd[1]: ndo2db.service failed.

Any help is appreciated! Thanks!
Last edited by abiswas on Fri Aug 17, 2018 8:19 am, edited 1 time in total.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: localhost/Service Status - ndo2db is UNKNOWN

Post by tgriep »

The ndomod.o binary is not meant to be ran from the command line so that is why it is erring out when you do.

I would guess that the ndo2db service is not starting because of a left over lock or sock file so lets remove them and start the daemon.
Run this as root.

Code: Select all

rm -rf /usr/local/nagios/var/ndo.sock
rm -rf /usr/local/nagios/var/ndo2db.lock
service ndo2db start
Then check it to see if it started by running

Code: Select all

service ndo2db status
Let us know if it started for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
abiswas
Posts: 2
Joined: Wed Oct 25, 2017 9:51 am

Re: localhost/Service Status - ndo2db is UNKNOWN

Post by abiswas »

tgriep wrote:The ndomod.o binary is not meant to be ran from the command line so that is why it is erring out when you do.

I would guess that the ndo2db service is not starting because of a left over lock or sock file so lets remove them and start the daemon.
Run this as root.

Code: Select all

rm -rf /usr/local/nagios/var/ndo.sock
rm -rf /usr/local/nagios/var/ndo2db.lock
service ndo2db start
Then check it to see if it started by running

Code: Select all

service ndo2db status
Let us know if it started for you.
Thanks!! That worked out perfectly
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: localhost/Service Status - ndo2db is UNKNOWN

Post by scottwilkerson »

abiswas wrote:
tgriep wrote:The ndomod.o binary is not meant to be ran from the command line so that is why it is erring out when you do.

I would guess that the ndo2db service is not starting because of a left over lock or sock file so lets remove them and start the daemon.
Run this as root.

Code: Select all

rm -rf /usr/local/nagios/var/ndo.sock
rm -rf /usr/local/nagios/var/ndo2db.lock
service ndo2db start
Then check it to see if it started by running

Code: Select all

service ndo2db status
Let us know if it started for you.
Thanks!! That worked out perfectly
Great Closing thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked