Hello, Michael. On 13/10/14 17:23, Michael Friedrich wrote:
> Am 13.10.2014 21:42 schrieb "Daniel Bareiro" <daniel-lis...@gmx.net > <mailto:daniel-lis...@gmx.net>>: >> >> Hi all! >> >> I'm using Icinga-web and Icinga2 from the snapshots repositories of > Icinga. >> >> Now I'm trying to test the functionality of schedule next/forced service >> check. >> >> I understand that this requires to have configured the external command >> file that I had not configured during the installation of the package. I >> was reading the Icinga2 documentation regarding it [1]. So I made sure >> to do the following: >> >> # icinga2-enable-feature command >> # usermod -a -G nagios www-data >> # service icinga2 restart >> >> I also made sure to have created the file in the expected location, >> which I understand would be this: >> >> vim /usr/share/icinga-web/app/modules/Api/config/access.xml >> [...] >> <!-- allowed to be written to --> >> <write> >> <files> >> <resource >> name="icinga_pipe">/var/lib/icinga/rw/icinga.cmd</resource> >> </files> >> </write> >> <!-- allowed to be executed --> >> [...] > Why? The docs tell otherwise! > > [...] > > Where did you get that from? Icinga 2 creates the command pipe by itself. > > [...] > > You're writing to your own custom created command pipe where no process > is reading from. > > Just follow the official docs on setting up icinga web. > http://docs.icinga.org/icinga2/latest/doc/module/icinga2/chapter/getting-started#setting-up-icinga-web It's already working! Thank you. I had not read that part of the documentation. As you said, the pipe was already created: # ll /var/run/icinga2/cmd/icinga2.cmd prw-rw---- 1 nagios www-data 0 oct 14 08:40 /var/run/icinga2/cmd/icinga2.cmd But I had to change the settings provided by the package on /etc/icinga-web/conf.d/access.xml: <!-- allowed to be written to --> <write> <files> <!-- DGB - 20141013 --> <!-- <resource name="icinga_pipe">/var/lib/icinga/rw/icinga.cmd</resource> --> <resource name="icinga_pipe">/var/run/icinga2/cmd/icinga2.cmd</resource> </files> </write> <!-- allowed to be executed --> Is it feasible have to make this change or may be a bug in the package? Thanks for responding. Best regards, Daniel _______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users