Welcome to Pandora FMS Community!

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

  • Modify FTP Server

    Posted by freediver211 on May 29, 2008 at 15:56

    Can I modify Pandora FMS to look at a directory for the status XML files instead of using the FTP server? In other words, I have my own file transfer utility.

    If so, how would I accomplish this task?

    Many thanks in advance…. 😉

    raul replied 16 years, 8 months ago 2 Members · 5 Replies
  • 5 Replies
  • freediver211

    Member
    May 29, 2008 at 16:57
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    For testing purposes I am running Pandora on a VM using VMWare Player. Here is what I would like to do as an example:
    1. Share a network drive with my VM and my Windows XP OS
    2. Modify Pandora Core Server to monitor the shared network drive (a directory on my Windows XP box) for the XML status. I will populate the network drive myself with the status files.

    Can this be done?

  • raul

    Member
    May 29, 2008 at 18:27
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    You can set debug directive to 1 in the pandora_agent.conf file and set the temp folder (temporal directive) in the same file to the incoming packets folder for your server:

    Client side:
    [code:1]debug 1
    temporal /var/spool/pandora/data_in

    Server side:
    [code:1]
    incomingdir /var/spool/pandora/data_in

    Of course, both, server and agent, should have access to that folder in rw:

    – Agent writes data to the “temporal” folder
    – Server gets data from the “temporal” folder, process and delete.

    That should be all.

    Server in windows is not supported (see http://www.openideas.info/phpbb/viewtopic.php?t=242&sid=86058b26ebe479bae262bb800bb56f63).

    Raul

  • freediver211

    Member
    June 2, 2008 at 23:35
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    So, I got everything configured. I got a shared drive between my VM and my Windows box. Pandora was sucking in my files from my remote agent then it stopped. Any idea what I could have hosed up? Pandora was working and it was ingesting and deleting the status files received in /var/spool/pandora/data_in but now it appears to have stopped.

    Any thoughts?

  • freediver211

    Member
    June 3, 2008 at 16:25
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    It appears that server is failing to connect to the DB. It say MySQL DB is full.

    Error connecting to DB in init Phase.

  • raul

    Member
    June 3, 2008 at 18:54
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    😐

    Take a look at the file /etc/mysql/my.cnf in ubuntu, it should have the line:

    [code:1]datadir=/var/lib/mysql

    or similar.

    In that folder you’ll find the pandora folder. Could you please run [code:1]ls -lh in this folder and into the pandora folder?

    Raul