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:17Hi 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
-
-
::
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.
-
::
[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.
-
-
-
-
-
::
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.
-
::
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 serversnmpconsole 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 -
::
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.
-
::
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
-
::
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 !
-
-