Campaign: Shinken

Table in custom MACRO

I suggest creating a sub-table for duplicate_foreach.

Exemple with a list of web virtual host service that need a vitualhost name and uri:

 

define host {

name webserver

.........

_WEB_SITES {www.toto.com,/page1.html},{www.pouet.com,/login.php}

}

 

define service{

service_description WebSite $KEY[0]$

use generic-service

register 0

host_name vhost

check_command check_vhost!$KEY[0]$!KEY[1]$

duplicate_foreach _WEB_SITES

}

Submitted by

Tags

Voting

-1 votes
Idea No. 124