icingaweb2-module-director icon indicating copy to clipboard operation
icingaweb2-module-director copied to clipboard

Allow user to specify command_endpoint

Open choonming opened this issue 8 years ago • 29 comments

At present, the director only allows a Yes/No option to determine whether the check runs on the icinga agent and it sets the command_endpoint = host_name. I would like to be able to choose the specific command_endpoint presumably from a drop down list of icinga agents.

choonming avatar Feb 20 '17 14:02 choonming

Absolutely makes sense to me, just: a dropdown with all hosts will hurt people with lot's of them. Once we implemented feature #606 this can be added easily.

Thomas-Gelf avatar May 03 '17 10:05 Thomas-Gelf

Feature would be very helpful. Right now we need to add services with specific endpoints by configuration files. Since this services are not visible in director, it's sometimes difficult to get an overview of configured services for hosts in director. +1 Vote:)

matthiaswe avatar Jun 14 '17 16:06 matthiaswe

Also +1 :) That would be very helpful - I need to set command_endpoint for specific services to force the commands to only run from a specific agent. I have different agents in place e.g. one for windows checks only and one for SNMP checks where the host IP needs to be allowed in SNMP settings on the host to be checked

devBioS avatar Sep 21 '17 11:09 devBioS

Since #606 is done, I would like to see this feature soon :-)

SimonHoenscheid avatar Nov 01 '17 15:11 SimonHoenscheid

Hi. I have the need to add a different command_endpoint within a service definition. I would appreciate if you could add this feature in one of the next releases. :)

freddy4711 avatar May 16 '18 05:05 freddy4711

Hi, Is there anything new with possibility to "Allow user to specify command_endpoint" ? I have Director v1.4.3 and haven't tried github master lately. It could be handy, because I have several zones, and when tunnel between master zone and satellite zone is dropped I have no info about web checks, because they are scheduled on satellite..

majales avatar Jun 25 '18 07:06 majales

+1 Vote. Looking forward to select the command_endpoint explicitely on director to run remote checks out of defined network zones.

ghost avatar Sep 10 '18 09:09 ghost

+1 Would love to set the command_endpoint attribute manually.

binarygraka avatar Nov 22 '18 15:11 binarygraka

+1 We really like to see this feature in the Icinga 2 Director as well. In some circumstances we need to set the command endpoint in a service template to one dedicated cluster member, like it's already possible for host templates.

WatchingWastl avatar Mar 11 '19 14:03 WatchingWastl

+1 Vote I just wanted to open another bug for this problem as i saw this issue. Here we have the need to schedule some services for the parent zone/endpoint. As this is perfectly easy to be configured in icinga2 i think it would be also good to have it implemented in director as well. Thx

Philambdo avatar Mar 14 '19 15:03 Philambdo

+1 would be helpful for several of our service checks.

pbngl avatar Mar 27 '19 16:03 pbngl

@Thomas-Gelf Created pull request #1817 for this. Please let me know what you think.

pbngl avatar Mar 28 '19 19:03 pbngl

+1 Vote, this is exactly what we need

dheule avatar May 17 '19 09:05 dheule

+1 Vote, this would be very useful for us, too.

spacefreak86 avatar May 17 '19 11:05 spacefreak86

Hello @pbngl

First of all thank you for working on this feature! This is awesome!

I have quick question: is it possible to use custom variable from object Host to update command_endpoint dynamically? Is it a complicated changes?

liupopil avatar Aug 20 '19 15:08 liupopil

+1 Vote. Waiting for the Director solution. Use this several times in .conf files.

ghost avatar Aug 28 '19 06:08 ghost

ref/NC/613907

widhalmt avatar Sep 12 '19 14:09 widhalmt

+1 Would like it a lot :)

NeverUsedID avatar Oct 18 '19 09:10 NeverUsedID

+1 Vote

raidsec avatar Nov 06 '19 12:11 raidsec

I got the info that in large environments it is a problem to create the drop-down or autocompletion list. This would be the show stopper to integrate this requirement. But drop-down or autocompletion list is not necessary. If I select "host.name = " from the services in "assign where", I only have one free field to enter the hostname.

ghost avatar Nov 07 '19 12:11 ghost

ref/NC/651115

carraroj avatar Jan 15 '20 09:01 carraroj

+1. This is making me crazy right now. It is impossible to have a mixture of services checked through the agent and remotely from the master (e.g. check a TCP port is reachable) with Director right now, that's a pity =(

sephiroth1395 avatar Jul 13 '20 18:07 sephiroth1395

What is the workaround for this, to be able to use Icinga Director for everything but also change the command_endpoint for a service template or service set? I have some checks on a host that need to be run from a different zone.

skupjoe avatar Sep 15 '20 09:09 skupjoe

my workaround: I define the service in Director, disable the Service in Director, copy the Preview lines in an *.conf file on the master and add the the command_endpoint line. And I write an comment in the disabled service, that other know why they can see the service in dashboard.

ghost avatar Sep 16 '20 07:09 ghost

my workaround: I define the service in Director, disable the Service in Director, copy the Preview lines in an *.conf file on the master and add the the command_endpoint line. And I write an comment in the disabled service, that other know why they can see the service in dashboard.

Thank you, @khmuth.

Right, so I attempted essentially the same thing by redefining my template Service and object Service as a static conf file in the /etc/icinga2/zones.d/<satellite> directory from my master, and I see that this synced to my satellite. But then my satellite would not apply the config because the host that I was attempting to apply this on was not found on that satellite. This is because all my hosts belong to a different zone cluster and only get synced to those endpoints.

To get this to work, I had to also manually re-define the host on my satellite in /etc/icinga2/conf.d/hosts.conf, and then sync applies. The problem with this is that my hosts list is dynamic and constantly changing--as I'm using Import/Sync automation to maintain this--and my satellites are hard to connect to, so I can't keep all my satellite configs updated manually this way.

Did you also need to define your object Host config manually on the satellite for this to work? I am wondering how I can get Director to sync its host config to this satellite, in addition to the satellites in the zone that are currently defined in Director and being synced to.

skupjoe avatar Sep 16 '20 19:09 skupjoe

We have 2 Linux icinga in a zone as cluster which eare executing the most checks (snmp and all net based checks) and one windows wich executes only some spezilal (powershell) checks for the whole windows world. So we need to spezify the endpoint only for some check templates. In this szenario the patch from #1817 works perfect. We like to see the Patch applied ..

dheule avatar Sep 17 '20 09:09 dheule

Hello, is there any news about the possibility to "Allow user to specify command_endpoint" in Director ?

ghost avatar Jun 02 '21 10:06 ghost

+1

ronnybremer avatar Feb 01 '23 10:02 ronnybremer

+1

slalomsk8er avatar Feb 20 '24 18:02 slalomsk8er