service descriptions with hostgroup and not host
Nicki Messerschmidt, Linksystem Muenchen GmbH
nagios-users at alienn.net
Tue Jul 29 19:12:36 CEST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sat, 26 Jul 2003, Douglas E. Warner wrote:
> I'm a big fan of specifying a hostgroup_name in a service description, but
> I've run into a situation where I need to do a service check for all hosts in
> a hostgroup except one. I was wondering if there was any way to negate a
> host in a group, perhaps something like:
> host !evil.host
> or
> exclude_host evil.host
> Does anything like this exist?
I don't think so, but I would like something like this also, because
then you could define a standard service like check-host-alive and a
standard service dependecy like
define servicedependency {
host_name host
service_description PING
dependent_service_description *,!PING
execution_failure_criteria n
notification_failure_criteria w,u,c
}
If "!PING" is missing, then nagios complains about circular
dependencies and you have to enter a dependency for every single
service... *arg*
Thanks and Cheers
Nicki
- --
Linksystem Muenchen GmbH info at link-m.de
Schloerstrasse 10 http://www.link-m.de
80634 Muenchen Tel. 089 / 890 518-0
We make the Net work. Fax 089 / 890 518-77
PGP-Key: https://www.link-m.de/pgp/n.messerschmidt.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE/Jqsa6zWc+bXuIEMRAoWyAKDSdE5R2b6iis1PZMrvquScXBmcPACfSPus
9/3XuBkF7plNVqkZEo4uaZY=
=0aSq
-----END PGP SIGNATURE-----
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
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