Hello Sascha,
> English in the second part of my mail.
I'm very capable of understanding English ;)
> i've edited the access.xml (icinga-web/etc/conf.d/access.xml) as following:
> [...]
> The rest of the access.xml is original or only the paths to the files
> are edited. An cleared the cache.
> I tried to send a command and found in the logs that icinga matches
> the right instances to the hosts.
The main problem is here that a host mainly represents *one* instance.
Here is an example that should work for you:
<instances>
<instance name="default">localhost</instance> <!-- "catch-all" -->
<instance name="umgebung1">localhost-umgebung1</instance>
<instance name="umgebung2">localhost-umgebung2</instance>
<instance name="umgebung3">localhost-umgebung3</instance>
<instance name="umgebung4">localhost-umgebung4</instance>
</instances>
<hosts>
<host name="localhost">
<type>local</type>
<access useDefaults="true">
<!-- defaults from above -->
</access>
</host>
<host name="localhost-umgebung1">
<type>local</type>
<access useDefaults="true">
<!-- using defaults - but overriding them -->
<write>
<files>
<resource name="icinga_pipe">/var/umgebung1/icinga.cmd</resource>
</files>
</write>
</access>
</host>
</hosts>
The resource Icinga Web is looking for is "icinga_pipe" - in the right
host for the instance.
> But there was the following info:
>
> Sending command failed icinga_pipe is not write enabled
>
> That means, that icinga is not accessing my editied access.xml?
> Because this pipe is no longer defined in my access.xml.
Yes, because there was no resource named "icinga_pipe".
> I edited the global access.xml in icinga-web/etc/conf.d.
> But there is another one in icinga-web/app/modules/Api/config/
>
> Which one is the correct one?
The one in conf.d is the one you want to edit.
app/modules/Api/config/access.xml
includes
etc/conf.d/access.xml (which is not overwritten by updates)
Best Regards
Markus
--
Markus Frosch
[email protected]
http://www.lazyfrosch.de
------------------------------------------------------------------------------
WINDOWS 8 is here.
Millions of people. Your app in 30 days.
Visit The Windows 8 Center at Sourceforge for all your go to resources.
http://windows8center.sourceforge.net/
join-generation-app-and-make-money-coding-fast/
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/icinga-users