LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   scriptlet failed, exit status 1 (https://www.linuxquestions.org/questions/linux-newbie-8/scriptlet-failed-exit-status-1-a-4175456202/)

tissam89 03-30-2013 06:15 PM

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

AwesomeMachine 04-01-2013 03:42 AM

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!

tissam89 04-01-2013 04:48 AM

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 (Post 4922560)
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!


Habitual 04-01-2013 08:15 AM

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...

tissam89 04-01-2013 01:28 PM

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 (Post 4922723)
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...


Habitual 04-01-2013 02:16 PM

Code:

yum repolist
output please.

tissam89 04-02-2013 04:10 AM

Quote:

Originally Posted by Habitual (Post 4922964)
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

tissam89 04-10-2013 03:49 AM

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?


All times are GMT -5. The time now is 07:59 PM.