Service apply rule with a list

Hello,

I want to check a TCP port reachability on multple IP addresses using a plugin script which requires IP and port # arguments. Instead of multiple services, I would like to have a list of IPs and use that in a service apply rule to have just one service defination. I’m not using Director but config files. There is no host definations for the IPs either. Is it possible?

Please advise,
Thanks

Ok I never mind. I set it up as

apply Service “name” ( for ip in ( “IP1”, “IP2”, “IP3” ) ) {

1 Like