Hello, first off let me apologize for asking something that I’m sure has been addressed before, I’ve just been unable to find any information using searches.
Anyways, the situation is that I have a large number of servers sitting behind a VPN router (read: NAT) and I need to run the check_ssh command on each of them. Currently, to get to ssh, we have port forwarding rules set up on the VPN router such that each server gets its own external ssh port (e.g. 22.214.171.124:2201 is the ssh port for one server while 126.96.36.199:2202 is another server). If I understand things correctly (I’m new at this) this means I’d have to create a separate check_ssh_port command for each server. What I’m hoping is possible is that I can put a new piece of information into the host definition somewhere so that I don’t have to define a new service for each server. Is this possible?
To make matters worse, I have many services that are in a similar situation.