Multiple Nagios in one Server

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
skumar7466
Posts: 15
Joined: Wed May 22, 2013 3:38 am

Multiple Nagios in one Server

Post 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..?
leonhearts
Posts: 6
Joined: Wed May 29, 2013 10:52 pm

Re: Multiple Nagios in one Server

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Multiple Nagios in one Server

Post by slansing »

skumar7466
Posts: 15
Joined: Wed May 22, 2013 3:38 am

Re: Multiple Nagios in one Server

Post 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.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Multiple Nagios in one Server

Post by lmiltchev »

The init script should start, stop, restart, and reload all copies of Nagios.
Be sure to check out our Knowledgebase for helpful articles and solutions!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Multiple Nagios in one Server

Post 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.
skumar7466
Posts: 15
Joined: Wed May 22, 2013 3:38 am

Re: Multiple Nagios in one Server

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Multiple Nagios in one Server

Post 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
Locked