Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

Welcome to Pandora FMS Community Forums Community support Win agent does not comunicate with server on VMware Debian

  • Win agent does not comunicate with server on VMware Debian

    Posted by bitel on September 24, 2006 at 12:50

    Hi!

    For my SAP R/3 Agent Module testing, that needs works the Windows Agent, i cant communicate the data (i can see the XML data in temp dir ) … the pandora-log.log file reports this …

    09-24-06 10:47:17: Pandora Agent: Authentication Failed when connecting to 192.168.1.230
    09-24-06 10:47:28: Pandora Agent: Authentication Failed when connecting to 192.168.1.230

    and the cli test say…

    C:Agente2>PandoraAgent.exe –test-ssh
    Public key file: C:Agente2keyid_dsa.pub
    Private key file: C:Agente2keyid_dsa
    Connecting with 192.168.1.230…
    Authentication Failed when connecting to 192.168.1.230
    Check the remote host configuration and the public/private key files.

    ¿?¿? … off course i make all the steps of generate the keys and insert into the authorized_keys Debian file …

    Help! I’am in a stuck!

    Regards,
    Bitel

    anonymous replied 18 years, 3 months ago 3 Members · 5 Replies
  • 5 Replies
  • Sancho

    Administrator
    September 25, 2006 at 13:34
    2309 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Uhoh… houston, we have a problem.

    Please post here pandora_agent.conf

    And post here id_dsa and id_dsa.pub

    Check that key you cut/paste in /home/pandora/.ssh/authorized_keys has not DOS carriage return, and is not “cutted”. This chunk of information must be in one line, not in several lines… its a common problem when exporting keys from DOS to Linux.

    Please check that “pandora” users exists in Debian server, and that /home/pandora/.ssh/autorized_keys has privs. 600 and ownership for pandora user.

    So… be patient 😉

    Hi!

    For my SAP R/3 Agent Module testing, that needs works the Windows Agent, i cant communicate the data (i can see the XML data in temp dir ) … the pandora-log.log file reports this …

    09-24-06 10:47:17: Pandora Agent: Authentication Failed when connecting to 192.168.1.230
    09-24-06 10:47:28: Pandora Agent: Authentication Failed when connecting to 192.168.1.230

    and the cli test say…

    C:Agente2>PandoraAgent.exe –test-ssh
    Public key file: C:Agente2keyid_dsa.pub
    Private key file: C:Agente2keyid_dsa
    Connecting with 192.168.1.230…
    Authentication Failed when connecting to 192.168.1.230
    Check the remote host configuration and the public/private key files.

    ¿?¿? … off course i make all the steps of generate the keys and insert into the authorized_keys Debian file …

    Help! I’am in a stuck!

    Regards,
    Bitel

  • bitel

    Member
    September 26, 2006 at 15:39
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi Slerena!

    Ok… i wil cheks ths keys files …

    “id_dsa”

    —–BEGIN DSA PRIVATE KEY—–
    MIIBuQIBAAKBgE2QLYddmg2krHE8XyqSt4GSv83tKJc6aGQklKW4U/yajNuselXU
    D7on17UjTGcrCVxhnvv5mWdYeHNNfmARteJTEYJd9vneGGZsRW8e1cQscFLNueYB
    /37YTM4zmcwtlOl1XA4Bmn+o5guay2BK4MJeaRxKleJf/xfPZLIjpXjbAhUAlt0K
    tTKvTOHoOJbvwDSyCZnz5sUCgYBDgYK/PtY8fv2Y6MhgE/E2V5k3IobrU4Ptwqtq
    3vSyhbOzkpriKJKb7qg9qHMefzPrGPSK8bpMIdWp0SVyfW3gFMC+Qgh9clzhI42m
    xCPO/DHJoyM3Mmk7RIwXV6j5Z4bcoRIBZf7iR/W9ZViCf7flF6wb4WjaqNY2wRdd
    9anDUwKBgAVQocbFybM3VdizdxmZTgAk3JXrmKHFdkb7h98L5zZ3cgjGuSqRsiRe
    1Zys9vvtJTaH84tlc2a1dR9WqEmMHMzGyhhavN9L4csvaWA7jak2uFTSDAIJlmCM
    A4ejuBwg7NMjtyfLF49MxlXn6cGsmoUfw19IEFz5pDkwnfLRz4VMAhRtwYimR0ZT
    m8IJB5zI2c6pNoR6PQ==
    —–END DSA PRIVATE KEY—–

    “id_dsa.pub”
    ssh-dss AAAAB3NzaC1kc3MAAACATZAth12aDaSscTxfKpK3gZK/ze0olzpoZCSUpbhT/JqM26x6VdQPuifXtSNMZysJXGGe+/mZZ1h4c01+YBG14lMRgl32+d4YZmxFbx7VxCxwUs255gH/fthMzjOZzC2U6XVcDgGaf6jmC5rLYErgwl5pHEqV4l//F89ksiOleNsAAAAVAJbdCrUyr0zh6DiW78A0sgmZ8+bFAAAAgEOBgr8+1jx+/ZjoyGAT8TZXmTcihutTg+3Cq2re9LKFs7OSmuIokpvuqD2ocx5/M+sY9Irxukwh1anRJXJ9beAUwL5CCH1yXOEjjabEI878McmjIzcyaTtEjBdXqPlnhtyhEgFl/uJH9b1lWIJ/t+UXrBvhaNqo1jbBF131qcNTAAAAgAVQocbFybM3VdizdxmZTgAk3JXrmKHFdkb7h98L5zZ3cgjGuSqRsiRe1Zys9vvtJTaH84tlc2a1dR9WqEmMHMzGyhhavN9L4csvaWA7jak2uFTSDAIJlmCMA4ejuBwg7NMjtyfLF49MxlXn6cGsmoUfw19IEFz5pDkwnfLRz4VM dsa-key-20060924

    “pandora_agent.conf”

    # General Parameters
    # ==================

    server_ip 192.168.1.230
    server_path /opt/pandora_server/data_in/
    temporal “c:Agente2temp”
    interval 10
    agent_name vmware_sancho
    debug 1

    # Module Definition
    # =================

    # Counting OpenedConnections (check the language string)
    module_begin
    module_name OpenNetConnections
    module_type generic_data
    module_exec netstat -na | grep ESTAB | wc -l | tr -d ” ”
    module_description Conexiones abiertas (interval 2)
    module_interval 2
    module_end

    Thanks and regards,
    Bitel

    Uhoh… houston, we have a problem.

    Please post here pandora_agent.conf

    And post here id_dsa and id_dsa.pub

    Check that key you cut/paste in /home/pandora/.ssh/authorized_keys has not DOS carriage return, and is not “cutted”. This chunk of information must be in one line, not in several lines… its a common problem when exporting keys from DOS to Linux.

    Please check that “pandora” users exists in Debian server, and that /home/pandora/.ssh/autorized_keys has privs. 600 and ownership for pandora user.

    So… be patient 😉

    Hi!

    For my SAP R/3 Agent Module testing, that needs works the Windows Agent, i cant communicate the data (i can see the XML data in temp dir ) … the pandora-log.log file reports this …

    09-24-06 10:47:17: Pandora Agent: Authentication Failed when connecting to 192.168.1.230
    09-24-06 10:47:28: Pandora Agent: Authentication Failed when connecting to 192.168.1.230

    and the cli test say…

    C:Agente2>PandoraAgent.exe –test-ssh
    Public key file: C:Agente2keyid_dsa.pub
    Private key file: C:Agente2keyid_dsa
    Connecting with 192.168.1.230…
    Authentication Failed when connecting to 192.168.1.230
    Check the remote host configuration and the public/private key files.

    ¿?¿? … off course i make all the steps of generate the keys and insert into the authorized_keys Debian file …

    Help! I’am in a stuck!

    Regards,
    Bitel

  • Sancho

    Administrator
    September 26, 2006 at 15:47
    2309 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Mmm, key seems to be ok.

    Check again all intraestructure

    Pandora SERVER (wih SSH Server) is 192.168.1.230. Check before if its accesible using a telnet 192.168.1.230 22 and getting openssh banner.

    Pandora Agent is X. You have generated keys in this machine, and copied id_dsa.pub into SERVER’s /home/pandora/.ssh/authorized_keys file.

    Please recheck this before continuing testing.

    Another question. I dont see any PHP execution on pandora.conf, how do do you expect to generate XML with your code ?. I suppose you was using module_exec directive to make php cli calls to your code and generate single values for putting on different modules.

  • bitel

    Member
    September 27, 2006 at 05:45
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    It works!
    Thanks a lot for your help…
    I made two changes… first in the pandora_agent.conf i put the host name instead the IP ( server_ip debian ) … and second, in the windows computer i try to connect with “putty.exe” in a SSH mode, and at the six try it works! ¿?¿? i supouse that the putty.exe made something in the windows registry ¿this sounds familiar?

    … and is correct, the agent looks like this :

    module_begin
    module_name SAP_users
    module_type generic_data
    module_exec c:fox2phpcliphp.exe runtime_SAP_CCMS_USERS.php
    module_description SAP Server Concurrent Users
    module_end

    …the other pandora.conf in the previus message is a experiment for solve mi “problem” with the configuration of the windows agent.

    Mmm, key seems to be ok.

    Check again all intraestructure

    Pandora SERVER (wih SSH Server) is 192.168.1.230. Check before if its accesible using a telnet 192.168.1.230 22 and getting openssh banner.

    Pandora Agent is X. You have generated keys in this machine, and copied id_dsa.pub into SERVER’s /home/pandora/.ssh/authorized_keys file.

    Please recheck this before continuing testing.

    Another question. I dont see any PHP execution on pandora.conf, how do do you expect to generate XML with your code ?. I suppose you was using module_exec directive to make php cli calls to your code and generate single values for putting on different modules.

  • anonymous

    Member
    October 20, 2006 at 22:42
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    i was having the same issue, i tracked it down to the fact the pandora was running under the root account. either set pandora to run under the pandora account or put the key under root/.ssh/authorized_keys