Pandora FMS community forums
Pandorafms7 on docker does not receives agent's - Printable Version

+- Pandora FMS community forums (https://pandorafms.org/forum)
+-- Forum: Pandora FMS (https://pandorafms.org/forum/forum-3.html)
+--- Forum: Community support (English) (https://pandorafms.org/forum/forum-7.html)
+--- Thread: Pandorafms7 on docker does not receives agent's (/thread-13171.html)



Pandorafms7 on docker does not receives agent's - dandumit - 04-20-2019

Hello All,
I have installed PandoraFMS7 on docker over an xpnology.

Agents are not logging there. 
in fi/var/log/pandora/pandora_agent.log

there is full of errors like :
2019/04/20 04:09:52 - [error] - Error sending file '/tmp/a1a65c078934f7068e9b1ee48241be481529eb6d6c5bfbe89990be7f472f5e3e.1555592391.data' to 'localhost:41121': [err] Cannot connect to localhost on port 41121: Connection refused.

I have tried to run initially 
netstat -an | grep 41121  but nothing revealed. 

I have started it like :
/etc/init.d/tentacle_serverd start

Shouldn't it start automatically ? How I could I add it to startup ? 


And now on netstat I get :
Proto Recv-Q Send-Q Local Address               Foreign Address             State                                                      

tcp        0      0 0.0.0.0:41121               0.0.0.0:*                   LISTEN 

IT looks that it started listening on 41121 but it's not mapped outside of docker container .  At docker level says that container port 41121 it's mapped to local port 32768.

now on pandora_agent.log I have several lines with :
2019/04/20 04:54:49 - [Collection] - Could not open dir /etc/pandora/collections/.empty


Any guideline / documentation for running on Docker ?

Thank you,
Daniel


RE: Pandorafms7 on docker does not receives agent's - eduardo.corral - 04-22-2019

(04-20-2019, 05:23 AM)dandumit Wrote: Hello All,
I have installed PandoraFMS7 on docker over an xpnology.

Agents are not logging there. 
in fi/var/log/pandora/pandora_agent.log

there is full of errors like :
2019/04/20 04:09:52 - [error] - Error sending file '/tmp/a1a65c078934f7068e9b1ee48241be481529eb6d6c5bfbe89990be7f472f5e3e.1555592391.data' to 'localhost:41121': [err] Cannot connect to localhost on port 41121: Connection refused.

I have tried to run initially 
netstat -an | grep 41121  but nothing revealed. 

I have started it like :
/etc/init.d/tentacle_serverd start

Shouldn't it start automatically ? How I could I add it to startup ? 


And now on netstat I get :
Proto Recv-Q Send-Q Local Address               Foreign Address             State                                                      

tcp        0      0 0.0.0.0:41121               0.0.0.0:*                   LISTEN 

IT looks that it started listening on 41121 but it's not mapped outside of docker container .  At docker level says that container port 41121 it's mapped to local port 32768.

now on pandora_agent.log I have several lines with :
2019/04/20 04:54:49 - [Collection] - Could not open dir /etc/pandora/collections/.empty


Any guideline / documentation for running on Docker ?

Thank you,
Daniel

Greetings, dandumit

Please do try to follow the instructions given in the other thread you posted in. 

Here you will find the documentation related to the docker: https://wiki.pandorafms.com/index.php?title=Pandora:Documentation_en:Installing#Installation_under_Docker

Also, please do make sure that the IP you're pointing to is the one of the docker. 

Kind regards, 

Eduardo.


RE: Pandorafms7 on docker does not receives agent's - dandumit - 04-23-2019

Thank you Eduardo for consistent help ! and sorry for cross posting.

I have tried that but on Xpenology (Synology) docker gives me an error :

[[email protected] /]# curl -sSL http://pandorafms.org/getpandora | sh
sh: line 3: docker: command not found .

I have tried to upgrade from console but didn't managed to get latest version.

Could you please point me to a docker repository to contain latest stable ?
Would be more easier to redeploy.

Thank you,
Daniel


RE: Pandorafms7 on docker does not receives agent's - eduardo.corral - 04-24-2019

(04-23-2019, 08:38 AM)dandumit Wrote: Thank you Eduardo for consistent help ! and sorry for cross posting.

I have tried that but on Xpenology (Synology) docker gives me an error :

[[email protected] /]# curl -sSL http://pandorafms.org/getpandora | sh                                                    
sh: line 3: docker: command not found .

I have tried to upgrade from console but didn't managed to get latest version.

Could you please point me to a docker repository to contain latest stable ?
Would be more easier to redeploy.

Thank you,
Daniel

Good morning, dandumit

Can you please run "ifconfig" command in your system and check that the IP you're pointing to is the one under docker section?

About the update, our team is working to fix anything malfunctioning in: https://hub.docker.com/r/pandorafms/pandorafms-server

Please do check in the next couple of days to get the latest version available of Pandora FMS for your docker. 

Kind regards, 

Eduardo.


RE: Pandorafms7 on docker does not receives agent's - dandumit - 05-01-2019

I am using https://hub.docker.com/r/pandorafms/pandorafms/

it's far more simplier and faster to deploy .
IT says that has been updated 10 hours ago. However still an older version.

DAniel

Also you propose to deploy version 6 with 3 different repositories.
And in above ling it's version 7 already.

Thank you,
Daniel


RE: Pandorafms7 on docker does not receives agent's - eduardo.corral - 05-03-2019

(05-01-2019, 09:24 AM)dandumit Wrote: I am using https://hub.docker.com/r/pandorafms/pandorafms/

it's far more simplier and faster to deploy .
IT says that has been updated 10 hours ago. However still an older version.

DAniel

Also you propose to deploy version 6 with 3 different repositories.
And in above ling it's version 7 already.

Thank you,
Daniel

Good morning, dandumit

Can you send us please a screenshot of the console footer to see which exact version and MR of Pandora FMS do you have installed?

In the meantime we will work to see if there was any problem with the link update. 

Kind regards, 

Eduardo.


RE: Pandorafms7 on docker does not receives agent's - dandumit - 05-03-2019

Thank you Eduardo for fast answer.
in footer says :
Pandora FMS v7.0NG.720 - Build PC180322 - MR 13

Otherwise all install process on Synology (xpenology) was a child play. those two small snags : tentacle server does not start at boot time and some php parameters not set correctly and from here a lot of exclamation marks in console

Print screen below : and a part of warnings from pandora console

How should I proceed to get latest version of Pandora 7 from Docker ?