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 a bug in distribution detection…

  • a bug in distribution detection…

    Posted by daggett on January 11, 2007 at 19:18

    Hi,
    I have a Mandriva 2006 installed on one of my servers which has a /etc/lsb-release file…
    here is the Pandora Agent detection code:
    [code:1]
    if [ -f “/etc/lsb-release” ]
    then
    OS_VERSION=`cat /etc/lsb-release | grep DISTRIB_RELEASE | cut -f 2 -d “=”`
    LINUX_DISTRO=UBUNTU
    echo “Detected distribution: $LINUX_DISTRO”
    echo “Version: $OS_VERSION”
    # *** put your code and vars for UBUNTU here
    # CONSOLE_PATH=”/var/www/html”
    # *** between those comments
    else

    So when executing this, the Mandriva is not anymore a Mandriva but a Ubuntu…
    here is the content of my lsb-release:
    [code:1]# cat /etc/lsb-release
    LSB_VERSION=core-3.0-ia32:core-3.0-noarch
    DISTRIB_ID=MandrivaLinux
    DISTRIB_RELEASE=
    DISTRIB_CODENAME=Cooker
    DISTRIB_DESCRIPTION=”Mandriva Linux”

    So I removed the UBUNTU support in my agents for now.
    bye for now.

    daggett replied 18 years, 1 month ago 2 Members · 2 Replies
  • 2 Replies
  • Sancho

    Administrator
    January 12, 2007 at 04:08
    2309 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    After this we will add support for mandriva detection. What directory by default uses Mandriva por HTTP/APache daemon ?

  • daggett

    Member
    January 12, 2007 at 14:04
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi Nil,
    For Mandriva, I gave my files to Manu who said he had added them in the SVN, and I included the Mandriva support in it, but those files have changed because of some improvemens: I don’t get _any_ BADXML anymore since 2 days, so the charset issue is fixed for me (added a trick to make the Pandora Agent v1.2 work in any situations I can encounter).

    To answer directly to your question, the Mandriva HTTP default directory is /var/www/html

    I also added some verification script that checks if Pandora is still running and restarts it if not every hour (cron.hourly).

    bye for now