X-Git-Url: https://git.tokkee.org/?p=nagixsc.git;a=blobdiff_plain;f=sample-configs%2Fhttp2nagios.cfg;h=7c10a954455eb78584f8ceb30a361a03ccc5fb11;hp=f5b4c8d83ecfe0f48892301640e66005e81dea29;hb=69d197df9aaeb94eafd7df78005afba97b050427;hpb=8d0a8d781dcd9cc2b41af9e227be220d59860abe diff --git a/sample-configs/http2nagios.cfg b/sample-configs/http2nagios.cfg index f5b4c8d..7c10a95 100644 --- a/sample-configs/http2nagios.cfg +++ b/sample-configs/http2nagios.cfg @@ -26,6 +26,11 @@ ; write passive checks to command file ("passive") mode: checkresult +; ### acl (false) ### +; Use ACLs to check if the user is allowed to submit check results for this +; host +#acl: false + [mode_passive] ; ### pipe ### ; File and path of Nagios command pipe @@ -47,3 +52,25 @@ dir: /tmp/cr ; echo -n "Password" | md5sum - nagixsc: 019b0966d98fb71d1a4bc4ca0c81d5cc ; PW: nagixsc +[acl_allowed_hosts_list] +; (List of) allowed host(s) per user +; Option "acl" in section "server" must be set to "true"! +; +; Format: : [, [, [...]]] +; +; Example (allow only "host1" for "nagixsc"): +;nagixsc: host1 ; "host2.foo.bar" of sample config not allowed + +[acl_allowed_hosts_re] +; Regular Expression of allowed host(s) per user +; Option "acl" in section "server" must be set to "true"! +; +; ATTENTION! +; - Needs more testing! +; - Python Regular Expressions, see http://docs.python.org/library/re.html +; +; Format: : +; +; Example (allow only "host1" for "nagixsc", same as above in "acl_allowed_hosts_list"): +;nagixsc: ^host1$ +