Error accessing or executing Nagios binary

Support requests, bug reports, questions etc.
Locked
loringda
starter
starter
Posts:4
Joined:Tue May 19, 2009 15:43
Error accessing or executing Nagios binary

Post by loringda » Tue May 19, 2009 18:07

I am running Nagios v3.0.6 and Nconf v1.2.4(final) on the same Ubuntu v8.04.2 server. Nagios is loaded in ./usr/local/nagios and Nconf is loaded in ./var/www/nconf.

When I click "Generate Nagios config" I recieve the following...
[INFO] Starting gernerate_config script
[INFOR] Ended gernerat_config script
Error accessing or exectuting Nagios binary '/var/www/nconf/bin/nagios'
Error accessing or exectuting Nagios binary '/var/www/nconf/bin/nagios'
Running tests:
collector.cobleskill.edu: Error generating config
--------------------------------------------------------------------------------
nagios.cobleskill.edu: Error generating config
--------------------------------------------------------------------------------
Deployment not possible due to errors in configuration.

First thing I found is there is no /var/www/nconf/bin/nagios folder. If I run the gernerate_config.pl from a command line, I receive the error [ERROR] could not open confguration file ./config/nconf.php.

What do I need to correct?

Thanks

User avatar
fgander
NConf developer
NConf developer
Posts:308
Joined:Mon Mar 16, 2009 14:23
Location:Bern, Switzerland
Contact:

Re: Error accessing or executing Nagios binary

Post by fgander » Tue May 19, 2009 21:40

please have a look at other forum post or read this part of documentation :

NAGIOS_BIN
This is the path to the Nagios binary. The binary is needed in order to run tests on the generated config. It is highly reccommended to make Nconf run these checks. Nconf will not work properly if these checks cannot be executed. This path should either point to the original binary (if Nagios is installed on the same host), to a copy of the binary (copy it to the bin/ folder), or to a symbolic link. Make sure the binary is executable to the webserver user.

thx
F.G. - NConf developer
http://www.nconf.org
Image
Follow NConf on Twitter!

User avatar
agargiulo
NConf developer
NConf developer
Posts:725
Joined:Fri Mar 06, 2009 17:50
Location:Zurich, Switzerland
Contact:

Re: Error accessing or executing Nagios binary

Post by agargiulo » Wed May 20, 2009 07:46

There is also a known JavaScript bug that occurs when you use "." (dots) in your collector/monitor server names. This has been corrected for the next release. Try renaming your servers and then try generating the config again.
This will not solve the issue you have with the Nagios binary not being accessible, but it will show you a more detailed error message in the browser.

loringda
starter
starter
Posts:4
Joined:Tue May 19, 2009 15:43

Re: Error accessing or executing Nagios binary

Post by loringda » Wed May 20, 2009 17:02

Thanks for all the infor. I updated path information, changed the server name without ".", and copied missing binary files to the /bin/nagios folder.

Now the Generate config runs further and give the following error..

INFO] Starting generate_config script
[ERROR] Could not open /var/www/nconf/temp/test/nagios.cfg for writing
[ERROR] Could not open /var/www/nconf/temp/test/collector.cfg for writing
[INFO] Ended generate_config script

Error accessing or executing Nagios binary '/var/www/nconf/bin/nagios'

Error accessing or executing Nagios binary '/var/www/nconf/bin/nagios'

Running tests:
collector: Error generating config
--------------------------------------------------------------------------------
nagios: Error generating config
--------------------------------------------------------------------------------

Deployment not possible due to errors in configuration.

loringda
starter
starter
Posts:4
Joined:Tue May 19, 2009 15:43

Re: Error accessing or executing Nagios binary

Post by loringda » Wed May 20, 2009 19:21

I reinstalled NConf and nolonger have these problems.

Locked