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 What can cause Pandora Server to Stop?

  • What can cause Pandora Server to Stop?

    Posted by leandrojmp on January 5, 2009 at 09:29

    Hi,

    I’m running Pandora Server and i have 10 agents and 93 modules, all the modules run a script the call a sqlplus query.

    Everything was working fine, but on December 30th the server stops, because the holidays we only saw today, January 5th.

    I look at the log, but the verbosity was set to 1 and i got nothing that can help me to find why the server goes down.

    What can make the server goes down? I found that there was an agent that was sending data but that agent wasn’t configured on Pandora, but i don’t think that can make the server goes down.

    I think maybe it’s something to do with the load, the load is always on 100% and now i have a Lag of about one hour.

    Any ideas?

    manu replied 16 years, 1 month ago 2 Members · 5 Replies
  • 5 Replies
  • manu

    Member
    January 5, 2009 at 10:37
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Load doesn’t mean the server is working all the time, a 100% load means that that server has 100% of the modules assigned to it. We know it can lead to a confusion that’s why we added a small description in the interactive help.

    Regarding the stop issue, no, that’s weird, and an agent not configured in pandora will not make the server to stop, so it must be another thing, but if we don’t have log traces……there’s nothing we can do 🙁

  • leandrojmp

    Member
    January 5, 2009 at 11:45
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I’ve restarted the server today, with the verbosity set to 10, the server stills stops suddenly, but i got not on the log file that helps.

    Below is the last line before the server stops:

    2009/01/05 13:07:25 planoverao_Data [V4] Ready to parse /pandora/spool/data_in/vendas_b2c.1231168006.data
    2009/01/05 13:07:25 planoverao_Data [V9] Updating tagent_access for agent id 9
    2009/01/05 13:07:25 planoverao_Data [V6] DEBUG: calcula_alerta() Calculado id_agente_modulo a 72
    2009/01/05 13:07:25 planoverao_Data [V6] pandora_lastagentcontact: Updating Agent last contact data for vendas_b2c
    2009/01/05 13:07:25 planoverao_Data [V10] pandora_lastagentcontact: SQL Query: update tagente set intervalo = 600, agent_version = ‘1.3.1’, ultimo_contacto_$
    2009/01/05 13:07:25 planoverao_Data [V5] Processing module Name ( id50900 ) type ( generic_data ) for agent ( vendas_b2c )
    2009/01/05 13:07:25 planoverao_Data [V5] Updating data for id50900 after compare with tagente_data: new(97.00) ne old(102.00)
    2009/01/05 13:07:25 planoverao_Data [V6] DEBUG: pandora_insertdata Calculado id_agente_modulo a 74
    2009/01/05 13:07:25 planoverao_Data [V10] DEBUG: pandora_insertdata SQL : INSERT INTO tagente_datos (id_agente_modulo, datos, timestamp, utimestamp, id_age$
    2009/01/05 13:07:25 planoverao_Data [V6] DEBUG: calcula_alerta() Calculado id_agente_modulo a 74

    After that no more lines, so i checked and the server was stoped.

    Any ideas?

    I only have one server, the server_keepalive and server_threshold on the configuration file has any effect if you use only one server?

  • manu

    Member
    January 5, 2009 at 17:00
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Start it with:

    /usr/local/bin/pandora_server /etc/pandora/

    Leave it there till it fails again so you’ll be able to see an error, paste it here.

  • leandrojmp

    Member
    January 6, 2009 at 07:00
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I’ll try something like that here, i have a customized installation, all pandora files are under the filesystem /pandora.

    So, i check the log today and see no errors, but pandora server stops suddenly again, the last action logged was:

    2009/01/06 09:53:23 planoverao_Data [V6] DEBUG: calcula_alerta() Calculado id_agente_modulo a 128

    After that the server stops, but there are nothing on the pandora_server.error

    I still can’t figure out what is causing pandora to stops suddenly, since there is nothing in the log file that can give me a direction to solve the problem, i think that the better way to deal with this problem is to use a script to check if the server is running and if not, start the server again.

  • manu

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

    The best way to debug it is launching the server without the daemon process. You can do that using pandora_server /PATH/TO/THE/PANDORA_SERVER.CONF