ndomod loading on RHEL

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
yarongo
Posts: 3
Joined: Tue Aug 14, 2012 5:48 am

ndomod loading on RHEL

Post by yarongo »

Hi,

Tried to setup nagios on the satelite machine, which is running RHEL, I'm getting the following:
Error: Could not load module '/usr/local/nagios/bin/ndomod.o' -> /tmp/nebmodHoHW9y: failed to map segment from shared object: Operation not permitted

Any help would be appreciated
Yaron
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: ndomod loading on RHEL

Post by nscott »

What are the permissions of the file /tmp/nebmodHoHW9y? The should be at least 666, but if they already are, remake them as 777? Also, are you running SELinux? If you are, turn it off and try again.
Nicholas Scott
Former Nagios employee
yarongo
Posts: 3
Joined: Tue Aug 14, 2012 5:48 am

Re: ndomod loading on RHEL

Post by yarongo »

Thanks for the quick get-back!

First, I'm not running SElinux. Also, I believe tmp is mounted noexec.
The permissions can't be set manually since the file seems to be created temporarily on restart of nagios service (each time, a different file name).

(1) Why does the file get recreated?
(2) Can I set the recreation to a different path?
(3) Any other ideas?

Thanks again
Yaron
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: ndomod loading on RHEL

Post by mguthrie »

In the main nagios.cfg file you can control what Nagios uses for a tmp directory with the temp_path config option. Try updating that to a directory that Nagios has full access to and see if it makes a difference.
yarongo
Posts: 3
Joined: Tue Aug 14, 2012 5:48 am

Re: ndomod loading on RHEL

Post by yarongo »

Thanks - that worked!
Locked