Linux Agent installation

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
murali
Posts: 1
Joined: Mon Apr 08, 2013 6:51 pm

Linux Agent installation

Post by murali »

Hello

I am installing Linux agent, i am getting following error

warning: ./packages/epel-release-5-4.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 217521f6
warning: waiting for transaction lock on /var/lib/rpm/__db.000

Then it hangs.

I have one more server with Linux RHEL 4, when i am trying to install agent its keep on installing, i was almost waiting like 4 mins still it was running, finally i cancelled that.

I have downloaded both the agets from Nagios site. We are customer of Nagios

Thanks
Krishna
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Linux Agent installation

Post by abrist »

murali wrote:warning: ./packages/epel-release-5-4.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 217521f6
This error is fairly common, it can be ignored.
murali wrote:warning: waiting for transaction lock on /var/lib/rpm/__db.000
This is likely the main issue. The berkley database is currently locked, either by another package install or a stale lock. Do you have any other package installs pending? If not, you can ^C out of the build, remove the lock file (as long as you are sure that there are no other current or pending package installs), at try once again.

Lets check what has the file tied up:

Code: Select all

lsof /var/lib/rpm/__db.000
Next, lets check to see the file size, many times it is zero size.

Code: Select all

ls -l /var/lib/rpm/__db.000
If it is of zero size, lets touch it to recreate it and set permissions:

Code: Select all

touch /var/lib/rpm/__db.000
chown root:root /var/lib/rpm/__db.000
chmod 644 /var/lib/rpm/__db.000
Finally, You could also try setting "gpgcheck" to "0" temporarily for the package install (remember to change it back):

Code: Select all

vi /etc/yum.conf
Change:

Code: Select all

gpgcheck=1
To:

Code: Select all

gpgcheck=0
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked