Page 1 of 1

Database Backend not starting

Posted: Mon Nov 04, 2019 1:38 pm
by sujitt
Nagios XI backend db not working

Nagios log shows this
[1572892206] Event broker module '/usr/local/nagios/bin/ndomod.o' deinitialized successfully.
[1572892254] ndomod: NDOMOD 2.1.2 (11-14-2016) Copyright (c) 2009 Nagios Core Development Team and Community Contributors
[1572892254] ndomod: Could not open data sink! I'll keep trying, but some output may get lost...
Nagios XI Version : 5.4.13
gaatlp82u.priv.aglrsc.com 3.10.0-957.27.2.el7.x86_64 x86_64
Red Hat Enterprise Linux Server release 7.6 (Maipo)
Gnome is not installed
Apache Information
PHP Version: 5.4.16
Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36
Server Name: gaatlp82u
Server Address: 10.7.9.92
Server Port: 80
Date/Time
PHP Timezone: America/New_York
PHP Time: Mon, 04 Nov 2019 13:38:14 -0500
System Time: Mon, 04 Nov 2019 13:38:14 -0500
Nagios XI Data
License ends in: NTOSNM

nagios (pid 2121) is running...
NPCD running (pid 1987).
ndo2db is not running
CPU Load 15: 1.00
Total Hosts: 213
Total Services: 4527
Function 'get_base_uri' returns: http://gaatlp82u/nagiosxi/
Function 'get_base_url' returns: http://gaatlp82u/nagiosxi/
Function 'get_backend_url(internal_call=false)' returns: http://gaatlp82u/nagiosxi/includes/comp ... rofile.php
Function 'get_backend_url(internal_call=true)' returns: http://localhost/nagiosxi/backend/
Ping Test localhost
Running:
/bin/ping -c 3 localhost 2>&1
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.026 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.036 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.034 ms

--- localhost ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2004ms
rtt min/avg/max/mdev = 0.026/0.032/0.036/0.004 ms
Test wget To localhost
WGET From URL: http://localhost/nagiosxi/includes/components/ccm/
Running:
/usr/bin/wget http://localhost/nagiosxi/includes/components/ccm/
--2019-11-04 13:38:16-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://localhost/nagiosxi/login.php?red ... f&noauth=1 [following]
--2019-11-04 13:38:16-- http://localhost/nagiosxi/login.php?red ... f&noauth=1
Reusing existing connection to [localhost]:80.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: '/usr/local/nagiosxi/tmp/ccm_index.tmp'

0K .......... .......... ..... 1.06M=0.02s

2019-11-04 13:38:16 (1.06 MB/s) - '/usr/local/nagiosxi/tmp/ccm_index.tmp' saved [25658]

Re: Database Backend not starting

Posted: Mon Nov 04, 2019 1:59 pm
by scottwilkerson
Can you show the output of

Code: Select all

service ndo2db start
service ndo2db status

Re: Database Backend not starting

Posted: Mon Nov 04, 2019 2:13 pm
by sujitt
Starting ndo2db (via systemctl): [ OK ]
[root@gaatlp82u var]# service ndo2db status
ndo2db is not running

Re: Database Backend not starting

Posted: Mon Nov 04, 2019 3:34 pm
by scottwilkerson
Lets run the following

Code: Select all

rm -rf /usr/local/nagios/var/ndo2db.lock /usr/local/nagios/var/ndo.sock
service ndo2db start
service ndo2db status
If you still get

Code: Select all

ndo2db is not running
send the result of the following:

Code: Select all

grep ndo2db /var/log/messages|tail -20

Re: Database Backend not starting

Posted: Mon Nov 04, 2019 3:55 pm
by sujitt
That worked ! thanks - rm command

Re: Database Backend not starting

Posted: Mon Nov 04, 2019 4:05 pm
by scottwilkerson
sujitt wrote:That worked ! thanks - rm command
Great!

Locking thread