multiple instances

Tim Palmer tim at tany.com
Tue Oct 5 22:50:08 CEST 2004


No, you are making this far more complicated than it needs to be.

One nagios.cfg, one cgi.cfg, one webspace, one ScriptAlias, one Alias. You 
don't need all this extra stuff.

When a user logs into apache, the account that they use to login will be 
matched to a contact in your contacts.cfg. What that person will see is 
determined by which hosts/hostgroups/services use the contactgroup that 
this contact is a member of.

In general, don't put any contacts besides maybe a "superuser" in the 
cgi.cfg "authorized_for_..." lines.

Read - very carefully, as many times as necessary - the section in the docs 
called "Configuring Authentication for the CGIs". Make sure you understand 
the "definitions" section near the top.

tim

At 01:59 PM 10/5/2004, Mario Sergio Candian wrote:

>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



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