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 Server not processing agent data

  • Server not processing agent data

    Posted by decece on July 24, 2008 at 04:17

    Hi there.

    I’m a complete newbie to Pandora. I’m using Pandora for a degree, but I’m having some troubles with it.

    I previously thought that the agent (running in local mode in the server machine), wasn’t copying data into the var/spool/pandora/data_in directory, but in fact, it IS copying the data. The server just doesn’t process that data.

    The agent is well configured, it seems. On the server side, however, I tried putting both 127.0.0.1 and the machine address as the agent address, but it refuses to do anything.

    On the tactical view, it shows Monitor not init: 2 and Data not init: 1. Clicking on agent details, it still shows agent down.

    Does anyone have any clue of where I should look at?

    Thanks in advance

    Sancho replied 16 years, 7 months ago 2 Members · 14 Replies
  • 14 Replies
  • Sancho

    Administrator
    July 24, 2008 at 04:35
    2321 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    I suppose you’re running fine the Pandora FMS data server, isn’t ?

    What version and environments are you using ?

  • decece

    Member
    July 24, 2008 at 05:37
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I’m using Pandora FMS data server, version 1.3.1 on a centos machine. The database is ok, the servers (all 4 of them) are up, and working, but still, there is no way of reading what the agent sends. The idea was to run a local agent (already configured the agent for that), in the very same machine.

  • Sancho

    Administrator
    July 24, 2008 at 05:52
    2321 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    [cite]Posted By: decece[/cite]
    I’m using Pandora FMS data server, version 1.3.1 on a centos machine. The database is ok, the servers (all 4 of them) are up, and working, but still, there is no way of reading what the agent sends. The idea was to run a local agent (already configured the agent for that), in the very same machine.

    Check that agent name (or host name) of the agent host, is defined in the console. You need to define first the agent. Pandora 2.0 autocreate agents, but 1.3.x dont.

  • decece

    Member
    July 24, 2008 at 06:56
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Yes, that’s what I did, following the user manual step by step. But no luck so far.

    The host (and agent) use a rather long name, could that be the cause?

  • Sancho

    Administrator
    July 24, 2008 at 10:53
    2321 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Mmm, i don’t know. Try to setup server log verbosity to max (10) and take a look to pandora_server.log and pandora_server.log.err

    Sorry but sometimes could be something very simple, but it’s hard to find the problem…

  • decece

    Member
    July 24, 2008 at 14:28
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I know, sometimes the smallest detail can generate great headaches.

    I had a few more issues, but this is the last (I hope) remaining problem.

  • decece

    Member
    July 26, 2008 at 03:46
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Pandora_server.log.err is empty, and pandora_server.log contains some old errors (had problems with mysql server going down, but it’s fixed already).

    Maybe I should use “localhost” as agent IP address?

  • Sancho

    Administrator
    July 26, 2008 at 14:23
    2321 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Let’s go….I assume that:

    1. XML data file xxxx.data is present on incoming dir of Pandora server.
    2. Pandora FMS Server have permissions to delete and read this file.
    3. This XML data file is correct (try to rename it and open with firefox).
    4. This agent is defined (with the same name that have in the XML header.
    5. This agent is defined as learning mode.
    6. This agent is not disabled.

    Try to put your pandora_server.conf here.

  • decece

    Member
    July 28, 2008 at 04:21
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Ok, let’s see:

    1. XML data file xxxx.data is present on incoming dir of Pandora server.

    Check. There are several xx.data files, with the 5 minutes (300) interval (in /var/spool/pandora/data_in)

    2. Pandora FMS Server have permissions to delete and read this file.

    Uncertain. I’m afraid to ask, how do I check?

    3. This XML data file is correct (try to rename it and open with firefox).

    Check, the files are correct.

    4. This agent is defined (with the same name that have in the XML header.

    Check.

    5. This agent is defined as learning mode.

    Check.

    6. This agent is not disabled.

    Check.

    I asume that probably the problem comes from the server side. In the very beggining I thought it was the agent not sending any data, but I already checked that the agent is working fine. The server just leaves the data files without proccessing (thus giving the agent down error).

    Pandora_server.conf:

    ###################################################################################
    # Pandora Server Parameters, please change it for your setup needs
    ###################################################################################

    # Servername: Name of this server
    # if not given, it takes localhost. It’s preferable to setup one
    # because machine name could change by some reason.

    servername IbercomPandora

    # incomingdir: Defines directory where incoming data packets are stored
    # You could set directory relative to base path or absolute, starting with /

    incomingdir /var/spool/pandora/data_in

    # log_file: Main logfile for pandora_server
    # You could set file relative to base path or absolute, starting with /

    log_file /var/log/pandora/pandora_server.log

    # Log file for Pandora FMS SNMP console. Its generated by NetSNMP Trap daemon

    snmp_logfile /var/log/pandora/pandora_snmptrap.log

    # Error logfile: aux logfile for pandora_server errors (in Daemon mode)
    # You could set file relative to base path or absolute, starting with /

    errorlog_file /var/log/pandora/pandora_server.error

    # dbname: Database name (pandora by default

    dbname pandora

    # dbuser: Database user name (pandora by default)

    dbuser pandora

    # daemon: Runs in daemon mode (background) if 1, if 0 runs in foreground
    # this could be setup on command line with -D option

    # daemon 1

    # dbpass: Database password

    dbpass ************

    # dbhost: Database hostname or IP address

    dbhost localhost

    # verbosity: level of detail on errors/messages (0 default, 1 verbose, 2 debug…. 10 noisy)
    # -v in command line (verbose) or -d (debug)

    verbosity 1

    # Alert threshold

    alert_threshold 45

    # Master Server, 1 if master server (normal mode), 0 for slave mode (slave in multi-server setup)

    master 1

    # Check datafiles using a MD5 hash, 1 to check (default), 0 to ignore .checksum

    checksum 0

    # Activate Pandora SNMP console (depending on snmptrapd)
    # only available on Pandora Network server

    snmpconsole 1

    # Activate (1) Pandora Network Server

    networkserver 1

    # Activate (1) Pandora Data Server

    dataserver 1

    # Activate (1) Pandora FMS Recon server

    reconserver 1

    # Network timeout (in seconds) for timeout in network connections for Network agents

    network_timeout 5

    # Server keepalive (in seconds)

    server_keepalive 50

    # Server Threshold: defines number of seconds of main loop (in sec)

    server_threshold 15

    network_threads 5

    # icmp_checks x : defines number of pings for each icmp_proc module type. at least one of that ping should be 1 to report 1
    icmp_checks 2

  • Sancho

    Administrator
    July 28, 2008 at 04:45
    2321 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Are you running the server as root ?

    Setup maximun log level:

    verbosity 10

    Run manually the server:

    pandora_server /etc/pandora/pandora_server.conf

    Let it some time to process data files. And check /var/log/pandora/pandora_server.log and /var/log/pandora/pandora_server.error for any additional information.

  • decece

    Member
    July 28, 2008 at 06:43
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Ok, something’s clear. It doesn’t connect to the DB.

    I get this:

    Pandora FMS Data Server 1.3 Build PS071012 Copyright (c) 2004-2007 ArticaST
    This program is Free Software, licensed under the terms of GPL License v2.
    You can download latest versions and documentation at http://pandora.sourceforge.net.

    [W] It is not a good idea running Pandora FMS Server as root user, please DON’T DO IT!

  • 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 50
  • Server threshold 15
  • You are running Pandora FMS Data Server.
  • This server is running in MASTER mode.
  • [E] Error connecting database in init Phase. Aborting startup.

    DBI connect(‘pandora:localhost:3306′,’pandora’,…) failed: Access denied for user ‘pandora’@’localhost’ (using password: YES) at /usr/lib/perl5/site_perl/5.8.8/PandoraFMS/Config.pm line 303

  • Sancho

    Administrator
    July 28, 2008 at 14:45
    2321 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hehehe. That’s it.

    If cannot connect database, nothing works. Check database permissions, update /etc/pandora/pandora_server.conf and check username (usually pandora), password and host.

    You can compare with pandora console settings contained in /var/www/pandora_console/include/config.php

    Good luck, this seems to be a quick solution !

  • decece

    Member
    July 28, 2008 at 17:21
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    It’s alive!!

    We were 2 people working with this, and there was a mess regarding the user/password in the different configuration files. Now it’s working fine, it seems.

    Te debo una caña

  • Sancho

    Administrator
    July 29, 2008 at 02:50
    2321 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Great ! 🙂