Welcome to Pandora FMS Community › Forums › Community support › Advanced troubleshooting › Problem Starting FMS Server
-
Problem Starting FMS Server
Posted by hannylicious on April 7, 2009 at 10:04Hello,
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:
root@ubuntu2:/var/log/pandora# /etc/init.d/pandora_server startPandora FMS Data Server 3.0-dev Build PS090305 Copyright (c) 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 DownI 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!
manu replied 15 years, 7 months ago 2 Members · 38 Replies -
38 Replies
-
-
::
Sorry, the output looks like this:
Pandora FMS Data Server 3.0-dev Build PS090305 Copyright (c) 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.orgreadline() 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 (c) 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. -
-
::
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 🙂
-
::
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 10Run it in the daemon mode:
/etc/init.d/pandora_server startNow 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?title=Tentacle:UserGuideAgents 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?title=Pandora_2.0:Documentation_en:Install_Server#Setting_up_SSH_configuration_to_receive_data_packets
http://openideas.info/wiki/index.php?title=Pandora_2.0:Documentation_en:Install_Agent#SSH_Key_generation_for_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 DownAlso, 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…
-
-
-
-
::
As Root:
pandora_server /etc/pandora/pandora_server.confResults:
- 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
(being so new to a lot of this, there’s probably something totally obvious I’m missing… I’m not sure but it appears to be 90% working…)
-
-
::
You are correct.
if I do sudo /etc/init.d/pandora_server start -it does NOT go up.And…
when I do the way you described before (pandora_server /etc/pandora/pandora_server.conf) it only stays up for a matter of minutes before going down.
These are the logs from approximately the past hour (you can see where I’ve tried restarting)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
2009/04/07 14:59:24 ubuntu2_Data Launching 3.0-dev PS090305
2009/04/07 14:59:24 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:59:24 ubuntu2_Data [V1] Server ubuntu2_Data going UP
2009/04/07 15:00:55 ubuntu2_WMI [V1] Server ubuntu2_Data going Down
2009/04/07 15:43:34 ubuntu2_Data Launching 3.0-dev PS090305
2009/04/07 15:43:34 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 15:43:34 ubuntu2_Data [V1] Server ubuntu2_Data going UP
2009/04/07 15:45:05 ubuntu2_Net [V1] Server ubuntu2_Data going Down -
-
-
::
There is no pandora_server.err file (or at least it’s empty) in /var/log/pandora/
also when I go to /var/spool/pandora/data_in and run ‘ls’ there is nothing listed as being there.
Would it be something I messed up during install possibly that would be causing all this do you think?
-
-
-
-