Generate Nagios config

Support requests, bug reports, questions etc.
Locked
ben9519

Generate Nagios config

Post by ben9519 » Mon Oct 12, 2009 15:12

Hi,

i want to use nconf, it seems to be a cool tool to simple manage nagios!
i installed a server with fedora 11 and installed nagios.

then i placed the nconf files in the same share folder as nagios.
whem i want to generate the nagios config i get the following error

Error accessing or executing Nagios binary '/usr/local/nagios/share/nconf/bin/nagios'.
Cannot run the mandatory syntax check.

how can i solve this problem, thread http://sourceforge.net/apps/mediawiki/n ... _binary.22 didn't worked out for me.

please advise

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

Re: Generate Nagios config

Post by agargiulo » Wed Oct 14, 2009 13:56

Hi.

Did you manually copy your nagios binary to the 'nconf/bin/' folder? Ist your NAGIOS_BIN constant set properly?
Make sure that apache can actually access and execute the binary in that folder.
You can test this by temp. giving your apache (or www-data) user a shell, and then doing "su - apache", and then executing your binary.

NConf will not generate the config unless it can run a syntax check. For this check, it needs the nagios binary.
For debugging purpouses you could manually trigger the 'nconf/bin/generate_config.pl' script by command line and skip the syntax check....

Locked