Page 1 of 1

Multiple Nagios in one Server

Posted: Thu May 30, 2013 5:43 am
by skumar7466
HI!

We have two nagios servers for monitoring network devices and servers respectively..Is it possible to have these two in single machine with different path , so that i can have individual configurations and map details...

It should be like this below.

http://10.10.10.1/servers
http://10.10.10.1/network

Is it possible..?

Re: Multiple Nagios in one Server

Posted: Thu May 30, 2013 7:51 am
by leonhearts
Install nagios under 2 different directory. Then in Apache server setup path corresponding to each path. As long as your server can handle the load, this should be achievable

Re: Multiple Nagios in one Server

Posted: Thu May 30, 2013 10:49 am
by slansing

Re: Multiple Nagios in one Server

Posted: Fri May 31, 2013 12:21 am
by skumar7466
Ok..How about the service...will have only /etc/init.d/nagios . so how do we restart the service if we doing any changes in one nagios.

Re: Multiple Nagios in one Server

Posted: Fri May 31, 2013 10:04 am
by lmiltchev
The init script should start, stop, restart, and reload all copies of Nagios.

Re: Multiple Nagios in one Server

Posted: Fri May 31, 2013 10:05 am
by slansing
One last thing you should check is your init script (if you're using one). The init script should start, stop, restart, and reload all copies of Nagios (if that's what you want it to do).
You can either use the default one, or you could create your own init script, or service.

Re: Multiple Nagios in one Server

Posted: Mon Jun 03, 2013 12:52 am
by skumar7466
I know basic scripts only not much more...Can you help me to create the script..

First nagios i have installed in the path, /usr/local/nagios, this will have default service /etc/init.d/nagios. let it be, dont have any issue...but for the
Second nagios, i will install in the path , /usr/local/selva, how do we create service script for this as /etc/init.d/selva.

Re: Multiple Nagios in one Server

Posted: Mon Jun 03, 2013 10:46 am
by slansing
You will have to look at how service init scripts work in the distro you are using, either Debain based, or RHEL based.

RHEL/CENTOS example:

http://support.suso.com/supki/CentOS_In ... up_scripts