Icinga / icingaweb2-module-director

The Director aims to be your new favourite Icinga config deployment tool. Director is designed for those who want to automate their configuration deployment and those who want to grant their “point & click” users easy access to the configuration.
https://icinga.com/docs/director/latest
GNU General Public License v2.0
413 stars 203 forks source link

setup service question #1756

Open papage opened 5 years ago

papage commented 5 years ago

Hi all,

This is a newbie question. I have a fresh installation of icinga2 and director.

I am trying to setup a series of services that check ipsla on a few cisco switches via snmp. There is a perl plugin, which is installed in /usr/lib/nagios/plugins and produces the right output (tested). The plugin takes two (2) parameters like this: ./check_ipsla.pl -H 10.1.1.30 --sla 100

Now, I have setup:

My problem is that when I create a service (based on the above template), the only options that director allows me to configure is a 'Name', the 'Host' and the 'imports'. How do I pass the $sla$ parameter? I am expecting that when I define a service, I can configure the 'checkcommand' and I am expecting to be able to define variables (like vars.sla = 100). How do I do this?

Thanx, Sp

Thomas-Gelf commented 5 years ago

I guess Fields are what you're looking for, you can define them at Command or (Service/Host) Template level. When your Command already has $something$ in it's arguments, related string fields should already be proposed. Here you can find an advanced example.