Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

Welcome to Pandora FMS Community Forums Community support Auto starting pandora_network etc, doesnt seem to work

  • Auto starting pandora_network etc, doesnt seem to work

    Posted by pandarawr on September 27, 2007 at 02:25

    Hey I am on ubuntu LTS and the pandora install works great! only problem is that the services pandora_network pandora_server etc… all dont run on startup. I have tried re adding them to /etc/rc2.d with update-rc.d only to be told that they already exsist.

    They seem to be running at startup, but for some reason they terminate as the server comes up with none of those processes running. When I manually run them then they show up in a ps -ef |grep pandora but they dont, if the server just restarts. I have to manually run the init scripts every time. Any idea why?

    also everytime i have to make the directory /var/run/pandora, otherwise i get messages similar to this : Pandora FMS cannot write it’s PID file in /var/run/pandora. Please create that directory

    Sancho replied 17 years, 4 months ago 4 Members · 5 Replies
  • 5 Replies
  • manu

    Member
    September 27, 2007 at 13:46
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Well, first off, do you boot up in runlevel 2? Make sure of it with a cat /etc/inittab | grep id

    Secondly, is the mysql booting when the system does?

    Finally, you have to create the /var/run/pandora manually, but only once.

  • pandarawr

    Member
    September 27, 2007 at 21:10
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Well, first off, do you boot up in runlevel 2? Make sure of it with a cat /etc/inittab | grep id

    Secondly, is the mysql booting when the system does?

    Finally, you have to create the /var/run/pandora manually, but only once.

    Yes confirmed runlevel 2. I have created the directory manually but it seems to disapear every reboot. I tried chowning it root permissions as well as pandora permissions but it disapears every time. I think thats the critical part thats going to fix this. If I could only figure out how /var/run worked exactly, but thats a really hard string to type into google.

    How do i keep the directory from being deleted? alternatively, it seems as though everything in /var/run is created on the fly when you reboot the machine (i know this because the timestamp changes everytime, even on directories). So maybe pandora is missing the part where it creates that directory?

    mysql is fine because once the system boots and i manually create the /var/run/pandora dir and then run the scripts as root, the machine has no problem talking to the database.

  • raul

    Member
    September 28, 2007 at 13:41
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    You can change the directory in the .conf file of the server if you have problems with the default one.

    Well, first off, do you boot up in runlevel 2? Make sure of it with a cat /etc/inittab | grep id

    Secondly, is the mysql booting when the system does?

    Finally, you have to create the /var/run/pandora manually, but only once.

    Yes confirmed runlevel 2. I have created the directory manually but it seems to disapear every reboot. I tried chowning it root permissions as well as pandora permissions but it disapears every time. I think thats the critical part thats going to fix this. If I could only figure out how /var/run worked exactly, but thats a really hard string to type into google.

    How do i keep the directory from being deleted? alternatively, it seems as though everything in /var/run is created on the fly when you reboot the machine (i know this because the timestamp changes everytime, even on directories). So maybe pandora is missing the part where it creates that directory?

    mysql is fine because once the system boots and i manually create the /var/run/pandora dir and then run the scripts as root, the machine has no problem talking to the database.

  • pandarawr

    Member
    October 1, 2007 at 22:50
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    You can change the directory in the .conf file of the server if you have problems with the default one.

    I guess I could drop it in /var/run (no pandora directory) and see if that works. What do you add to the conf file to change the pidfile location? There seems to be no documentation on that file.

  • Sancho

    Administrator
    October 2, 2007 at 14:24
    2321 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    You can change the directory in the .conf file of the server if you have problems with the default one.

    I guess I could drop it in /var/run (no pandora directory) and see if that works. What do you add to the conf file to change the pidfile location? There seems to be no documentation on that file.

    You need to modify the script variables in launcher script, they are located on the first lines of file.