Pandora FMS Community

Pandora 5 problem with agent

ppereira · 27 ene 2014, 23:46 · 17 mensajes · 65 visitas

  1. Inicio del debate

    Hi everyone, I use Pandora FMS since 3.X and i love it! But now, when i´m testing the new version i got a big problem. The biggest monitor feature i use is by agent, my equipment build a XML and send it to my server,,, the server get that .data to the /var/spool/pandora/data_in and its all right ... at v3.x and v4.x it works like a charm but now i´m getting some problem ... My equipment send the file ===>> The server receive the file ... the FTP logs are ok ...  i check the file and its all right .... but when the must send it to data_in i realise that its not going to the expected folder ( /var/spool/pandora/data_in )  So i change the mode from FTP to TENTACLE ... and its keep wrong ... I try from Windows Machines and its going all right .... i really don´t understand why i get this trouble ... Briefly, the agent collect from my equipments using pandora v3.x or4.x are all right, but now in pandora 5 its sent to the server but the server does not process to the data_in folder. I create a user at my server called blackbird and i use this user at FTP connection. My XML file are like this:   vpn_latency generic_data 56 VPN Latency mac_ebt generic_data_string XX:XX:XX:XX:XX:18 VPN Mac-Address gprs_tx generic_data 1018364 3G/4G transmited gprs_rx generic_data 1160603 3G/4G received bb_uptime generic_data_string 1w4d18:35:13 Uptime bb_cpuload generic_data 8 CPU use mk_memfree generic_data 10164 Free Memory mobile_ip generic_data_string XX.XX.187.55/32 3G/4G Ip Address mobile_id generic_data_string vivo 3G/4G Telc vpn_up generic_proc 1 VPN Up mobile_up generic_proc 1 3G/4G Up wan1_up generic_proc 1 Using primmary wan2_up generic_proc 0 Using Backup entrance_link generic_data_string Embratel VPN Link vpn_ip generic_data_string 10.15.6.134/32 VPN Ip Address wan1_ip generic_data_string XX.XX.139.156/32 WAN2 IP Address wan2_ip generic_data_string 0.0.0.0 WAN2 IP Address lan_ip generic_data_string 10.64.57.17/24 LAN Ip Address serial generic_data_string 412E021D1F45 Serial Number of BB date generic_data_string jan/27/2014 BB Date Thanks you for your help. []´s

  2. Hi There is a tool called xmllint, which checks the  XML, if well made​​, returns the contents of Data file. Execution: xmllint agent.XXXX.data If the execution is correct, say me what is the name of the .data The correct name has to be formed " agentname.numbers.data" Is it so? Regards

  3. Hi Mario, This command give exactly what i have posted. (xml ) The name of agente.data is 412E021D1F45.data wich is the serial number of the equipment. To install the xmllint i have installed the libxml2-utils. Now at Pandora 5 we need nameOfAgent.numbers.data ? Thanks you

  4. Yes In Pandora 5, the name must be. "Agentname.numbers.data" Try changing the name of the data file for this: 412E021D1F45.1232312.data

  5. Hi Mario, I change it to 412E021D1F45.123123.data at the source ( equipment OS ) and it was sent "correctly" but it keep the home folder of the equipment user. I check whe file with xmllint and its ok. The /var/spool/pandora/data_in/ does not collect it .. I try using ftp and tentacle.. When was using ftp i know that i can check first if the /home/user is receiving the file... When i use tentacle, thats is some folder to check ?  Thanks your very much for your help.

  6. Mario, The name of the agent displayed at pandora is not 412E021D1F45 ... it´s BB-1051U-CLIENT1009-FW. I use the serial number only to create the .data Do you believe that i must create the name of the .data like :  BB-1051U-CLIENT1009-FW.412E021D1F45.data  ? Thx

  7. Well i make that change .. and it does not work too .. BB-1051U-CLIENT1009-FW.412E021D1F45.data xmllint works ...  but the agent in pandora still does not working..

  8. The second part only must be numbers. BB-1051U-CLIENT1009-FW.454545454.data

  9. Done but do not work .. BB-1051U-CLIENT1009-FW.1453623.data Any tips? []´s

  10. Do you have data server up? What is the incomingdir configuration in pandora_server.conf? What are the permissions of these files in /var/spool/pandora/data_in folder?

  11. Look, agents from windows machine using tentacle are ok. I´m just having problem sending it from my appliance; Do you have data server up? But how can i check if my data server is up ?  i have a ftp server running ... receiving all this .data What is the incomingdir configuration in pandora_server.conf? # 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 What are the permissions of these files in /var/spool/pandora/data_in folder? Wich Files ? All the .data stored at my equipment user /home are just there ... it don´t move to /data/spool/pandora/data_in/ folder ... At data_in/ all the files come and go ... there will be stored only BADXML.data. Mario, I am validating the pandora 5, so i have 3 agents: 1-Self agent from the server - woking ok 2- Agent from a windows server - working ok 3- My appliance agent - not working I tried to send it using ftp and tentacle protocol...  The ftp i know it come first to the home/user/ folder ... its ok .. but its not going to /var/spool/pandora/data_in/ I really think that it´s the problem ... so i manually put the files i received at /home/user folder =>>> /var/spool/pandora/data_in folder ... But it does not work too ... Any more tips ?  Anyway , thanks for your help =)

  12. Ok, The problem then is, in the directory you are saving the. Data files. All .data files must be sent to the incomingdir (/var/spool/pandora/data_in) In the agent must be configured. server_path / var / spool / pandora / data_in trasnfer_mode tentacle server_port 41121 If these data files, they become BADXML files, when you execute it with xmllint command, an error should appear.

  13. Hi Mario, It works! But only in FTP mode ... Tentacle does not works =/ So briefly for the future, if your agent´s use FTP, you must add a number sequence like NAME.NUMBER.data. And you must setup the full path .. i really don´t understand why the feature of collect from /home/user does not work at this update. Maybe it could be added to F.A.Q. ? I would like to thank you mr. Mario!

  14. Thanks , You're right it will add to the FAQ.

  15. One more detail, I can´t collect using vsftpd, i must install proftpd-basic to make it possible. []´s

  16. Mario, One more information: My structure was: AS Firewall Nat Server (pandora) So to reach the server you need to connect to my_as_ip:2323 The port 2323 at my public ip is a nat to port 21 of pandora_Server. It works fine for 20 agents. When we start to grow this number.. we got a lot of agents problem .. like not send ... FTP errors ... We fix it building a VPN server at our Datacenter at the same network of pandora_server. Now our agent send the .data to pandora_server_invalid_ip:21 using the vpn. The time to send the agent was 8s to 14s using NAT..  Now using the VPN its <2s!! So i still have a Pandora 4 at the same Datacenter ... and its works using NAT...  Pandora5 have a lot of changes underhoof.... So its ok for me ... its not a problem ... I´m just sharing our experience! Thx

  17. Thank you for all these contributions to the forum. It is a very useful information to other users and even for us.

Entra en tu cuenta para publicar.