We have not received data from several agents for some time. According to the debugging log, the XML files are sent. I have checked that in the directory
/var/spool/pandora/data_in
there are 24675 files of type*.data
, it is normal?
It is a clear case of XML queuing that the server is not able to process, it could have happened for several reasons, the most common ones are:
- Pandora FMS server has stopped, from this moment it doesn’t process any XML.
- Solution: Re-establish service
/etc/init.d/pandora_server start
.
- Solution: Re-establish service
- The Pandora FMS server processes the slowest XML of the amount of these new ones coming in.
- Solution: Spin up the number of threads to PFMS Data server, in the file
/etc/pandora/pandora_serve.conf
, modify the parameterdataserver_threads
(increase threads).
- Solution: Spin up the number of threads to PFMS Data server, in the file
- One or several agents have sent an important amount of XML in a short time, this is because the agents in their configuration file
/etc/pandora/pandora_agent.conf
have the parameterxml_buffer
configured to 1, what does this parameter do?
What it does is to accumulate in the /tmp
directory of the agent all the XML that it is NOT able to send to the pandora server due to, for example, server-agent connectivity problems. When this connectivity is recovered, it sends as many XML as it has generated in that time, so if this happens during a long time or with several agents at the same time, it could be that the Pandora FMS server receives an important amount of XML in a short time, and from there the queuing.
-
- Solution: move the XML from the
/var/spool/pandora/data_in
of the server to a temporary directory, for example/tmp
, and later put them little by little again in the /var/spool/pandora/data_in of the server to process them little by little.
- Solution: move the XML from the