multiple instances of nagios

Marc Powell marc at ena.com
Tue Oct 5 02:13:35 CEST 2004


As has been stated numerous times, this can be accomplished with Nagios
1.x with only one instance of Nagios and using just one URL. They'll
just log in with different usernames. LOGIN USERS ONLY SEE HOSTS AND
SERVICES THAT THEY ARE AUTHORIZED CONTACTS FOR. I don't know how to be
any more clear than that.

Define all the hosts for CompanyA. Create a hostgroup containing all the
hosts for CompanyA. Make CompanyAGroup the contact_group for that
hostgroup. Define all the services for CompanyA. Make CompanyAGroup the
contact_group for those services. Make a contact called UserA. Define
its notification timeperiod to be 'none' or make it actually send email
somewhere, your choice. Make UserA a member of contact_group
CompanyAGroup. Create an htaccess password for UserA. UserA goes to
http://nagios.blahbla.com.br/ logs in and sees only hosts and services
for CompanyA. If you want multiple logins for this company, create
UserA1, UserA2, foobar1, foobar99 and make them all members of
contact_group CompanyAGroup.

Define all the hosts for CompanyB. Create a hostgroup containing all the
hosts for CompanyB. Make CompanyBGroup the contact_group for that
hostgroup. Define all the services for CompanyB. Make CompanyBGroup the
contact_group for those services. Make a contact called UserB. Define
its notification timeperiod to be 'none' or make it actually send email
somewhere, your choice. Make UserB a member of contact_group
CompanyBGroup. Create an htaccess password for UserB. UserB goes to
http://nagios.blahbla.com.br/ logs in and sees only hosts and services
for CompanyB. If you want multiple logins for this company, create
Userb1, Userb2, foobar1, foobar99 and make them all members of
contact_group CompanyBGroup. Yes, contacts can be authorized to see both
groups easily.

Etc, etc, etc. That's it in a nutshell. I know it works as advertised
because I do it myself.

--
Marc

> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Mario Sergio Candian
> Sent: Monday, October 04, 2004 12:20 PM
> To: Jonathan Nichols
> Cc: Jan Scholten; Nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] multiple instances of nagios
> 
> 
> exactly! :)
> 
> my configuration in Company A e.g (server1.companyA.com.br)
> (nagios.blabla.com.br/companyA) i will monitor DNS, Mysql; in
> server2.companyA.com.br i will monitor POP3 and SMTP; in companyB
> (nagios.blabla.com.br/companyB) (server1.companyB.com.br) i will
monitor
> VNC and Mysql, in server2.companyB.com.br i will monitor Radius, POP3
and
> SMTP...
> 
> do u know how i can do it?
> 
> Mario Sergio
> 
> On Mon, 4 Oct 2004, Jonathan Nichols wrote:
> 
> > Jan Scholten wrote:
> >
> > > If someone knew he answer he will probably posted it.. but writing
a
> > > second mail just 4 hours later is.. not very kind?!
> > >
> > > I don't know the answer, cause i don't understand what you want to
do,
> > > so  i keep my mouth shut.. maybe you should try to explain
better.. i
> > > don't  get why you need multiple instances, and i didn't find any
> > > explanation  what you tried to make it work.. apart from copying
s.th.
> > >
> > > You can restrict the view of services for differnet contact groups
(if
> > > you  have different customers) so i really don't understand why
you
> want
> > > two  seperate instances running.. and copying the directory with
> exactly
> > > the  same configuration seems to be a bit strange ?!?
> > >
> >
> > I can understand why, as I may need to do the same thing.
> >
> > Company A needs monitoring, so does Company B - you only have 1 box
to
> > run Nagios off of, and you don't want Company A seeing what's
up/down at
> > Company B.
> >
> > :)
> >
> >
> 
> 
> 
> -------------------------------------------------------
> 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