Adding the following to $OSSEC_HOME/agentless/sshlogin.exp and
ssh_nopass.exp enable the use of ssh_generic_diff to work on AIX
systems.

    "*>" {
        send_user "\nINFO: Started.\n"
    }



On Wed, Jul 11, 2012 at 9:34 PM, dan (ddp) <[email protected]> wrote:
>
> On Jul 11, 2012 8:20 PM, "Joe Gedeon" <[email protected]> wrote:
>>
>> Dan thanks for that.  It doesn't look to be an issue at all with the
>> AIX server.  Looks like expect wasn't set up to expect the prompt from
>> AIX.
>>
>
> It was just a guess, you didn't give me much to go on.
>
>>     "*\\\$" {
>>         send_user "\nINFO: Started.\n"
>>     }
>>     "*#" {
>>         send_user "\nINFO: Started.\n"
>>     }
>>
>> root@server:/opt/ossec# sudo -u ossec ./agentless/ssh_generic_diff
>> [email protected] ls -la /etc/
>> spawn ssh [email protected]
>> Last unsuccessful login: Wed Jul 11 09:28:37 EDT 2012 on ssh from
>> dbpo_hal1
>> Last login: Wed Jul 11 12:50:02 EDT 2012 on /dev/pts/2 from
>> host.domain.net
>>
>> *******************************************************************************
>> *
>> *
>> *
>> *
>> *  Welcome to AIX Version 6.1!
>> *
>> *
>> *
>> *
>> *
>> *  Please see the README file in /usr/lpp/bos for information pertinent to
>> *
>> *  this release of the AIX Operating System.
>> *
>> *
>> *
>> *
>> *
>>
>> *******************************************************************************
>> root@host->
>>
>>
>>
>> ERROR: Timeout while connecting to host: [email protected] .
>> root@monkey:/opt/ossec#
>>
>> On Wed, Jul 11, 2012 at 12:18 PM, dan (ddp) <[email protected]> wrote:
>> > On Wed, Jul 11, 2012 at 12:09 PM, Joe Gedeon <[email protected]>
>> > wrote:
>> >> I have ran into a small issue using agentless monitoring on an AIX
>> >> system.  When attempting to run any of the checks the connection will
>> >> time out when trying to send the command.  You can clearly see that
>> >> the connection is made and the user is at a prompt, but the commands
>> >> are never passed to the AIX system.
>> >>
>> >> For testing connecting the the agentless user and manually running the
>> >> command works fine.
>> >>
>> >> sudo -u ossec ssh <user>@<system> cat /etc/testfile  Works just fine.
>> >>
>> >> --
>> >> Registered Linux User # 379282
>> >
>> > I think your problem is with the AIX system.
>>
>>
>>
>> --
>> Registered Linux User # 379282



-- 
Registered Linux User # 379282

Reply via email to