Ad Widget

Collapse

Cannot request a shell

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sara.Art
    Member
    • Jun 2020
    • 52

    #1

    Cannot request a shell

    Hi! Still having troubles, sorry. In this case I'm trying to create an item with ssh agent. Is the authetication key mandatory? When I'm going to test it and push the button get value, the error displayed is "cannot request a shell"). I see the ip in the field "host address" but the field port number is blank and i cannot fill it.
    I wonder if I have to use the authetication key in order to use ssh agent (I'd like to collect some information via ssh) and so I receive the error cannot request a shell.
    I've searched about this error but I found very little information. Could You help me? I thank You very nmuch in advance. Have a nice day, Sara
    Attached Files
  • troffasky
    Senior Member
    • Jul 2008
    • 567

    #2
    I also have this issue and am trying to use password authentication, not SSH keys.
    Unlike other items, once it goes in to Not Supported, you cannot get it to try again until it is removed and re-added. Strange.

    Comment

    • Sara.Art
      Member
      • Jun 2020
      • 52

      #3
      Hi Troffasky, I haven't resolved yet this issue. I've a sort of workaround but it has some limits. I created an item "external check" and then I created an sh.script in usr/lib/zabbix/externalchecks, which becomes the key (i set the timeout to 15 in zabbix-server.conf and StrictHostKeyChecking no in config_ssh, then reboot both the services). I also added some preprocessing steps. But I can use this item just for one host (because the ip address should be pointed inside the file, so I must create several files and items, sigh). Have a nice day, Sara

      Comment

      • troffasky
        Senior Member
        • Jul 2008
        • 567

        #4
        I don't know what Zabbix is doing here, the login succeeds and then after 2s it decides that there is a problem:

        Code:
        19097:20210219:141201.786 In ssh_run()
        19097:20210219:141202.331 ssh_run() supported authentication methods:'password'
        19097:20210219:141202.343 ssh_run() password authentication succeeded
        19097:20210219:141204.352 ssh_run() cannot close generic session channel: Failed waiting for channel success
        19097:20210219:141204.352 ssh_run() exitcode:127 bytecount:0
        19097:20210219:141204.353 End of ssh_run():NOTSUPPORTED
        My zabbix_server.conf Timeout is set to 30s. I have tested the process myself manually and it takes less than 1s to get to the prompt where Zabbix should be sending the commands.
        I guess I will just have to use an external check, which is annoying.

        Comment

        • Sara.Art
          Member
          • Jun 2020
          • 52

          #5
          my problem is: cannot close generic session channel: Failed waiting for channel success

          Comment

          Working...