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
ndomod loading on RHEL
Re: ndomod loading on RHEL
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
Former Nagios employee
Re: ndomod loading on RHEL
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
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
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
Thanks - that worked!