Welcome to Pandora FMS Community!

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

  • Dual Network Cards?

    Posted by hannylicious on April 8, 2009 at 14:25

    Okay,

    I am back yet again!
    So – Pandora FMS is up and operation (and working great) – I just had a few questions regarding the agent and installing on Windows Server 2003.

    I have a Windows Server 2003 box, and was able to add the agent to that machine and it showed up almost immediately (how easy was that?!)

    I installed on another server in our server room, and it has been unable to be seen by Pandora.

    The difference between the two is that one has dual NIC cards and I’m wondering if that could be a reason for the problem? Is there anyway to troubleshoot further to see if it is the dual cards?
    The cards are ‘teamed’ to allow faster data transfers – but I’m wondering if it is also the reason the agent doesn’t seem to just ‘work’ as easily as it did on the 2003 server with only 1 network card.

    Any have any experience with multiple network cards and pandoraFMS?

    manu replied 15 years, 5 months ago 2 Members · 15 Replies
  • 15 Replies
  • manu

    Member
    April 8, 2009 at 14:49
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    That doesn’t make sense.
    Is the connection between the Agent and PandoraFMS server possible?

    Can you send a file from the Windows box to the pandora server?
    Again, tentacle_client -a IP filetosend

  • hannylicious

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

    Yes, it can connect. I was able to send a file (the way you described) just fine from the agent to the server.

    Perhaps I should try reinstalling the agent to see if that has any success?
    When I installed the agent on the other server, it came up on the system very quickly, with no issues, so I was a bit baffled when this one did not.

  • manu

    Member
    April 8, 2009 at 15:47
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    No, don’t reinstall it.

    Edit pandora_agent.conf and set:
    debug 1

    It will generate a file called hostname.data under the Temporal directory (by default WindowsTemp).

    Using tentacle_client, send it to pandora and take a look if pandora recognized it in the webconsole

    tentacle_client -a hostname.data

  • hannylicious

    Member
    April 8, 2009 at 16:02
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Wierd,
    When I attempted to send that .data file it responded with:
    [err] Server responded ‘SEND ERR’

    So I took it out of debug mode and attempted to send it again, but got the same response.

    Not sure what that’s about… or why I was able to send that test.txt file earlier…

  • manu

    Member
    April 8, 2009 at 16:26
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Debug 1 mode just only implies the agent will not send the file to the server so you can take a look at it.

    If you are getting the .data file the agent runs fine so the problem is the connection to the server as you are seeing with the [err] Server responded ‘SEND ERR’ error.
    Firewall problem maybe?

    telnet pandoraIP 41121

    What do you get?

  • hannylicious

    Member
    April 8, 2009 at 16:38
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I am thinking it may be some weird setting on this server itself… I have been installing the agent on other servers and having no issues (and they have bridged network cards)

    Anyhow,

    When I do telnet IP 41121 :
    The cmd prompt changes to all black… if I try to type something it, I can’t see the text I am typing. When I press enter it kicks me out and takes me back to the normal windows command prompt (so I’m assuming that’s an unsuccesful connection? Not real familiar with telnet…)

    I had considered a firewall issue, but all the other servers on that same rack are having no problems (and install is super easy!)

  • manu

    Member
    April 8, 2009 at 16:51
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Really weird yes cause that “black screen” in telnet means it is connecting.

    What does program filespandora_agentpandora_agent.log say?

    Why don’t you try to configure this agent to send the data using SSH and see what happens?
    http://openideas.info/wiki/index.php?title=Pandora_2.0:Documentation_en:Install_Agent#SSH_Key_generation_for_Windows

  • hannylicious

    Member
    April 8, 2009 at 16:59
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    All the pandora_agent.log file says is:
    2009-04-08 15:27:28 Pandora agent stopped
    2009-04-08 15:27:40 Pandora agent started
    2009-04-08 15:59:26 Pandora agent stopped
    2009-04-08 15:59:31 Pandora agent started
    2009-04-08 20:45:42 Pandora agent stopped
    2009-04-08 20:45:48 Pandora agent started
    2009-04-08 20:51:24 Pandora agent stopped
    2009-04-08 20:51:28 Pandora agent started
    2009-04-08 21:11:40 Pandora agent stopped
    2009-04-08 21:12:12 Pandora agent started

    I am not sure why on this server it’s having issues. Every other machine has had no issues at all!
    I’ll have to give the SSH method a try tomorrow – it’s time for me to get out of here for now however…

    Thank you SO MUCH for ALL of your help!! You’ve been an amazing help and now I’ve got everything (except this server) running smoothly.

  • manu

    Member
    April 9, 2009 at 02:52
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Try again tentacle_client -a hostname.data (the file you should have at WindowsTemp) several times to see if you get that file sent manually.
    I’m pretty sure it is a connection issue, I just want you to try to send that file to see if it send it is recognized by pandora in the webconsole.
    If necessary, copy it to a pendrive or something and put it manually under /var/spool/pandora/data_in in the Linux machine.
    The point is to _be sure_ that if the file were sent it would be detected by Pandora, so we can focus in the connection issue.

  • hannylicious

    Member
    April 9, 2009 at 08:17
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I can confirm that it is a connection issue.
    I manually placed the .data file into the /var/spool/pandora/data_in folder and it was immediately recognized by pandora.

    I’m going to take a look and see what kind of software might be on that machine that could possibly be blocking ports and give the SSH method a try if I can find nothing blocking the ports..

  • hannylicious

    Member
    April 9, 2009 at 11:09
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    SSH method worked and is up and operational.

    Thank you again for all your help with these couple issues. Really appreciated.

  • hannylicious

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

    Perhaps I spoke to soon.
    It came online – seemed to be fine, and now the monitors have been idle for some time (over 15 minutes) and it doesn’t appear to be sending any further data…

    Is there something in the config that I have to change when using ssh, other than the transfer method?

  • manu

    Member
    April 9, 2009 at 11:31
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Is the agent running?
    I had some issues with the agent and libssh for windows, sometimes it made the agent crash, check if the agent is still running.
    Restart it anyhow

  • hannylicious

    Member
    April 9, 2009 at 12:35
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I think it was an ID10T error 😉

    I forgot to change the port to 22 when I switched over to ssh on the config. of the server…

    Once I switched it to port 22 it’s been up and operational for some time now without any issue.

    Thanks again for all the help 😀

  • manu

    Member
    April 9, 2009 at 16:42
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    hahaha niiiice 🙂

    I’m glad it is running smoothly!

    And…you’re welcome!