Page 2 of 2

Re: Install Nagios XI in a custom location

Posted: Thu Aug 27, 2015 3:06 pm
by tgriep
Can you run the following in a shell on the XI system and post the output here?

Code: Select all

service ndo2db start
service npcd start
service nagios start
You may want to check these log files for any errors and post them here.

Code: Select all

/var/log/messages
/usr/local/nagios/var/nagios.log

Re: Install Nagios XI in a custom location

Posted: Fri Aug 28, 2015 1:07 am
by karthek
I tried that, but nothing helps.
please look into this. I guess something is weird.

Code: Select all

[root@local ~]# mv /usr/local/nagios /opt/box/
[root@local ~]# mv /usr/local/nagiosmobile /opt/box/
[root@local ~]# mv /usr/local/nagiosxi /opt/box/
[root@local ~]# mv /usr/local/nagvis /opt/box/
[root@local ~]# mv /usr/local/nrdp /opt/box/
[root@local ~]# mv /usr/local/nsis /opt/box/
[root@local ~]# ls /usr/local/
bin  etc  games  include  lib  lib64  libexec  ncpa  sbin  share  src  var
[root@local ~]# ls /opt/box/
bin  etc  libexec  nagiosmobile  nagiosxi  nagvis  nrdp  nsis  sbin  share  var
[root@local ~]# ln -s /opt/box/nagios /usr/local/nagios
[root@local ~]# ln -s /opt/box/nagiosmobile /usr/local/nagiosmobile
[root@local ~]# ln -s /opt/box/nagiosxi /usr/local/nagiosxi
[root@local ~]# ln -s /opt/box/nagvis /usr/local/nagvis
[root@local ~]# ln -s /opt/box/nrdp /usr/local/nrdp
[root@local ~]# ln -s /opt/box/nsis /usr/local/nsis
[root@local ~]# chown nagios.nagios /usr/local/nagiosxi
[root@local ~]# chown apache.apache /usr/local/nagvis
[root@local ~]# chown nagios.nagios /usr/local/nrdp
[root@local ~]# service ndo2db start
Executable file /usr/local/nagios/bin/ndo2db not found.  Exiting.
[root@local ~]# service npcd start
/etc/init.d/npcd: line 49: /usr/local/nagios/bin/npcd: No such file or directory
Could not start NPCD
[root@local ~]# service nagios start
Executable file /usr/local/nagios/bin/nagios not found. Exiting.
[root@local ~]# cd /usr/local/nagios
-bash: cd: /usr/local/nagios: No such file or directory
And there's nothing relevant in error logs from both locations you mentioned.
----Edit: Added screenshot

Re: Install Nagios XI in a custom location

Posted: Fri Aug 28, 2015 10:38 am
by lmiltchev
Can you start nagios and ndo2db by running the following commands?

Code: Select all

/etc/init.d/nagios start
/etc/init.d/ndo2db start

Re: Install Nagios XI in a custom location

Posted: Wed Sep 02, 2015 5:16 am
by karthek
I'm sorry about the delayed response.

We couldn't get anything to work properly after the changes we made by moving the files.

So, we've re-installed the setup in the default location. As of now we are not going to think anything on custom location.

We'll update if we plan to do.

Re: Install Nagios XI in a custom location

Posted: Wed Sep 02, 2015 9:15 am
by hsmith
karthek wrote:I'm sorry about the delayed response.

We couldn't get anything to work properly after the changes we made by moving the files.

So, we've re-installed the setup in the default location. As of now we are not going to think anything on custom location.

We'll update if we plan to do.
Am I all right to close this one out?

Re: Install Nagios XI in a custom location

Posted: Wed Sep 02, 2015 10:01 am
by karthek
Sure. Go ahead.