Create a template host. Howto?

Gabriel - IP Guys Gabriel at impactteachers.com
Mon May 11 14:32:56 CEST 2009


Just to clarify, and I thank you and all who replied for taking the
time.

It's easier to create hostgroups, and assign checks to the host groups,
then assign the hosts to those same hostgroups, in order to make sure
for example, all linux based servers have their uptime, swap space, SSH,
and free disk space all checked? If my understanding is correct, a host
can belong to many hostgroups? In which case, a host that is running a
webserver, mysql server, and FTP service, will be checked for those
services not by its host definition, but by its host group definition?

I half hope that I'm not right, because it means I have to reconfigure
all my host defs!
---
Kind Regards,
Mr Gabriel



> -----Original Message-----
> From: Andy Shellam [mailto:andy-lists at networkmail.eu]
> Sent: 10 May 2009 14:24
> To: Gabriel - IP Guys
> Cc: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] Create a template host. Howto?
> 
> Gabriel,
> 
>  From experience, you're better off using host groups.  For example
all
> your hosts will have certain checks (ping, disk space etc) so I have a
> group "all hosts" which all hosts are added to.
> 
> We also have hosts that perform their own functions - e.g. database
> servers, DNS servers, web servers, which all have relevant checks of
> their own.  So we have other host groups called, for example, "DNS
> servers", "web servers" etc which each host is added to the group
> depending on the function it performs.  All service checks are then
> added to the host groups, instead of individual hosts.
> 
> Then if we come up with a new service check, it gets added to the host
> group it needs to be in, and is automatically added to all hosts in
> that
> group.  Similarly if we add a new server, it gets added to the host
> groups it needs to be in, and inherits all the service checks of that
> group without any additional configuration.
> 
> See this page for the above (and plenty other) time-saving tricks:
> http://nagios.sourceforge.net/docs/3_0/objecttricks.html
> 
> HTH,
> 
> Andy
> 
> Gabriel - IP Guys wrote:
> > Dear All,
> >
> > I've completed my nagios installation, thanks to a bit of lurking on
> > this list, and now I have an issue of my own.
> >
> > I've finished configuring a host with all the checks and warnings
> that
> > I need, and now I want to use all the same checks on my other hosts.
> I
> > don't want to have to keep changing every host once when i install
> and
> > configure new plugins. How can create a template so that all host
are
> > 'updated' with new checks when i update just the template?
> >
> > Thanks for any advice in advance.
> >
---------------------------------------------------------------------
> ---
> >
> >
---------------------------------------------------------------------
> ---------
> > The NEW KODAK i700 Series Scanners deliver under ANY circumstances!
> Your
> > production scanning environment may not be a perfect world - but
> thanks to
> > Kodak, there's a perfect scanner to get the job done! With the NEW
> KODAK i700
> > Series Scanner you'll get full speed at 300 dpi even with all image
> > processing features enabled. http://p.sf.net/sfu/kodak-com
> >
---------------------------------------------------------------------
> ---
> >
> > _______________________________________________
> > 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

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
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