|
Cannot find the Nagios binary or no execute 9 Months ago
|
Karma: 0
|
|
I am getting this error message. Everything else is working great.
Cannot find the Nagios binary or no execute permissions!
My nagios binary is located in /usr/bin/nagios
I looked at tbl_domain and disovered it was wrong and corrected it to say /usr/bin/nagios.
Still no luck.
I set the permissions on the binary to 777
I am running nagios 3.2.0 on CentOS 5.3. The webserver is apache with Plesk.
Under nagios control, if I try to restart nagios, it says it isn't running. If I click Check Configuration files I get the "Cannot find the Nagios binary or no execute permissions!" error.
Here are some other things I checked.
In the tbl_domain table in the db I verified that all of the following are correct and here are the settings.
pidfile /var/run/nagios.pid
binaryfile /usr/bin/nagios
commandfile /var/nagios/rw/nagios.cmd
I assume the command file has correct permissions because from the nagios gui I can schedule downtime and acknowledge alerts
I assume the binary file has correct permissions because from the nagios gui I can restart the nagios process or shut it down.
I have no idea if the permissions on the pid file are correct as I don't know what they should be.
|
|
|
|
Last Edit: 2009/10/27 07:49 By deltatech.Reason: added more detail.
|
|
|
Re:Cannot find the Nagios binary or no execute 9 Months ago
|
Karma: 2
|
|
Hi,
first of all, you should not configure the domain settings via db tools, but with the administration domain configuration page in NagiosQL.
If you get an error like "Cannot find the Nagios binary or no execute permissions!", it has nothing to do with the command or pid file of nagios. You should check that your webserver user is able to execute the nagios binary.
Regards,
Rouven
|
|
|
|
|
|
|
Re:Cannot find the Nagios binary or no execute 9 Months ago
|
Karma: 0
|
|
I just discovered the domains settings, so no reason to edit the db directly.
I was able to fix the check configuration issue by adding the path to the binary to my open_basedir however it now has another problem.
Even though nagios -v doesn't find any problems, the nagiosql gui reports this warning even though there are no errors. I am unable to find any duplicate definition.
Warning: Duplicate definition found for service 'Current Load' on host 'zeus' (config file '/etc/nagiosql/services/echo.cfg', starting on line 32)
Total Warnings: 0
Total Errors: 0
Also, it is still unable to restart nagios as it claims it is not running.
|
|
|
|
|
|
|
Re:Cannot find the Nagios binary or no execute 9 Months ago
|
Karma: 2
|
|
Hi,
most probably "Duplicate Definition" errors occur while defining a cfg_dir directive that is loading configuration files twice. Please check cfg_file and cfg_dir options in nagios.cfg. Please note that cfg_dir is recursive.
Regarding the restart... NagiosQL is just doing a command reload via the command interface of nagios. This means that Nagios has to run while doing a NagiosQL restart... We should better call this Nagios Reload.
Regards,
Rouven
|
|
|
|
|
|
|
Re:Cannot find the Nagios binary or no execute 9 Months ago
|
Karma: 0
|
|
I think my duplicates problem is my confusion with nagios.
If I setup server A with 10 services and put it into host group windows-servers then add server B with no services and put it into the host group windows-servers, it suddenly has all the services that server A has.
Is this normal?
|
|
|
|
|
|
|