multiple instances

Mario Sergio Candian mscandian at freebsdbrasil.com.br
Fri Oct 8 18:27:06 CEST 2004


Hi Tim,

I thought that i should need many config files, nagios.cfg, and cgi.cfg
for each one. I configured, using one nagios.cfg, cgi.cfg and it work fine
now. Thank you very much for help me!

Thanks for all attention and help of the community.

Mario Sergio

On Thu, 7 Oct 2004, Tim Palmer wrote:

> Hi Mario,
>
> You're still not getting it. You only need one Nagios, one set of files.
> You don't need all these extra companyA/B things. You just need to
> 1) Read the documenation more throughly, especially the section I pointed
> you to
> 2) setup your contacts and contactgroups to reflect the companies.
>
> One Nagios installation, with one set of config files, does all the
> monitoring. What your users see is determined by the user/password they use
> to log in.
>
> At 04:53 PM 10/7/2004, you wrote:
>
> >Hi Tim,
> >
> >i do what u tell me. I copied the nagios.cfg and cgi.cfg for the directory
> >of the companyA, and companyB. Then, I edited the files, and I put the
> >following form:
> >
> >In /companyA/etc/cgi.cfg:
> >
> >main_config_file=/usr/home/eksffa/public_html/nagios/companyA/etc/nagios.cfg
> >
> >physical_html_path=/usr/home/eksffa/public_html/nagios/share
> >
> >url_html_path=/companyA
> >
> >authorized_for_configuration_information=companyA
> >...
> >
> >In /companyA/etc/nagios.cfg
> >
> >log_file=/usr/home/eksffa/public_html/nagios/companyA/var/nagios.log
> >
> >...
> >
> >cfg_file=/usr/home/eksffa/public_html/nagios/etc/contactgroups.cfg
> >cfg_file=/usr/home/eksffa/public_html/nagios/etc/contacts.cfg
> >cfg_file=/usr/home/eksffa/public_html/nagios/etc/dependencies.cfg
> >...
> >
> >status_file=/usr/home/eksffa/public_html/nagios/companyA/var/status.log
> >
> >nagios_user=nagios
> >
> >...
> >
> >the same for the companyB (cgi.cfg and nagios.cfg) modifying only the
> >names.
> >
> >My cgi.cfg and nagios.cfg default is:
> >
> >cgi.cfg:
> >
> >main_config_file=/usr/home/eksffa/public_html/nagios/etc/nagios.cfg
> >
> >physical_html_path=/usr/home/eksffa/public_html/nagios/share
> >
> >url_html_path=/nagios
> >
> >use_authentication=1
> >
> >authorized_for_system_information=admin
> >...
> >
> >And my nagios.cfg is:
> >
> >log_file=/usr/home/eksffa/public_html/nagios/var/nagios.log
> >
> >cfg_file=/usr/home/eksffa/public_html/nagios/etc/contactgroups.cfg
> >cfg_file=/usr/home/eksffa/public_html/nagios/etc/contacts.cfg
> >cfg_file=/usr/home/eksffa/public_html/nagios/etc/dependencies.cfg
> >
> >...
> >
> >comment_file=/usr/home/eksffa/public_html/nagios/var/comment.log
> >
> >...
> >
> >In 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 /companyA/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
> >       require user mdbrasil
> >    </Directory>
> >
> >     ScriptAlias /companyB/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
> >       require user twi
> >    </Directory>
> >
> >   <Directory "/usr/home/eksffa/public_html/nagios/share/">
> >      Options None
> >      AllowOverride AuthConfig
> >      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
> >      require user mdbrasil
> >   </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
> >      require user twi
> >   </Directory>
> >
> >Do I need to run the nagios.cfg of the companyA and companyB directory?
> >e.g:
> >./nagios -d /usr/home/eksffa/public_html/nagios/companyA/etc/nagios.cfg
> >and
> >./nagios -d /usr/home/eksffa/public_html/nagios/companyB/etc/nagios.cfg
> >
> >or, only nagios.cfg of the /usr/home/eksffa/public_html/nagios/etc
> >directory?
> >
> >Thanks!
> >
> >Mario Sergio
> >
> >On Tue, 5 Oct 2004, Tim Palmer wrote:
> >
> > > 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/nagio
> > s.cfg
> > > >main_config_file=/usr/home/eksffa/public_html/nagios/companyB/etc/nagio
> > s.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
> > >
> > >
>
>
>



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