You’ll want to change the rules of:
Host & Service Parameters
-
Host check command
-
Check connecting to a TCP port
Add the rules for each to the affected host so it looks at port 8022 instead of 22.
Use host check command TCP Connect to port 8022: https://cl.ly/0abee6dbc072
And check connecting to a TCP port: https://cl.ly/357bbad6575f
Put the explicit host in the conditions area for both
Wait a few minutes and you should be checking port 8022 and go green for your check
···
On Feb 5, 2019, at 9:48 AM, Avalon IT support@avalon-it.nl wrote:
Hi Guys,
had some time to look into this again:
Made a new check to external sftp service-> Works as expected
SFTP check to my own sftp server: still not working (sftp server and check_mk server in same lan, using local IP, check assigned to check_mk server)
changed the port of my own sftp from 8022 to 22 → works!
So it looks like the check can’t handle a different port? I would expect to click the ‘port’ box and just type the new port 8022 but that is not working.
Anything else i should do?
Has anyone else tried this on different port with failure/ success?
Sander