[Check_mk (english)] sftp check not working

Avalon IT | Sander Brouwer support at avalon-it.nl
Fri Feb 8 23:30:01 CET 2019


ok i figured out how to do the check manually, wasn't reading Marcel's 
instruction right :(

so i run als site owner: ~/lib/nagios/plugins/check_sftp 
--host=10.14.1.57  --user=[user --secret=[secret] --port=8022

response: CRIT - Connection failed! (the same my check_mk told me)

then i run:

OMD[monitor]:~$ sftp -oPort=8022 [user]@10.14.1.57
The authenticity of host '[10.14.1.57]:8022 ([10.14.1.57]:8022)' can't 
be established.
ECDSA key fingerprint is SHA256:haPMAIdiScdB/WW....
ECDSA key fingerprint is MD5:6b:de:39:a3:6c:b3:43:4b:......
Are you sure you want to continue connecting (yes/no)?

I type yes, the the passwd and i'm in

What else can we try to solve this / see if Check_mk really uses the 
right port?

Txs

Sander


On 2/7/19 3:12 PM, checkmk-en-request at lists.mathias-kettner.de wrote:
> Send checkmk-en mailing list submissions to
> 	checkmk-en at lists.mathias-kettner.de
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/checkmk-en
> or, via email, send a message with subject or body 'help' to
> 	checkmk-en-request at lists.mathias-kettner.de
>
> You can reach the person managing the list at
> 	checkmk-en-owner at lists.mathias-kettner.de
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of checkmk-en digest..."
>
>
> Today's Topics:
>
>     1. Re: [Ticket#2019012910000104] sftp check not	working (Avalon IT)
>     2. Re: [Ticket#2019012910000104] sftp check not	working
>        (Marcel Schulte)
>     3. Re: [Ticket#2019012910000104] sftp check not working (Avalon IT)
>     4. About: NetApp monitoring stopped working,	and what we did to
>        fix it (Carlos Fernández Manteiga)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 7 Feb 2019 11:08:49 +0000
> From: Avalon IT <support at avalon-it.nl>
> To: checkmk-en at lists.mathias-kettner.de
> Subject: Re: [Check_mk (english)] [Ticket#2019012910000104] sftp check
> 	not	working
> Message-ID: <1549537729.25815.6616266802 at ticket.avalon-it.nl>
> Content-Type: text/plain; charset="utf-8"
>
> Hi all,
> Can anyone assist me please in troubleshouting this issue?
>
> - Check_mk sftp check to sftp server on port 8022 failes.
> - When i change the server to listen on port 22, it works
> - I can do commandline sftp to the server from the check_mk server
>
> Thank you kindly
> Sander
>
> 05-02-2019 22:22 (Europe/Amsterdam) - Avalon IT schreef: Yes, i can do a
> comandline sftp -oPort=8022 user at ip  from the check_mk server. It will connect
> normally
> Since the Check_MK rule will work when i change the port of the sftp server
> back to 22, it must have something to do with the port
>
> It is specified in the rule values though: IP, user, Password, ******,Port:
> 8022
>
> Sander
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <https://lists.mathias-kettner.de/pipermail/checkmk-en/attachments/20190207/700077dd/attachment-0001.html>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 7 Feb 2019 12:25:00 +0100
> From: Marcel Schulte <schulte.marcel at gmail.com>
> To: "<checkmk-en at lists.mathias-kettner.de>"
> 	<checkmk-en at lists.mathias-kettner.de>,  Ecofill Bounces
> 	<support at avalon-it.nl>
> Subject: Re: [Check_mk (english)] [Ticket#2019012910000104] sftp check
> 	not	working
> Message-ID:
> 	<CAPyBW-w93gu5=Ahvf-LHVqAps8NLHWig5dkR66hRozmMJft1uw at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Sander,
>
> didn't you receive my previous mail (see below)?
>
> Marcel
>
> Am Mi., 6. Feb. 2019, 00:04 hat Marcel Schulte <schulte.marcel at gmail.com>
> geschrieben:
>
>> Hi Sander,
>>
>> click the service description of your SFTP service to open the service
>> details.
>> Scroll down till the 'service check command' row.
>> Note the arguments shown after the exclamation mark and try to execute
>> this command as siteuser - what's the outcome?
>>
>> ~/lib/nagios/plugins/check_sftp NOTED_ARGUMENTS
>>
>> BR,
>> Marcel
>>
>> Am Di., 5. Feb. 2019 um 22:22 Uhr schrieb Avalon IT <support at avalon-it.nl
>>> :
>>>
>>> Yes, i can do a comandline sftp -oPort=8022 user at ip  from the check_mk
>> server. It will connect normally
>>> Since the Check_MK rule will work when i change the port of the sftp
>> server back to 22, it must have something to do with the port
>>> It is specified in the rule values though: IP, user, Password,
>> ******,Port: 8022
>>> Sander
>>> _______________________________________________
>>> checkmk-en mailing list
>>> checkmk-en at lists.mathias-kettner.de
>>> Manage your subscription or unsubscribe
>>> https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/checkmk-en
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <https://lists.mathias-kettner.de/pipermail/checkmk-en/attachments/20190207/1ef757ff/attachment-0001.html>
>
> ------------------------------
>
> Message: 3
> Date: Thu, 7 Feb 2019 11:56:09 +0000
> From: Avalon IT <support at avalon-it.nl>
> To: Marcel Schulte <schulte.marcel at gmail.com>
> Cc: "<checkmk-en at lists.mathias-kettner.de>"
> 	<checkmk-en at lists.mathias-kettner.de>
> Subject: Re: [Check_mk (english)] [Ticket#2019012910000104] sftp check
> 	not working
> Message-ID: <1549540569.837073.057569082 at ticket.avalon-it.nl>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Marcel,
> No I didn't see that one :(  Thanks for resending.
>
> I found the check, but how do I run this on commandline?
> ( I googled and tried but after about 20 attempts resulting in errors, thought
> I'd better just ask ;)
>   
>
> --
> 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 |  [1]support at avalon-it.nl |  [2]www.avalon-it.nl |
> Skype: avalon-it
>
> Please consider the environment before printing this email
>
> 07-02-2019 12:30 (Europe/Amsterdam) - Marcel Schulte schreef:  Hi Sander,
>   didn't you receive my previous mail (see below)?
>    
>   Marcel
>   
>      Am Mi., 6. Feb. 2019, 00:04 hat Marcel Schulte
> <[3]schulte.marcel at gmail.com> geschrieben:
>   Hi Sander,
>
> click the service description of your SFTP service to open the service
> details.
> Scroll down till the 'service check command' row.
> Note the arguments shown after the exclamation mark and try to execute
> this command as siteuser - what's the outcome?
>
> ~/lib/nagios/plugins/check_sftp NOTED_ARGUMENTS
>
> BR,
> Marcel
>
> Am Di., 5. Feb. 2019 um 22:22 Uhr schrieb Avalon IT <[4]support at avalon-it.nl>:
>> Yes, i can do a comandline sftp -oPort=8022 user at ip  from the check_mk
> server. It will connect normally
>> Since the Check_MK rule will work when i change the port of the sftp server
> back to 22, it must have something to do with the port
>> It is specified in the rule values though: IP, user, Password, ******,Port:
> 8022
>> Sander
>> _______________________________________________
>> checkmk-en mailing list
>> [5]checkmk-en at lists.mathias-kettner.de
>> Manage your subscription or unsubscribe
>> [6]https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/checkmk-en
>
>
> [1] mailto:info at avalon-it.nl
> [2] http://www.avalon-it.nl/
> [3] mailto:schulte.marcel at gmail.com
> [4] mailto:support at avalon-it.nl
> [5] mailto:checkmk-en at lists.mathias-kettner.de
> [6] https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/checkmk-en
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <https://lists.mathias-kettner.de/pipermail/checkmk-en/attachments/20190207/7927cd8b/attachment-0001.html>
>
> ------------------------------
>
> Message: 4
> Date: Thu, 7 Feb 2019 15:11:53 +0100
> From: Carlos Fernández Manteiga <cfernandez at bitban.com>
> To: checkmk-en at lists.mathias-kettner.de
> Subject: [Check_mk (english)] About: NetApp monitoring stopped
> 	working,	and what we did to fix it
> Message-ID:
> 	<CAAzO6T3DWZ7kONygJV9dx6MRov01LM5VXp_BrJX+9dqBQ_C1JA at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi,
>
> We also had this error monitoring several Netapp's:
>
> Querying class environment-sensors-get-iter:  Timeout: Operation
> "environment_sensors_iterator::next_imp()" took longer than 25 seconds to
> complete [from mgwd on node "node name" (VSID: -1) to mgwd at
> xxx.xxx.xxx.xxx]
>
> And googling took us to:
> https://lists.mathias-kettner.de/pipermail/checkmk-en/2018-October/026325.html
>
> The solution to this error is renewing the SP certificates as Jordan said.
> The commands to fix it are:
>
> set -privilege advanced
> system service-processor api-service renew-certificates
>
> And that's all, monitoring come back to life.
>
> Regards
>
>


More information about the checkmk-en mailing list