Pages: [1]   Go Down
Author Topic: a bug in distribution detection...  (Read 281 times)
0 Members and 2 Guests are viewing this topic.
daggett
Sr. Member
****

Karma: 0
Offline Offline

Posts: 109


View Profile
« on: January 11, 2007, 04:18:31 PM »

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[/code]

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"[/code]

So I removed the UBUNTU support in my agents for now.
bye for now.
« Last Edit: January 01, 1970, 01:00:00 AM by daggett » Logged

Sancho Lerena
Administrator
Expert member
*****

Karma: 24
Offline Offline

Posts: 1151


I can see everything... with my glasses :-)


View Profile WWW
« Reply #1 on: January 12, 2007, 01:08:06 AM »

After this we will add support for mandriva detection. What directory by default uses Mandriva por HTTP/APache daemon ?
« Last Edit: January 01, 1970, 01:00:00 AM by nil » Logged

-- See you in the other screen.

daggett
Sr. Member
****

Karma: 0
Offline Offline

Posts: 109


View Profile
« Reply #2 on: January 12, 2007, 11:04:36 AM »

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
« Last Edit: January 01, 1970, 01:00:00 AM by daggett » Logged

Pages: [1]   Go Up
Print
 
Jump to:  


SourceForge.net Logo  This site is monitored by Pandora FMS   ArticaST