Code: Select all
service ndo2db start
service npcd start
service nagios start
Code: Select all
/var/log/messages
/usr/local/nagios/var/nagios.log
Code: Select all
service ndo2db start
service npcd start
service nagios start
Code: Select all
/var/log/messages
/usr/local/nagios/var/nagios.log
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
Code: Select all
/etc/init.d/nagios start
/etc/init.d/ndo2db start
Am I all right to close this one out?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.