Installing Nagios RPM
Demetri Mouratis
dmourati at cm.math.uiuc.edu
Wed Jan 4 21:31:35 CET 2006
On Wed, 4 Jan 2006, Salman Usmani wrote:
> Doing "rpm -q nagios" shows "nagios-1.2-2.1.el3.rf"
>
> How do I remove that?
>
> Doing "rpm -e nagios"
>
> Shows:
> error reading information on service nagios: No such file or directory
> error: %preun(nagios-1.2-2.1.el3.rf) scriptlet failed, exit status 1
>
All your questions are really rpm questions, not nagios ones.
Anyway, here's the preun section of the nagios spec file:
preuninstall scriptlet (using /bin/sh):
if [ $1 -eq 0 ]; then
/sbin/service nagios stop &>/dev/null || :
/sbin/chkconfig --del nagios
fi
Seems like you have a broken installation.
Try this:
rpm -e --nopreun nagios
For all the information you ever wanted about rpm, please see the
following:
http://fedora.redhat.com/docs/drafts/rpm-guide-en/
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list