Thanks Brian, but i’m confused.
If i go to : host & service parameters -active checks - check sftp service and make a new rule, there is a checkbox for Port where i supposedly can enter the portnumber it should find the sftp service on.
What is this for then?
What you describe looks like i’ll be redefining the way check_mk looks if the host is there, instead of checking a service
···
–
Met vriendelijke groet / kind regards,
Sander Brouwer
(maandag t/m donderdag)
Avalon IT
NIEUW ADRES: Nijverheidsweg 23, 7991CZ, Dwingeloo, NL
+31 (0) 64 12 87 408 | support@avalon-it.nl | www.avalon-it.nl | Skype: avalon-it
Please consider the environment before printing this email
05-02-2019 18:30 (Europe/Amsterdam) - Brian Binder schreef:
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