Change default ssh port to monitor


I am quite new to icinga2 and have now set up icinga2 with the icinga director and slack notifications. Now I have changed the default port of shh from port 22 to port 9800. Slack now tells me every time that the connection has been refused (which is normal since I changed the port). Is there a way to configure icinga2 to monitor port 9800 and not port 22?

Friendly greetings

if you changed the command to ssh, you need to use the port variable to the desired number.
iirc the vars.port is set by default to the 22 , you can change that in the service definition.
If you want to make sure, check the Director -> commands -> external-commands -> ssh definitions