LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-30-2013, 07:15 PM   #1
tissam89
Member
 
Registered: Mar 2013
Posts: 47

Rep: Reputation: Disabled
scriptlet failed, exit status 1


I try to Install FAN ( Fully automated Nagios ) on my RHEL from this link :
http://www.fullyautomatednagios.org/...-centosrhel-5/

i did all steps at first , and it worked good .but i didn't take attention that i had to install just one of those :

•Standalone : fan-standalone
•Distributed monitoring : fan-central, fan-poller, fan-database

But me i installed the twice . That's why i did a
Code:
yum remove Packagename
for all packages I installed .

But i didn't know how to remove the FAN . I explain , when I open http://Serveradresse/ i am directly on the
FAN: Fully Automated Nagios Page .

I tried to re install the packages again , but i have an error now :

Code:
...
error: %post(fan-poller-2.4-fan.1.noarch) scriptlet failed, exit status 1

Installed:
  fan-poller.noarch 0:2.4-fan.1

Complete!
Code:
# yum install fan-central  

...
ln: creating symbolic link `/usr/lib/nagios' to `/usr/lib64/nagios': File exists
sed: -e expression #1, char 8: unknown command: `F'
error: %post(fan-central-2.4-fan.1.noarch) scriptlet failed, exit status 1

Installed:
  fan-central.noarch 0:2.4-fan.1

Complete!
Help me to fix it please
 
Old 04-01-2013, 04:42 AM   #2
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora
Posts: 1,832

Rep: Reputation: 259Reputation: 259Reputation: 259
Do this:

for all the rpm files related to what you're doing with nagios-fan:

Code:
linux@linux # rpm -ivv --force package.rpm


Then, the same for all of them:

Code:
linux@linux # rpm -evv --nodeps --force package.rpm


Then, use yum:

Code:
linux@linux # yum makecache

Code:
linux@linux # yum localinstall package1 package2.rpm



That should straighten out the dependency and redundancy issues. It's a linux rule that if you can't install or remove, you force the install, so then you can remove the package. But don't tell anyone I said that. Kidding! But it's a great secret!
 
Old 04-01-2013, 05:48 AM   #3
tissam89
Member
 
Registered: Mar 2013
Posts: 47

Original Poster
Rep: Reputation: Disabled
Thank you so much for the secret ^^ .

I did
Code:
rpm -qa | grep fan
and then i removed all of packages found one by one using rpm -e .
Then i have try again, but the message
Code:
error: %post(fan-database-2.4-fan.1.noarch) scriptlet failed
, exit status 1
still here for all the three packages . But anyway, I can access to the nagios and centreon page now ( Hope the error is not a big issue).
Thank you again for your help and for your time to reply .

Quote:
Originally Posted by AwesomeMachine View Post
Do this:

for all the rpm files related to what you're doing with nagios-fan:

Code:
linux@linux # rpm -ivv --force package.rpm


Then, the same for all of them:

Code:
linux@linux # rpm -evv --nodeps --force package.rpm


Then, use yum:

Code:
linux@linux # yum makecache

Code:
linux@linux # yum localinstall package1 package2.rpm



That should straighten out the dependency and redundancy issues. It's a linux rule that if you can't install or remove, you force the install, so then you can remove the package. But don't tell anyone I said that. Kidding! But it's a great secret!
 
Old 04-01-2013, 09:15 AM   #4
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,166
Blog Entries: 10

Rep: Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979
from the link you provided:

Code:
FAN standalone

# yum install fan-standalone

FAN poller

yum install fan-poller

FAN central

yum install fan-central

FAN database

yum install fan-database
Please let us know...
 
Old 04-01-2013, 02:28 PM   #5
tissam89
Member
 
Registered: Mar 2013
Posts: 47

Original Poster
Rep: Reputation: Disabled
Excuse me , but i don't understand what you want to know ??

I installed those 3 packages :

FAN poller
Code:
yum install fan-poller
FAN central
Code:
yum install fan-central
FAN database
Code:
yum install fan-database
They install nagios and centreon and other plugins and packages .
Please let me know what you want to know exactly

Quote:
Originally Posted by Habitual View Post
from the link you provided:

Code:
FAN standalone

# yum install fan-standalone

FAN poller

yum install fan-poller

FAN central

yum install fan-central

FAN database

yum install fan-database
Please let us know...
 
Old 04-01-2013, 03:16 PM   #6
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,166
Blog Entries: 10

Rep: Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979
Code:
yum repolist
output please.
 
Old 04-02-2013, 05:10 AM   #7
tissam89
Member
 
Registered: Mar 2013
Posts: 47

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Habitual View Post
Code:
yum repolist
output please.
Sorry for the late response :

This is the result of my commande :

Quote:
# yum repolist

Loaded plugins: security
FAN | 951 B 00:00
epel | 3.6 kB 00:00
epel/primary_db | 3.7 MB 00:13
graphviz-stable | 951 B 00:00
rhel-source | 2.5 kB 00:00
rpmforge | 1.9 kB 00:00
repo id repo name status
FAN FAN enabled: 108
epel Extra Packages for Enterprise Linux 5 - x86_64 enabled: 7,275
graphviz-stable Graphviz - RHEL 5Server - x86_64 enabled: 220
rhel-source Red Hat Enterprise Linux 5Server - Source enabled: 4,560
rpmforge Red Hat Enterprise 5Server - RPMforge.net - dag enabled: 11,273
repolist: 23,436
 
Old 04-10-2013, 04:49 AM   #8
tissam89
Member
 
Registered: Mar 2013
Posts: 47

Original Poster
Rep: Reputation: Disabled
Nothing in the monitoring repository of Centreon

Hey, I am back . I added 2 hosts on the configuration,and when i generate, i can see it in my page nagios, but not on my monitoring repository of centreon. How can i resolve it please?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] cron errors: failed with exit status 1 mike11 Linux - Newbie 4 12-12-2011 10:43 PM
error: command 'gcc' failed with exit status 1 yuri16 Linux - Software 1 04-21-2009 02:27 AM
Exit status vedanu Programming 4 06-23-2007 06:13 PM
Duplicate librsvg2 packages - removal causes scriplet failed - exit status 1 trekk Fedora 2 11-08-2006 07:42 PM
exit status naflan Programming 2 10-22-2004 01:22 PM


All times are GMT -5. The time now is 06:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration