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 Pandora Server Installation

  • Pandora Server Installation

    Posted by kram on October 28, 2008 at 14:37

    Hi,
    Im trying to install the latest pandora FMS server by following the instructions in:
    http://openideas.info/wiki/index.php?title=Pandora_1.3:Server:QIG

    Since I wont be using SNMP, all the dependencies except SNMP were resolved before I started the Pandora Server installation. But, when I try the command:
    Pandora_server start

    I get the output:

    /etc/init.d/pandora_server: line 32: pidof: command not found
    
    Pandora FMS Data Server 2.0 Build PS081014 Copyright (c) 2004-2008 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 [penguin_Data] is running and operative
  • DBD::mysql::db do failed: Unknown column 'utimestamp' in 'field list' at /usr/lib/perl5/site_perl/5.8.5/PandoraFMS/DB.pm line 2235. DBD::mysql::db do failed: Unknown column 'utimestamp' in 'field list' at /usr/lib/perl5/site_perl/5.8.5/PandoraFMS/DB.pm line 2235. /etc/init.d/pandora_server: line 44: pidof: command not found Cannot start Pandora FMS Data Server. Aborted. bash-3.00# pidof bash: pidof: command not found

    Can somebody help me with this?

    Thanks in advance!

    raul replied 16 years, 4 months ago 3 Members · 7 Replies
  • 7 Replies
  • manu

    Member
    October 28, 2008 at 15:46
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    You need to install pidof. In debian distros it’s in the
    sysvutils package

    Besides, which pandora are you using? Where did you get it from?

  • kram

    Member
    October 28, 2008 at 16:04
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Thanks Manu,
    I tried searching for ‘pidof’. I finally found a link and got the pidof source code:

    [#!/bin/sh
    ps axc|awk "{if ($5=="$1") print $1}"|tr 'n' ' ' 
    echo
    /code]
    
    But I still find that the pandora_server start command is not working. I get this output now:
    
    [/bash-3.00# /etc/init.d/pandora_server start
    
    Pandora FMS Data Server 2.0 Build PS081014 Copyright (c) 2004-2008 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 [penguin_Data] is running and operative
  • DBD::mysql::db do failed: Unknown column 'utimestamp' in 'field list' at /usr/lib/perl5/site_p erl/5.8.5/PandoraFMS/DB.pm line 2235. DBD::mysql::db do failed: Unknown column 'utimestamp' in 'field list' at /usr/lib/perl5/site_p erl/5.8.5/PandoraFMS/DB.pm line 2235. Cannot start Pandora FMS Data Server. Aborted. code] I downloaded the Pandora from: https://pandora.svn.sourceforge.net/svnroot/pandora/trunk. I assume it is the 2.0 beta version. I am following the instructions for installing the 1.3 server as written in: http://openideas.info/wiki/index.php?title=Pandora_1.3:Server:QIG Please help.
  • manu

    Member
    October 28, 2008 at 16:10
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Did you install the console from the trunk as well?

  • kram

    Member
    October 28, 2008 at 17:00
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I have not installed the console yet. Is that part of the problem?

  • manu

    Member
    October 28, 2008 at 17:26
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Yes, you should install it first cause you’ll get the database installed along.

    If you don’t want to install the console but the database only

    You might want to do:

    mysql -u root -p (if you have a password)

    mysql> create database pandora;
    mysql> create user pandora;
    mysql> grant all on pandora.* to ‘pandora’@’localhost’ identified by ‘pandora’;
    mysql> exit

    cat pandoradb.sql | mysql -u pandora -ppandora -D pandora
    cat pandoradb_data.sql | mysql -u pandora -ppandora -D pandora

    (The pandoradb.sql can be found in the trunk/pandora_console)

    Now, make sure your dbuser is pandora and dbpass is pandora (you can change this in the future) in the pandora_server.conf

    Now, start your pandora_server again

  • raul

    Member
    October 29, 2008 at 04:25
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    From: http://openideas.info/wiki/index.php?title=Pandora_2.0:Documentation_en:Install_Server

    “Pandora FMS database is created and populated when installing the Pandora FMS Web Console, follow the steps in Install Pandora FMS Web Console.”

    The link goes to the page where you can find the steps given by Manu: http://openideas.info/wiki/index.php?title=Pandora_2.0:Documentation_en:Install_Console

  • raul

    Member
    October 29, 2008 at 04:51
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I have updated both pages, to make the process clearer, I think.

    If any one have ideas to improve it, please contribute 😀

    Raúl