multiple instances

Jan Scholten Jan.Scholten at iconz.net
Tue Oct 5 22:21:45 CEST 2004


No! Not correct.

As i see no use in that way but you seem to insist on different instances  
try it that way:

Install nagios && configure

compile a second nagios and take care of the piont in the installation  
process:
[quote]
Run the configure script to initialize variables and create a Makefile as  
follows...

./configure --prefix=prefix --with-cgiurl=cgiurl --with-htmurl=htmurl  
--with-nagios-user=someuser --with-nagios-grp=somegroup

Replace prefix with the installation directory that you created in the  
step above (default is /usr/local/nagios)
Replace cgiurl with the actual url you will be using to access the CGIs  
(default is /nagios/cgi-bin). Do NOT append a slash at the end of the url.
Replace htmurl with the actual url you will be using to access the HTML  
for the main interface and documentation (default is /nagios/)
Replace someuser with the name of a user on your system that will be used  
for setting permissions on the installed files (default is nagios)
Replace somegroup with the name of a group on your system that will be  
used for setting permissions on the installed files (default is nagios)
[/quote]

choose different prefixes (and create the different directorys)

afterwards you should have a second nagios in a different directory  
configure this instance as well.. use a different alias in the httpd.conf  
of course and it should work..

What you try to do below is NOT working! (But i don't know wheter my  
approach is better.. but .. i will be quiet now.

Jan

>
> Oks guys,
>
> i will edit the cgi.cfg, and i will need to define some attributes as
> like:
>
> main_config_file=/usr/home/eksffa/public_html/nagios/etc/nagios.cfg
> main_config_file=/usr/home/eksffa/public_html/nagios/companyA/etc/nagios.cfg
> main_config_file=/usr/home/eksffa/public_html/nagios/companyB/etc/nagios.cfg
>
> url_html_path=/nagios
> url_html_path=/companyA
> url_html_path=/companyB
>
> authorized_for_system_information=admin,userA,userB
>
> will i need to copy the etc (with the .cfg files) for other directory
> (/companyA/etc) and (/companyB/etc)? Or will i can edit the .cfg files
> in the /nagios/etc?
>
> then, i will define the hosts, hostgroups, services, and i need to create
> the aliases scripts:
>
>     ScriptAlias /companyA/cgi-bin/
> /usr/home/eksffa/public_html/nagios/companyA/sbin/
>    <Directory "/usr/home/eksffa/public_html/nagios/sbin/">
>       AllowOverride AuthConfig
>       Options ExecCGI
>       Order allow,deny
>       Allow from all
>    </Directory>
>
>     ScriptAlias /companyB/cgi-bin/
> /usr/home/eksffa/public_html/nagios/CompanyB/sbin/
>    <Directory "/usr/home/eksffa/public_html/nagios/sbin/">
>       AllowOverride AuthConfig
>       Options ExecCGI
>       Order allow,deny
>       Allow from all
>    </Directory>
>
>    Alias /companyA/ /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 /companyB/ /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>
>
> Is this correcty?
>
> 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
>
>



-- 
Jan Scholten
Research and Development Intern
Iconz.co.nz


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