Welcome to Pandora FMS Community!

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

  • Problem Starting FMS Server

    Posted by hannylicious on April 7, 2009 at 10:04

    Hello,
    I have done some searching of the forums but wasn’t able to find exactly the help I was looking for, and I am at my wits end so I figure I will see if you guys might have some ideas.
    I’ve recently installed Pandora FMS (obviously), but am having issues getting it all to work appropriately.

    I was able to use the web installer and things worked fine.
    I’ve setup my /etc/pandora/pandora_server.conf file to the appropriate dbname, dbuser, and dbpass…
    and it was a ‘default’ install for the most part…

    When I go to the web interface and login – under the ‘tactical server information’, the Data server appears to be Down. Because of that I figured I would try to ‘stop’ and ‘start’ the server (/etc/init.d/pandora_server stop & /etc/init.d/pandora_server start).

    It tells me it can’t stop the service because it isn’t running. When I attempt to start it – I get the following:
    root@ubuntu2:/var/log/pandora# /etc/init.d/pandora_server start

    Pandora FMS Data Server 3.0-dev Build PS090305 Copyright (c) 2004-2009 ArticaST
    This program is OpenSource, licensed under the terms of GPL License version 2.
    You can download latest versions and documentation at http://www.pandorafms.org

  • Server basepath is /etc/pandora/pandora_server.conf
  • Server logfile at /var/log/pandora/pandora_server.log
  • Server errorlogfile at /var/log/pandora/pandora_server.error
  • Server incoming directory at /var/spool/pandora/data_in
  • Server keepalive 45
  • Server threshold 5
  • You are running Pandora FMS Data Server.
  • This server is running in MASTER mode.
  • Pandora FMS Server [ubuntu2_Data] is running and operative
  • Backgrounding Pandora FMS Data Server process.
  • Cannot start Pandora FMS Data Server. Aborted.

    Now – I have been to the /var/spool/pandora/data_in and do not see any .data files (but have configured an agent on my windows machine sitting next to my server (Ubuntu Server 8.10))

    I guess I’m kind of clueless at this point where to begin looking…

    the log file (/var/log/pandora/pandora_server.log) looks like this:
    2009/04/07 09:32:56 ubuntu2_Data Launching 3.0-dev PS090305
    2009/04/07 09:32:56 ubuntu2_Data [V1] Config options: Logfile at /var/log/pandora/pandora_server.log, Basepath is /etc/pandora/pandora_server.conf, Checksum is 0, Master is 1, SNMP Console is 1, Server Threshold at 5 sec, verbosity at 1, Alert Threshold at 45, ServerName is ‘ubuntu2_Data’
    2009/04/07 09:32:56 ubuntu2_Data [V1] Server ubuntu2_Data going UP
    2009/04/07 09:33:20 ubuntu2_Data Launching 3.0-dev PS090305
    2009/04/07 09:33:20 ubuntu2_Data [V1] Config options: Logfile at /var/log/pandora/pandora_server.log, Basepath is /etc/pandora/pandora_server.conf, Checksum is 0, Master is 1, SNMP Console is 1, Server Threshold at 5 sec, verbosity at 10, Alert Threshold at 45, ServerName is ‘ubuntu2_Data’
    2009/04/07 09:34:50 ubuntu2_Data Launching 3.0-dev PS090305
    2009/04/07 09:34:50 ubuntu2_Data [V1] Config options: Logfile at /var/log/pandora/pandora_server.log, Basepath is /etc/pandora/pandora_server.conf, Checksum is 0, Master is 1, SNMP Console is 1, Server Threshold at 5 sec, verbosity at 10, Alert Threshold at 45, ServerName is ‘ubuntu2_Data’
    2009/04/07 09:36:23 ubuntu2_SNMP [V1] Server ubuntu2_Data going Down
    2009/04/07 09:40:33 ubuntu2_Data Launching 3.0-dev PS090305
    2009/04/07 09:40:33 ubuntu2_Data [V1] Config options: Logfile at /var/log/pandora/pandora_server.log, Basepath is /etc/pandora/pandora_server.conf, Checksum is 0, Master is 1, SNMP Console is 1, Server Threshold at 5 sec, verbosity at 10, Alert Threshold at 45, ServerName is ‘ubuntu2_Data’
    2009/04/07 09:40:33 ubuntu2_Data [V1] Server ubuntu2_Data going UP
    2009/04/07 09:42:09 ubuntu2_Net [V1] Server ubuntu2_Data going Down

    I am by no means a real ‘linux user’, but am partially familiar with aspects of linux and have the ability to google up what I don’t know how to do.

    ANY help you guys might be able to provide or insight into my problems would be readily welcomed… I’ll be checking back often so if you have any comments/questions for me that I can check – please let me know!

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

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

      try:
      pandora_server /etc/pandora/pandora_server.conf

      what do you see?

    • hannylicious

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

      Sorry, the output looks like this:

      Pandora FMS Data Server 3.0-dev Build PS090305 Copyright (c) 2004-2009 ArticaST
      This program is OpenSource, licensed under the terms of GPL License version 2.
      You can download latest versions and documentation at http://www.pandorafms.org

      readline() on closed filehandle CFG at /usr/local/share/perl/5.10.0/PandoraFMS/Config.pm line 233.
      [FATAL] Cannot open logfile at /var/log/pandora_server.log at /usr/local/share/perl/5.10.0/PandoraFMS/Tools.pm line 267.

    • hannylicious

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

      Eesh – I realized I was running it as my local user, when ran as root the output looks like this:

      Pandora FMS Data Server 3.0-dev Build PS090305 Copyright (c) 2004-2009 ArticaST
      This program is OpenSource, licensed under the terms of GPL License version 2.
      You can download latest versions and documentation at http://www.pandorafms.org

    • Server basepath is /etc/pandora/pandora_server.conf
    • Server logfile at /var/log/pandora/pandora_server.log
    • Server errorlogfile at /var/log/pandora/pandora_server.error
    • Server incoming directory at /var/spool/pandora/data_in
    • Server keepalive 45
    • Server threshold 5
    • You are running Pandora FMS Data Server.
    • This server is running in MASTER mode.
    • Pandora FMS Server [ubuntu2_Data] is running and operative
    • Starting up Data Consumer Thread # 0
    • Starting up Data Consumer Thread # 1
    • All threads loaded and running
    • It remains ‘up’ for a while, but after about 4-5 minutes it goes Down again. I’m not sure as to why… also it will apparently (it seems random) go up and down over time…
      I’m not sure exactly why or how this is happening.

  • manu

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

    Is this installation from the SVN?
    Is pandora_server the only one failing? I mean, can you see pandora_network and stuff in the webconsole?
    Did you change the logfile directive at /etc/pandora/pandora_server.conf ?

  • hannylicious

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

    I downloaded & installed from the web following the install guide…
    and yes, pandora_server is only one failing. I can see pandora_network & prediction & recon & SNMP & WMI in web console and all up and apparently running fine it seems (they’re green, and don’t ever go down)

    The only thing I changed in the pandora_server.conf file was the servername & dbpass… other than that it’s a default install…
    anything I might be able to post to assist you with this further?

    As I said before – I’m pretty new to a lot of this, but will do anything I can to help out with diagnosing this stuff 🙂

  • manu

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

    Sorry, I didn’t read your last post.
    Alright, so now it goes up and then fail.
    Cool, edit your /etc/pandora/pandora_server.conf
    verbosity 10

    Run it in the daemon mode:
    /etc/init.d/pandora_server start

    Now if it goes down the log will be more detailed.

    Regarding your .data missing files…did you install tentacle server?
    http://openideas.info/wiki/index.php?title=Tentacle:UserGuide

    Agents are configured to send data, by default, using tentacle.
    If you want them to use SSH, just generate the keys and copy them to the pandora_server, (I do not recommend this method, it is a pain).
    Anyways, this is the documentation for that transfer mode:
    http://openideas.info/wiki/index.php?title=Pandora_2.0:Documentation_en:Install_Server#Setting_up_SSH_configuration_to_receive_data_packets
    http://openideas.info/wiki/index.php?title=Pandora_2.0:Documentation_en:Install_Agent#SSH_Key_generation_for_Windows

  • hannylicious

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

    I set verbosity to 10.

    Attempted to run in daemon mode and recieved this:

  • Server basepath is /etc/pandora/pandora_server.conf
  • Server logfile at /var/log/pandora/pandora_server.log
  • Server errorlogfile at /var/log/pandora/pandora_server.error
  • Server incoming directory at /var/spool/pandora/data_in
  • Server keepalive 45
  • Server threshold 5
  • You are running Pandora FMS Data Server.
  • This server is running in MASTER mode.
  • Pandora FMS Server [ubuntu2_Data] is running and operative
  • Backgrounding Pandora FMS Data Server process.
  • Cannot start Pandora FMS Data Server. Aborted.

    Went to the log file (/var/log/pandora/pandora_server.log ) and found this:

    2009/04/07 14:33:06 ubuntu2_Data Launching 3.0-dev PS090305
    2009/04/07 14:33:06 ubuntu2_Data [V1] Config options: Logfile at /var/log/pandora/pandora_server.log, Basepath is /etc/pandora/pandora_server.conf, Checksum is 0, Master is 1, SNMP Console is 1, Server Threshold at 5 sec, verbosity at 10, Alert Threshold at 45, ServerName is ‘ubuntu2_Data’
    2009/04/07 14:33:06 ubuntu2_Data [V1] Server ubuntu2_Data going UP
    2009/04/07 14:34:37 ubuntu2_WMI [V1] Server ubuntu2_Data going Down

    Also, regarding tentacle, I did not install tentacle server to my knowledge (unless that was part of install which it doesn’t look like it was, I will get to work on that next)

    I appreciate all your help on this…

  • manu

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

    Did you do that using the root user or the normal user again?

  • hannylicious

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

    I did that as root.

  • manu

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

    Alright, let’s go back to:

    pandora_server /etc/pandora/pandora_server.conf

    What do you get?

    This doesn’t make any sense, today I installed the same version as you did without any problem…

  • hannylicious

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

    As Root:
    pandora_server /etc/pandora/pandora_server.conf

    Results:

  • Server basepath is /etc/pandora/pandora_server.conf
  • Server logfile at /var/log/pandora/pandora_server.log
  • Server errorlogfile at /var/log/pandora/pandora_server.error
  • Server incoming directory at /var/spool/pandora/data_in
  • Server keepalive 45
  • Server threshold 5
  • You are running Pandora FMS Data Server.
  • This server is running in MASTER mode.
  • Pandora FMS Server [ubuntu2_Data] is running and operative
  • Starting up Data Consumer Thread # 0
  • Starting up Data Consumer Thread # 1
  • All threads loaded and running
  • (being so new to a lot of this, there’s probably something totally obvious I’m missing… I’m not sure but it appears to be 90% working…)

  • manu

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

    Good, now if it crashes we’ll see in the logs.

    There’s something I still don’t understand though.

    If you do (as a normal user):
    sudo /etc/init.d/pandora_server start

    It doesn’t go up…right?

  • hannylicious

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

    You are correct.
    if I do sudo /etc/init.d/pandora_server start -it does NOT go up.

    And…
    when I do the way you described before (pandora_server /etc/pandora/pandora_server.conf) it only stays up for a matter of minutes before going down.
    These are the logs from approximately the past hour (you can see where I’ve tried restarting)

    2009/04/07 14:33:06 ubuntu2_Data Launching 3.0-dev PS090305
    2009/04/07 14:33:06 ubuntu2_Data [V1] Config options: Logfile at /var/log/pandora/pandora_server.log, Basepath is /etc/pandora/pandora_server.conf, Checksum is 0, Master is 1, SNMP Console is 1, Server Threshold at 5 sec, verbosity at 10, Alert Threshold at 45, ServerName is ‘ubuntu2_Data’
    2009/04/07 14:33:06 ubuntu2_Data [V1] Server ubuntu2_Data going UP
    2009/04/07 14:34:37 ubuntu2_WMI [V1] Server ubuntu2_Data going Down
    2009/04/07 14:59:24 ubuntu2_Data Launching 3.0-dev PS090305
    2009/04/07 14:59:24 ubuntu2_Data [V1] Config options: Logfile at /var/log/pandora/pandora_server.log, Basepath is /etc/pandora/pandora_server.conf, Checksum is 0, Master is 1, SNMP Console is 1, Server Threshold at 5 sec, verbosity at 10, Alert Threshold at 45, ServerName is ‘ubuntu2_Data’
    2009/04/07 14:59:24 ubuntu2_Data [V1] Server ubuntu2_Data going UP
    2009/04/07 15:00:55 ubuntu2_WMI [V1] Server ubuntu2_Data going Down
    2009/04/07 15:43:34 ubuntu2_Data Launching 3.0-dev PS090305
    2009/04/07 15:43:34 ubuntu2_Data [V1] Config options: Logfile at /var/log/pandora/pandora_server.log, Basepath is /etc/pandora/pandora_server.conf, Checksum is 0, Master is 1, SNMP Console is 1, Server Threshold at 5 sec, verbosity at 10, Alert Threshold at 45, ServerName is ‘ubuntu2_Data’
    2009/04/07 15:43:34 ubuntu2_Data [V1] Server ubuntu2_Data going UP
    2009/04/07 15:45:05 ubuntu2_Net [V1] Server ubuntu2_Data going Down

  • manu

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

    Anything at /var/log/pandora/pandora_server.err ?
    Do you have anything at /var/spool/pandora/data_in ?

  • manu

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

    What error do you get when you do:
    pandora_server /etc/pandora/pandora_server.conf and it goes down?

  • hannylicious

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

    There is no pandora_server.err file (or at least it’s empty) in /var/log/pandora/

    also when I go to /var/spool/pandora/data_in and run ‘ls’ there is nothing listed as being there.

    Would it be something I messed up during install possibly that would be causing all this do you think?

  • hannylicious

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

    What error do you get when you do:
    pandora_server /etc/pandora/pandora_server.conf and it goes down?

    I don’t get an error – It just says that it’s going down under the Latest Events column.

  • manu

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

    Alright, but in the Linux command line it still runs?

  • hannylicious

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

    That’s correct.
    No errors come up in the command line, it just goes down with no notification.

  • manu

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

    Is there any IP I can connect to and take a look?

  • Page 1 of 2
    Start of Discussion
    0 of 0 replies June 2018
    Now