View FAQ

[ Return To FAQ Index | Search The FAQs ]


FAQ Database : Nagios

Title:Running multiple instances of Nagios on the same machine
FAQ ID:F0022
Submitted By:Ethan Galstad 
Last Updated:07/24/2002

Description:

User would like to install and run multiple instances of Nagios on a single machine.

 

Solution:

You can run multiple instances of Nagios on the same machine, if you ensure that the following variables are unique for each instance of Nagios...

  • Main configuration file
  • Status file
  • External command file
  • Log file
  • Log archive path
  • Lock file
  • Comment file
  • Downtime file
  • Retention file

If you are using the web interface, you will have to setup separate directories to hold the CGIs for each instance of Nagios and create appropriate script aliases in your web server configuration file. This is necessary because the CGI configuration file must be unique for each setup of CGIs, as it contains a reference to which main configuration file the CGIs should read.

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).

 

Related FAQs:
F0021Hosts and services intermittently disappear from the web interface
Keywords:multiple instance nagios