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 Windows agent authentication prob (SSH)

  • Windows agent authentication prob (SSH)

    Posted by dubsaru on August 14, 2009 at 16:08

    See below posts, I changed the topic name to a more suitable one due to the original topic not being the intended issue.

    Sancho replied 15 years, 6 months ago 3 Members · 9 Replies
  • 9 Replies
  • dubsaru

    Member
    August 14, 2009 at 16:43
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Also, I am getting the error while connecting via SSH “2009-08-14 21:39:27 Pandora Agent: Authentication Failed when connecting to 172.16.1.18” in my pandora_agent.log file.

  • Sancho

    Administrator
    August 14, 2009 at 21:13
    2321 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Check your /home/pandora/.ssh directory.

    Do you make a backup of your pandora home directory before installing the .deb package?. I think it’s impossible to change a password using a .deb package. It tries to create “pandora” user, but if exists no harm should be done.

  • dubsaru

    Member
    August 17, 2009 at 11:21
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Thanks for the reply. I have created the authorized_keys file that includes the public key copied from the keys folder on the client. I did not upgrade Pandora using the .deb packages, I did a new install on a new server. The pandora user was created by the .deb package and I was not sure if it was safe to change the password for the pandora user.

    I have regenerated the keys for ssh several times following the included instructions but still get authentication errors. Would installing from source make a difference? I cannot seem to get the pandora agent to communicate with the server. I tried tentacle but the ppd files to install on windows were not compatible with my systems for some reason. I wanted to avoid setting up sftp on the pandora server so the most logical choice was SSH but now I am starting to wonder if I will ever get these boxes talking to each other (and yes they can ping and ssh manually to each other).

    Is there something I am missing or doing wrong?

  • dubsaru

    Member
    August 17, 2009 at 15:26
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Also, from one of the other posts I have tried “pandoraagent.exe –test-ssh” and received the output:

    C:Program Filespandora_agent>PandoraAgent.exe –test-ssh
    Public key file C:Program Filespandora_agentkeyid_dsa.pub exists.
    Private key file: C:Program Filespandora_agentkeyid_dsa exists.
    Connecting with 172.16.1.18.
    Authentication successful.
    Host fingerprint: 19:EC:35:6E:1B:C5:41:FF:A3:C1:62:EB:5C:C5:FD:37
    Created a blank XML file in C:WindowsTempssh.test
    Remote copying C:WindowsTempssh.test on server 172.16.1.18 at /var/spool/pand
    ora/data_in/ssh.test
    Successfuly file copied to remote host
    Successfuly disconnected from remote host
    The SSH test was successful!

    But when checking my pandora_agent.log file I am still getting the following message:

    2009-08-17 20:17:49 Pandora Agent: Authentication Failed when connecting to 172.16.1.18

    There are never any files in the /var/spool/pandora/data_in/ directory that is specified in the conf file, I see data in the data_out directory though. I am really stuck with this one, the test says everything is good but the log says different. Are there any suggestions as to what I could do to ensure the file is being dumped to the data_in folder correctly?

    Here is the data from my agent.conf file.

    server_ip 172.16.1.18
    server_path /var/spool/pandora/data_in
    temporal “C:WindowsTemp”

    # Agent uses your hostname automatically, if you need to change agent name
    # use directive agent_name
    # agent_name Servername

    # Interval is defined in seconds

    interval 300

    # tranfer_modes: Possible values are local, tentacle (default), ftp and ssh.
    transfer_mode ssh
    server_port 22

  • raul

    Member
    August 22, 2009 at 09:53
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Did you follow ALL the steps given in old posts in the forum, this issue has been discused several times, and did you check http://openideas.info/wiki/index.php?title=Pandora_2.0:Documentation_en:Install_Agent#Data_transfer_using_SSH ?

    Raul

  • Sancho

    Administrator
    August 23, 2009 at 17:17
    2321 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Why are you using SSH instead tentacle ?.

  • dubsaru

    Member
    August 27, 2009 at 19:24
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Well, I couldn’t and still cannot get Tentacle to work. It appears that the agent connects but the data never gets dumped to the data_in folder. Unfortunately I just don’t have enough time to keep working on getting tentacle or SSH working so I figure that my next attempt is WMI, which is not nearly as easy to configure as an agent based monitor but those aren’t working for me and at least I get some results with WMI.

  • dubsaru

    Member
    August 28, 2009 at 16:58
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    So WMI was a good option for me as the purpose of this post was so that I could get a working monitor for IIS on our server 2003 boxes. I was able to achieve this by running the following query:

    SELECT * FROM Win32_Service where Name="IISADMIN"

    and setting the Key String to ‘Running’, the Field to ’19’ and Max Value to ‘1’.

    I am officially using Pandora FMS as our company’s primary monitoring resource. Thanks for the great software and keep up the good work, I can’t wait for version 3.

  • Sancho

    Administrator
    September 1, 2009 at 11:00
    2321 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Wonderful, have you check out our new Exchange Library in pandorafms.org ?, we’ve only a few WMI modules, but could be you more ideas.