Pandora FMS community forums
Pandora_server error - Printable Version

+- Pandora FMS community forums (https://pandorafms.com/community-forums)
+-- Forum: Pandora FMS (https://pandorafms.com/community-forums/forum-3.html)
+--- Forum: Community support (English) (https://pandorafms.com/community-forums/forum-7.html)
+--- Thread: Pandora_server error (/thread-295.html)

Pages: 1 2 3


Pandora_server error - Chris - 07-05-2007

Quote:Speaking about the console problem

You firstly created the database manually and then tried with the pandora_console?
Or you tried with the pandora_console, it failed and you did it manually?
What did the pandora_console say about the error? Your credentials were right?
Well I've followed the installation manual for 1.2 version and there it stated to create the db manually and import the 2 .sql files.
That was exactly what I did but at the first run of pandora console from web interface it tried to delete&create the database again...
I've accepted and it deleted succesfully the db but it failed to create it.
I'm not proud but I'm using the root account.. I know I know.. it's not good but I'm a Windows Sys Admin and I'm doing my best at linux. Big Grin
I hope you understand my explanation. Feel free to ask for more details if you want.
Regards,
Chris


Pandora_server error - Chris - 07-05-2007

Oh almost forgot - please help me to generate the public key required.
I've ran ssh-keygen -t dsa and copied the content of the id_dsa.pub to the authorization file + set permissions on it but it keeps saying that
Quote: The authenticity of host 'oneanonhost' can't be established.
RSA key fingerprint is 95:37:11:f2:29:4a:91:8d:16:c3:ce:03:74:4d:9f:6a.
Are you sure you want to continue connecting (yes/no)?



Pandora_server error - manu - 07-05-2007

Quote:
Quote:Try to run the server without the daemon option:

/usr/share/pandora_server/bin/pandora_server.pl /usr/share/pandora_server

And see what happen

Yep, it started without a problem.
Ouch, I looked into the error log after it started and it was saying that
[FATAL] Cannot open Incoming data directory at /opt/pandora_server/data_in: No such file or directory at /usr/share/pandora_server/bin/pandora_server.pl line 77.
I've created the folder and restarted everything related to pandora and it appears to be working now as a daemon. Big Grin
You are the best!

Brilliant!
In fact, it was our bad, cause /opt/pandora_server/data_in was the default dir for the 1.2 version and we forgot to change it by default in the pandora_server.conf file.
We already solved that "bug"
I advice you to create /var/spool/pandora/data_in in the server machine cause that's the default dir for 1.3 version. And obviusly, change that in the pandora_server.conf and agents...
Because if you're going to update to Beta2 and Final release you'll have to face that problem

Cheers


Pandora_server error - manu - 07-05-2007

Quote:
Quote:Speaking about the console problem

You firstly created the database manually and then tried with the pandora_console?
Or you tried with the pandora_console, it failed and you did it manually?
What did the pandora_console say about the error? Your credentials were right?
Well I've followed the installation manual for 1.2 version and there it stated to create the db manually and import the 2 .sql files.
That was exactly what I did but at the first run of pandora console from web interface it tried to delete&create the database again...
I've accepted and it deleted succesfully the db but it failed to create it.
I'm not proud but I'm using the root account.. I know I know.. it's not good but I'm a Windows Sys Admin and I'm doing my best at linux. Big Grin
I hope you understand my explanation. Feel free to ask for more details if you want.
Regards,
Chris

Since 1.3 Web Console beta version you won't have to create the database manually anymore, as you saw, there's a wizard to create the database in just a few clicks Smile


Pandora_server error - manu - 07-05-2007

Quote:Oh almost forgot - please help me to generate the public key required.
I've ran ssh-keygen -t dsa and copied the content of the id_dsa.pub to the authorization file + set permissions on it but it keeps saying that
Quote: The authenticity of host 'oneanonhost' can't be established.
RSA key fingerprint is 95:37:11:f2:29:4a:91:8d:16:c3:ce:03:74:4d:9f:6a.
Are you sure you want to continue connecting (yes/no)?

The ssh-keys are one of the biggest thing pandora users have to deal with, don't know why, actually :-)

Let's see, sure that your authorized_keys has 600 as perms? What about /home/user/.ssh/
That dir must have 644.

Remember that the user who's gonna connect to the remote server is pandora.

take a look here
http://www.openideas.info/wiki/index.php?title=Pandora:FAQ#My_Pandora_FMS_Agents_don.27t_connect_with_Pandora_FMS_server.2C_or_my_Pandora_FMS_Agents_ask_me_for_SSH_password_when_try_to_connect._Implementing_SSH_authentication


Pandora_server error - Chris - 07-05-2007

Quote:The ssh-keys are one of the biggest thing pandora users have to deal with, don't know why, actually :-)

Let's see, sure that your authorized_keys has 600 as perms? What about /home/user/.ssh/
That dir must have 644.

Remember that the user who's gonna connect to the remote server is pandora.

take a look here
Yes, I saw that many users were having problems with this when I was trying ver. 1.2. I guess I was to tired to do some work on how to solve this. Smile
I've followed the steps you said and follow the indications from that link and it appears to work now... somehow... the thing is that it's asking for the [email protected] password everytime it tries to connect to the server. The server and the agent are on the same server.
Can you please advise me with this thing too? Smile


Pandora_server error - Chris - 07-05-2007

Quote:Since 1.3 Web Console beta version you won't have to create the database manually anymore, as you saw, there's a wizard to create the database in just a few clicks Smile
Yeah, it's damn cool indeed. Big Grin
If you can make a visible link of how to generate and use the key it would be wonderful. :P Big Grin


Pandora_server error - manu - 07-05-2007

Which key?
Am I missing something?


Pandora_server error - Chris - 07-05-2007

Quote:Which key?
Am I missing something?
ssh-key. Big Grin
How to generate and use it. Big Grin
It was a note to the problem that me and lots of other people are having.


Pandora_server error - manu - 07-05-2007

You didn't see my previus post, did you? :-)
Anyways, here it is:
http://www.openideas.info/wiki/index.php?title=Pandora:FAQ#My_Pandora_FMS_Agents_don.27t_connect_with_Pandora_FMS_server.2C_or_my_Pandora_FMS_Agents_ask_me_for_SSH_password_when_try_to_connect._Implementing_SSH_authentication