Welcome to Pandora FMS Community › Forums › Community support › Can not start agent on server machine.
-
Can not start agent on server machine.
Posted by x_vag on January 23, 2007 at 16:00Hi all,
I’m trying to start pandora agent (with user pandora) on the same machine where pandora server exists and I’m getting this…
“[pandora@TKEY-2976 pandora_agent]$ ./pandora_agent_daemon start
./pandora_agent_daemon: line 27: /var/run/pandora_agent.pid: No such file or directory
Pandora Agent is now running with PID 8194
[pandora@TKEY-2976 pandora_agent]$ /opt/pandora_agent/pandora_agent.sh: eval: line 152: unexpected EOF while looking for matching `”‘
/opt/pandora_agent/pandora_agent.sh: eval: line 153: syntax error: unexpected end of file
The authenticity of host ‘74.52.xxx.xxx (74.52.xxx.xxx)’ can’t be established.
RSA key fingerprint is a2:96:f5:4d:4f:f7:3a:34:4c:97:84:d4:14:c2:5e:33.
Are you sure you want to continue connecting (yes/no)? ”I’ve generate a ssh key with “ssh-keygen – t dsa” command and I’ve save the keys (id_dsa, id_dsa.pub) in /home/pandora/.ssh dir. Also I’ve copy id_dsa.pub in authorized_keys file…
I supose that I need that keys…don’t I?
Is there anything else I sould do?
-Pandora version is 1.2 b3(server-agent) on centos4Thanks in advance,
Vagelis.x_vag replied 18 years ago 2 Members · 7 Replies -
7 Replies
-
::
Hi all,
I’m trying to start pandora agent (with user pandora) on the same machine where pandora server exists and I’m getting this…
“[pandora@TKEY-2976 pandora_agent]$ ./pandora_agent_daemon start
./pandora_agent_daemon: line 27: /var/run/pandora_agent.pid: No such file or directoryCheck that Pandora user could write on /var/run/pandora_agent.pid file
Pandora Agent is now running with PID 8194
[pandora@TKEY-2976 pandora_agent]$ /opt/pandora_agent/pandora_agent.sh: eval: line 152: unexpected EOF while looking for matching `”‘
/opt/pandora_agent/pandora_agent.sh: eval: line 153: syntax error: unexpected end of file
The authenticity of host ‘74.52.xxx.xxx (74.52.xxx.xxx)’ can’t be established.
RSA key fingerprint is a2:96:f5:4d:4f:f7:3a:34:4c:97:84:d4:14:c2:5e:33.
Are you sure you want to continue connecting (yes/no)? ”I’ve generate a ssh key with “ssh-keygen – t dsa” command and I’ve save the keys (id_dsa, id_dsa.pub) in /home/pandora/.ssh dir. Also I’ve copy id_dsa.pub in authorized_keys file…
I supose that I need that keys…don’t I?
Is there anything else I sould do?
-Pandora version is 1.2 b3(server-agent) on centos4Thanks in advance,
Vagelis.After create key, make the first connection manually using the user you want to use with pandora agent, like
pandora@myhost$ ssh pandora@ip_pandora_server
and say “yes”
I hope this helps
-
::
Thanks nil,
The problem is solved in a part…
I changed the user to “root” so it is possible now to write in /var/run dir the pandora_agent.pid.
Also i changed the key and now I’ve no problem with ssh (I tested the root by using “ssh pandora@localhost” and I can logon without password).
The only thing that still exists is the following when trying to start panora_agent_deamon….“[root@TKEY-2976 pandora_agent]# ./pandora_agent_daemon start
Pandora Agent is now running with PID 1544
[root@TKEY-2976 pandora_agent]#
[root@TKEY-2976 pandora_agent]# /opt/pandora_agent/pandora_agent.sh: eval: line 152: unexpected EOF while looking for matching `”‘
/opt/pandora_agent/pandora_agent.sh: eval: line 153: syntax error: unexpected end of file ”Any ideas…?
Thanks again!!!
Vagelis. -
::
Thanks nil,
/opt/pandora_agent/pandora_agent.sh: eval: line 152: unexpected EOF while looking for matching `”‘
/opt/pandora_agent/pandora_agent.sh: eval: line 153: syntax error: unexpected end of file ”Any ideas…?
Thanks again!!!
Vagelis.Exactly what version of Pandora Agent what are you running ?
-
-
::
Nil…sorry again…
I’ve just noticed that my agent version is 1.2 beta 2.
I’ve extract this agent from beta 3 release. Also my console is version beta3 which it was downloaded the same time with the agent package.
Do you think that this may be the reason that my agent can not “cooperate” with other versions? -
::
Hi all,
I think I solved the problem…
I had in pandora_agent.conf a module that was runing well in agent version 1.1. This module was the following one:#module_begin
#module_name ping veniz
#module_type generic_data
#module_exec ping 84.254.xxx.xxx -c 2 -U | head -3 | tail -1 | grep -o -e “time=
#module_max 3000
#module_min 0
#module_description pinging 84.254.xxx.xxx
#module_endwhen I disabled this module I stoped to getting this lines…
/opt/pandora_agent/pandora_agent.sh: eval: line 152: unexpected EOF while looking for matching `”‘
/opt/pandora_agent/pandora_agent.sh: eval: line 153: syntax error: unexpected end of file ”I’ll try to find out whats going on and (if interesting) I’ll post it.
Thanks,
Vagelis. -
::
Hi all,
Just to inform, I found this module somewhere in pandora’s documentation….
module_begin
module_name ping
module_type generic_data
module_exec ping xxx.xxx.xxx.xxx -c 2 -U | head -3 | tail -1 | grep -o -e “time=[0-9]*.[0-9]” | cut -d “=” -f 2
module_max 3000
module_min 0
module_description pinging xxx.xxx.xxx.xxx
module_endThanks pandora guys!
Vagelis.