Hi all,

With skonf and the whole discovery thing, the host macros and the service
generators (duplicate_foreach) will be central in the way we will configure
our configurations (only hosts, no manual service configuration).

But there was one flaw : it's easy with the discovery to fill an host with
macros values, but what about exceptions?

For example, we can now declare a runner script that will list all volumes
of a linux server. But we do not want to look for /dev/shm or maybe some
specific user spaces like /donotcheck. If the user want to schedule a scan
for this host, he will have to put such exceptions into the runner script.
But putting in the configuration should be better (one configuration place,
inheritance, etc etc).

That's why I add a new feature for the service generators, the *NOT* :)

It's very easy to use. In your host you will have 2 macros. One will be
filled automatically by the discovery, without exceptions, and one other
will be the key we do not want. Here for the disks :

*define host {
    [...]
    _disks    /,/var,/donotcheck,/dev/shm,/data
    _!disks   /dev/shm,/donotcheck
}*

And automatically, when you will define a service with
  *duplicate_foreach    _disks*
the keys from _!disks will just be skipped.

So now, do not fear to schedule the discovery process, you will still have
a way to define exceptions :)



Jean
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Shinken-devel mailing list
Shinken-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shinken-devel

Reply via email to