Open papage opened 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.
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