Multiple instances of nagios

Mario Sergio Candian mscandian at freebsdbrasil.com.br
Thu Sep 30 18:21:21 CEST 2004


Hi guys,

i have one question about multiple instances of nagios. I installed the
nagios in the /usr/home/eksffa/public_html/nagios/ directory.

My configure line:
./configure --prefix=/usr/home/eksffa/public_html/nagios
--with-cgiurl=/nagios/cgi-bin --with-htmurl=/nagios
--with-nagios-user=nagios --with-nagios-grp=nagios

Inside the directory where the nagios was installed, i create a new
directory, "mdbrasil/", and i copied the sbin/ directory (with the cgi
scripts) for there.

(root at webmail) # ls -lga
total 3010
drwxr-xr-x  9 nagios  nagios        512 Sep 30 13:10 ./
drwxr-xr-x  6 eksffa  operator      512 Sep 17 17:11 ../
drwxrwxr-x  2 nagios  nagios        512 Sep 29 18:02 bin/
drwxrwxr-x  2 nagios  nagios        512 Sep 29 17:35 etc/
drwxr-xr-x  3 nagios  nagios        512 Sep 29 18:08 mdbrasil/
-rw-r--r--  1 root    nagios    3044722 Sep 29 17:27 mdbrasil.tar
drwxrwxr-x  2 nagios  nagios        512 Sep 29 18:02 sbin/
drwxrwxr-x  8 nagios  nagios        512 Sep 29 18:02 share/
drwxrwxr-x  3 nagios  nagios        512 Sep 29 17:27 twi/
drwxrwxr-x  4 nagios  nagios        512 Sep 30 13:10 var/

My mdbrasil directory:

(root at webmail) # cd mdbrasil
(root at webmail) # ls -lga
total 8
drwxr-xr-x  3 nagios  nagios  512 Sep 29 18:08 ./
drwxr-xr-x  9 nagios  nagios  512 Sep 30 13:10 ../
-rw-r--r--  1 root    nagios  199 Sep 29 17:57 .htaccess
drwxrwxr-x  2 nagios  nagios  512 Sep 29 17:47 sbin/

After that, i create a script aliases in my web server configuration file.
Look:

    ScriptAlias /nagios/cgi-bin/ /usr/home/eksffa/public_html/nagios/sbin/
   <Directory "/usr/home/eksffa/public_html/nagios/sbin/">
      AllowOverride AuthConfig
      Options ExecCGI
      Order allow,deny
      Allow from all
   </Directory>

   Alias /mdbrasil/ /usr/home/eksffa/public_html/nagios/share/
  <Directory "/usr/home/eksffa/public_html/nagios/share/">
     Options None
     AllowOverride AuthConfig
     Order allow,deny
     Allow from all
  </Directory>

But, i need to run nagios for multiple instaces in a single machine. I
need to create other directory, as like "twi/" and to copy the sbin/
directory for there. But the nagios catch the same files of configuration
for both. E.g:

    ScriptAlias /nagios/cgi-bin/ /usr/home/eksffa/public_html/nagios/sbin/
   <Directory "/usr/home/eksffa/public_html/nagios/sbin/">
      AllowOverride AuthConfig
      Options ExecCGI
      Order allow,deny
      Allow from all
   </Directory>

   Alias /twi/ /usr/home/eksffa/public_html/nagios/mdbrasil/share/
  <Directory "/usr/home/eksffa/public_html/nagios/mdbrasil/share/">
     Options None
     AllowOverride AuthConfig
     Order allow,deny
     Allow from all
  </Directory>

How i can configure it for multiple instaces? I look the FAQ, but i dont
understand how i can to do it.

Any idea?

Mario Sergio



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list