Page 1 of 1
ndomod loading on RHEL
Posted: Tue Aug 14, 2012 5:52 am
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
Re: ndomod loading on RHEL
Posted: Tue Aug 14, 2012 10:00 am
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.
Re: ndomod loading on RHEL
Posted: Wed Aug 15, 2012 12:12 am
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
Re: ndomod loading on RHEL
Posted: Wed Aug 15, 2012 9:52 am
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.
Re: ndomod loading on RHEL
Posted: Mon Aug 20, 2012 3:19 am
by yarongo
Thanks - that worked!