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!
localhost/Service Status - ndo2db is UNKNOWN [Solved]
localhost/Service Status - ndo2db is UNKNOWN [Solved]
Last edited by abiswas on Fri Aug 17, 2018 8:19 am, edited 1 time in total.
Re: localhost/Service Status - ndo2db is UNKNOWN
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.
Then check it to see if it started by running
Let us know if it started for you.
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 startCode: Select all
service ndo2db statusBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: localhost/Service Status - ndo2db is UNKNOWN
Thanks!! That worked out perfectlytgriep 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.Then check it to see if it started by runningCode: Select all
rm -rf /usr/local/nagios/var/ndo.sock rm -rf /usr/local/nagios/var/ndo2db.lock service ndo2db startLet us know if it started for you.Code: Select all
service ndo2db status
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: localhost/Service Status - ndo2db is UNKNOWN
Great Closing threadabiswas wrote:Thanks!! That worked out perfectlytgriep 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.Then check it to see if it started by runningCode: Select all
rm -rf /usr/local/nagios/var/ndo.sock rm -rf /usr/local/nagios/var/ndo2db.lock service ndo2db startLet us know if it started for you.Code: Select all
service ndo2db status