Design recommendation

Frank Altpeter frank.altpeter at gmail.com
Fri Nov 24 11:32:16 CET 2006


Hi list,

I'm running nagios for quite some years now, everywhere i worked the
last years i implemented this software as part of the monitoring
infrastructure.
Usually, everything works fine and there's nothing to complain about.

Actually, i'm running into a problem in finding out how to configure
nagios to fit my current needs.

Currently there are about 80 hosts configured, with a total of about
500 service checks. Most checks are shared across the hosts by
grouping them into hostgroups (example: CHECK_ICMP with hostgroup_name
all_servers which contains "*" as member).

The problem now is, that i need to have _some_ of these servers to use
other contact_group settings because there are customers that want to
receive notifications about their hosts and services.
Now, i checked the documentation where i found the following:

"Each host may belong to one or more host groups. Each host group has
a <contact_groups> option that specifies what contact groups receive
notifications for hosts in that particular host group. " (taken from
http://nagios.sourceforge.net/docs/2_0/notifications.html)

So, i thought it would the best to add a contact_groups setting to the
respective host_group object that wants to get notifications.

But, unfortunately, it's raising the following error:

Error: Invalid hostgroup object directive 'contact_groups'.
Error: Could not add object property in file
'/usr/local/etc/nagios/cfg/hostgroups.cfg' on line 25.


So, is there an error in the documentation or did i miss something?

Does anyone know other ways to accomplish my design problem?

In fact, i'm using most service checks as shared into hostgroups (e.g.
CHECK_SMTP is based on a "hostgroup_name smtpserver" option, and every
smtp server gets added to this group to automagically get it checked),
wich makes it hard to send out notifications for one particular host
in this group - and its services, without adding the same service
definition one more time for this host only, with different
contact_groups setting...
The problem can be solved easily for the host itself, since the host
definition allows the contact_groups setting, but that is AFAIK only
valid for the host and does not get inherited from depending service
definitions (which would be a great invention IMHO).


--
Le deagh dhùraghd,

        Frank Altpeter

Two of the most famous products of Berkeley are LSD and Unix.
I don't think that this is a coincidence.
        -- Anonymous

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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