Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
Home
Help
Search
Calendar
Login
Register
Openideas.info
|
Pandora FMS
|
Community general support
|
a bug in distribution detection...
Pages: [
1
]
Go Down
« previous
next »
Print
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
Posts: 109
a bug in distribution detection...
«
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
Posts: 1151
I can see everything... with my glasses :-)
a bug in distribution detection...
«
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
Posts: 109
a bug in distribution detection...
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Pandora FMS
-----------------------------
=> Announcements and news
=> Suggestions and new feature request
=> F for Flexible... or awesome ideas using Pandora FMS
=> Community general support
===> Español / Spanish forum
===> Help for new users in Pandora FMS
===> Advanced troubleshooting and problems
===> 日本語フォーラム / Japanese forum
===> Development lists (Read only)
-----------------------------
General Category
-----------------------------
=> Epic Tunnelizer
=> Lechuga CMS
=> Sysadmin tools
=> General monitoring discussion
=> Openideas General Forums
===> Linux systems
===> Unix systems
=> Babel Enterprise
=> Integria IMS
=> phpRADmin
Loading...