multiple instances

Mario Sergio Candian mscandian at freebsdbrasil.com.br
Fri Oct 1 18:18:16 CEST 2004


Hi guys,

i'm trying to install multiple instances of nagios. i need that my
configuration for host1 is different of excessively hosts. E.g:

http://nagios.blabla.com.br/mdbrasil
http://nagios.blabla.com.br/twi
http://nagios.blabla.com.br/host3
...

My structure of directory:

(root at webmail) # ls -lga
total 3558
drwxr-xr-x  11 nagios  nagios        512 Sep 30 17:57 ./
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   2 root    nagios       1536 Sep 30 16:28 libexec/
drwxr-xr-x   5 nagios  nagios        512 Sep 30 17:48 mdbrasil/
-rw-r--r--   1 root    nagios    3044722 Sep 29 17:27 mdbrasil.tar
drwxrwxr-x   2 nagios  nagios        512 Sep 30 17:21 sbin/
drwxrwxr-x   8 nagios  nagios        512 Sep 29 18:02 share/
drwxrwxr-x   5 nagios  nagios        512 Sep 30 17:47 twi/
drwxrwxr-x   4 nagios  nagios        512 Sep 30 15:45 var/

inside the mdbrasil/ directory, i put it:

(root at webmail) # pwd
/usr/home/eksffa/public_html/nagios/mdbrasil
(root at webmail) # ls -lga
total 10
drwxr-xr-x   5 nagios  nagios  512 Sep 30 17:48 ./
drwxr-xr-x  11 nagios  nagios  512 Sep 30 17:57 ../
drwxrwxr-x   2 nagios  nagios  512 Sep 29 17:35 etc/
drwxrwxr-x   2 nagios  nagios  512 Sep 29 17:47 sbin/
drwxr-xr-x   4 nagios  nagios  512 Oct  1 13:11 var/

the same of my twi directory:

(root at webmail) # pwd
/usr/home/eksffa/public_html/nagios/twi
(root at webmail) # ls -lga
total 10
drwxrwxr-x   5 nagios  nagios  512 Sep 30 17:47 ./
drwxr-xr-x  11 nagios  nagios  512 Sep 30 17:57 ../
drwxrwxr-x   2 nagios  nagios  512 Sep 29 17:35 etc/
drwxrwxr-x   2 nagios  nagios  512 Sep 30 17:20 sbin/
drwxrwxr-x   4 nagios  nagios  512 Oct  1 13:12 var/

My httpd.conf:

   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>

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

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

    Alias /nagios/ /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>

   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>

   Alias /twi/ /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, if i put the URL (nagios.blabla.com.br/mdbrasil) and
(nagios.blabla.com.br/twi), the nagios get the same configuration for the
two.

I run the nagios with the command line:

./nagios -d /usr/home/eksffa/public_html/nagios/mdbrasil/etc/nagios.cfg
./nagios -d /usr/home/eksffa/public_html/nagios/twi/etc/nagios.cfg

What's wrong? How i can fix it? In way that configurations for host1
(mdbrasil) is different for host2 (twi)...

Any help is appreciated.

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