Pandora FMS community forums

Full Version: Problem Starting FMS Server
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
Hello,
I have done some searching of the forums but wasn't able to find exactly the help I was looking for, and I am at my wits end so I figure I will see if you guys might have some ideas.
I've recently installed Pandora FMS (obviously), but am having issues getting it all to work appropriately.

I was able to use the web installer and things worked fine.
I've setup my /etc/pandora/pandora_server.conf file to the appropriate dbname, dbuser, and dbpass...
and it was a 'default' install for the most part...

When I go to the web interface and login - under the 'tactical server information', the Data server appears to be Down. Because of that I figured I would try to 'stop' and 'start' the server (/etc/init.d/pandora_server stop & /etc/init.d/pandora_server start).

It tells me it can't stop the service because it isn't running. When I attempt to start it - I get the following:
[email protected]:/var/log/pandora# /etc/init.d/pandora_server start

Pandora FMS Data Server 3.0-dev Build PS090305 Copyright © 2004-2009 ArticaST
This program is OpenSource, licensed under the terms of GPL License version 2.
You can download latest versions and documentation at http://www.pandorafms.org

[*] Server basepath is /etc/pandora/pandora_server.conf
[*] Server logfile at /var/log/pandora/pandora_server.log
[*] Server errorlogfile at /var/log/pandora/pandora_server.error
[*] Server incoming directory at /var/spool/pandora/data_in
[*] Server keepalive 45
[*] Server threshold 5
[*] You are running Pandora FMS Data Server.
[*] This server is running in MASTER mode.
[*] Pandora FMS Server [ubuntu2_Data] is running and operative
[*] Backgrounding Pandora FMS Data Server process.

Cannot start Pandora FMS Data Server. Aborted.



Now - I have been to the /var/spool/pandora/data_in and do not see any .data files (but have configured an agent on my windows machine sitting next to my server (Ubuntu Server 8.10))

I guess I'm kind of clueless at this point where to begin looking...

the log file (/var/log/pandora/pandora_server.log) looks like this:
2009/04/07 09:32:56 ubuntu2_Data Launching 3.0-dev PS090305
2009/04/07 09:32:56 ubuntu2_Data [V1] Config options: Logfile at /var/log/pandora/pandora_server.log, Basepath is /etc/pandora/pandora_server.conf, Checksum is 0, Master is 1, SNMP Console is 1, Server Threshold at 5 sec, verbosity at 1, Alert Threshold at 45, ServerName is 'ubuntu2_Data'
2009/04/07 09:32:56 ubuntu2_Data [V1] Server ubuntu2_Data going UP
2009/04/07 09:33:20 ubuntu2_Data Launching 3.0-dev PS090305
2009/04/07 09:33:20 ubuntu2_Data [V1] Config options: Logfile at /var/log/pandora/pandora_server.log, Basepath is /etc/pandora/pandora_server.conf, Checksum is 0, Master is 1, SNMP Console is 1, Server Threshold at 5 sec, verbosity at 10, Alert Threshold at 45, ServerName is 'ubuntu2_Data'
2009/04/07 09:34:50 ubuntu2_Data Launching 3.0-dev PS090305
2009/04/07 09:34:50 ubuntu2_Data [V1] Config options: Logfile at /var/log/pandora/pandora_server.log, Basepath is /etc/pandora/pandora_server.conf, Checksum is 0, Master is 1, SNMP Console is 1, Server Threshold at 5 sec, verbosity at 10, Alert Threshold at 45, ServerName is 'ubuntu2_Data'
2009/04/07 09:36:23 ubuntu2_SNMP [V1] Server ubuntu2_Data going Down
2009/04/07 09:40:33 ubuntu2_Data Launching 3.0-dev PS090305
2009/04/07 09:40:33 ubuntu2_Data [V1] Config options: Logfile at /var/log/pandora/pandora_server.log, Basepath is /etc/pandora/pandora_server.conf, Checksum is 0, Master is 1, SNMP Console is 1, Server Threshold at 5 sec, verbosity at 10, Alert Threshold at 45, ServerName is 'ubuntu2_Data'
2009/04/07 09:40:33 ubuntu2_Data [V1] Server ubuntu2_Data going UP
2009/04/07 09:42:09 ubuntu2_Net [V1] Server ubuntu2_Data going Down


I am by no means a real 'linux user', but am partially familiar with aspects of linux and have the ability to google up what I don't know how to do.

ANY help you guys might be able to provide or insight into my problems would be readily welcomed... I'll be checking back often so if you have any comments/questions for me that I can check - please let me know!
try:
pandora_server /etc/pandora/pandora_server.conf

what do you see?
Sorry, the output looks like this:

Pandora FMS Data Server 3.0-dev Build PS090305 Copyright © 2004-2009 ArticaST
This program is OpenSource, licensed under the terms of GPL License version 2.
You can download latest versions and documentation at http://www.pandorafms.org

readline() on closed filehandle CFG at /usr/local/share/perl/5.10.0/PandoraFMS/Config.pm line 233.
[FATAL] Cannot open logfile at /var/log/pandora_server.log at /usr/local/share/perl/5.10.0/PandoraFMS/Tools.pm line 267.
Eesh - I realized I was running it as my local user, when ran as root the output looks like this:

Pandora FMS Data Server 3.0-dev Build PS090305 Copyright © 2004-2009 ArticaST
This program is OpenSource, licensed under the terms of GPL License version 2.
You can download latest versions and documentation at http://www.pandorafms.org

[*] Server basepath is /etc/pandora/pandora_server.conf
[*] Server logfile at /var/log/pandora/pandora_server.log
[*] Server errorlogfile at /var/log/pandora/pandora_server.error
[*] Server incoming directory at /var/spool/pandora/data_in
[*] Server keepalive 45
[*] Server threshold 5
[*] You are running Pandora FMS Data Server.
[*] This server is running in MASTER mode.
[*] Pandora FMS Server [ubuntu2_Data] is running and operative
[*] Starting up Data Consumer Thread # 0
[*] Starting up Data Consumer Thread # 1
[*] All threads loaded and running


It remains 'up' for a while, but after about 4-5 minutes it goes Down again. I'm not sure as to why... also it will apparently (it seems random) go up and down over time...
I'm not sure exactly why or how this is happening.
Is this installation from the SVN?
Is pandora_server the only one failing? I mean, can you see pandora_network and stuff in the webconsole?
Did you change the logfile directive at /etc/pandora/pandora_server.conf ?
I downloaded & installed from the web following the install guide...
and yes, pandora_server is only one failing. I can see pandora_network & prediction & recon & SNMP & WMI in web console and all up and apparently running fine it seems (they're green, and don't ever go down)

The only thing I changed in the pandora_server.conf file was the servername & dbpass... other than that it's a default install...
anything I might be able to post to assist you with this further?

As I said before - I'm pretty new to a lot of this, but will do anything I can to help out with diagnosing this stuff Smile
Sorry, I didn't read your last post.
Alright, so now it goes up and then fail.
Cool, edit your /etc/pandora/pandora_server.conf
verbosity 10

Run it in the daemon mode:
/etc/init.d/pandora_server start

Now if it goes down the log will be more detailed.

Regarding your .data missing files...did you install tentacle server?
http://openideas.info/wiki/index.php?tit...:UserGuide

Agents are configured to send data, by default, using tentacle.
If you want them to use SSH, just generate the keys and copy them to the pandora_server, (I do not recommend this method, it is a pain).
Anyways, this is the documentation for that transfer mode:
http://openideas.info/wiki/index.php?tit...ta_packets
http://openideas.info/wiki/index.php?tit...or_Windows
I set verbosity to 10.

Attempted to run in daemon mode and recieved this:
[*] Server basepath is /etc/pandora/pandora_server.conf
[*] Server logfile at /var/log/pandora/pandora_server.log
[*] Server errorlogfile at /var/log/pandora/pandora_server.error
[*] Server incoming directory at /var/spool/pandora/data_in
[*] Server keepalive 45
[*] Server threshold 5
[*] You are running Pandora FMS Data Server.
[*] This server is running in MASTER mode.
[*] Pandora FMS Server [ubuntu2_Data] is running and operative
[*] Backgrounding Pandora FMS Data Server process.

Cannot start Pandora FMS Data Server. Aborted.

Went to the log file (/var/log/pandora/pandora_server.log ) and found this:

2009/04/07 14:33:06 ubuntu2_Data Launching 3.0-dev PS090305
2009/04/07 14:33:06 ubuntu2_Data [V1] Config options: Logfile at /var/log/pandora/pandora_server.log, Basepath is /etc/pandora/pandora_server.conf, Checksum is 0, Master is 1, SNMP Console is 1, Server Threshold at 5 sec, verbosity at 10, Alert Threshold at 45, ServerName is 'ubuntu2_Data'
2009/04/07 14:33:06 ubuntu2_Data [V1] Server ubuntu2_Data going UP
2009/04/07 14:34:37 ubuntu2_WMI [V1] Server ubuntu2_Data going Down

Also, regarding tentacle, I did not install tentacle server to my knowledge (unless that was part of install which it doesn't look like it was, I will get to work on that next)

I appreciate all your help on this...
Did you do that using the root user or the normal user again?
I did that as root.
Pages: 1 2 3 4