Ad Widget

Collapse

Problem with SSH Agent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JohnCoffe
    Junior Member
    • Oct 2011
    • 3

    #1

    Problem with SSH Agent

    When I try to make items with "ssh.run" on an HP switch:



    I have this error in the logs:

    Code:
    Item [xxxx-zabbix:ssh.run[,x.x.x.x,22,]] became not supported: Failure requesting a shell
    What is this error??

    Does "ssh.run" is configured correctly??
  • JohnCoffe
    Junior Member
    • Oct 2011
    • 3

    #2
    I think it's because of the hp splash screen when you log in:

    Code:
    ProCurve J9088A Switch 2610-48
    Software revision R.11.72
    
    Copyright (C) 1991-2011 Hewlett-Packard Co.  All Rights Reserved.
    
                               RESTRICTED RIGHTS LEGEND
    
     Use, duplication, or disclosure by the Government is subject to restrictions
     as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data and
     Computer Software clause at 52.227-7013.
    
             HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303
    
    
    
    
    
    Press any key to continue
    Is it possible to add a key in the code before executing the command?

    Extract of check_ssh.c:
    Code:
            win2unix_eol(item->params);     /* CR+LF (Windows) => LF (Unix) */
            /* request a shell on a channel and execute command */
            while (0 != (rc = libssh2_channel_exec(channel, item->params)))
            {
                    switch (rc) {
                    case LIBSSH2_ERROR_EAGAIN:
                            waitsocket(s.socket, session);
                            continue;
                    default:
                            SET_MSG_RESULT(result, strdup("Failure requesting a shell"));
                            goto channel_close;
    
                    }
            }

    Person Monitor HP switches via SSH with zabbix?

    Person with an idea to solve the problem??

    Comment

    • JohnCoffe
      Junior Member
      • Oct 2011
      • 3

      #3
      No idea??

      Comment

      Working...