Install Nagios xi in a custom location

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Install Nagios xi in a custom location

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
karthek
Posts: 64
Joined: Fri Aug 14, 2015 5:55 am
Location: INDIA

Re: Install Nagios xi in a custom location

Post 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
You do not have the required permissions to view the files attached to this post.
"Machines don't make mistakes, we do."
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Install Nagios xi in a custom location

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
karthek
Posts: 64
Joined: Fri Aug 14, 2015 5:55 am
Location: INDIA

Re: Install Nagios xi in a custom location

Post 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.
"Machines don't make mistakes, we do."
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1

Re: Install Nagios xi in a custom location

Post 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?
Former Nagios Employee.
me.
karthek
Posts: 64
Joined: Fri Aug 14, 2015 5:55 am
Location: INDIA

Re: Install Nagios xi in a custom location

Post by karthek »

Sure. Go ahead.
"Machines don't make mistakes, we do."