Ubuntu 10.04
Nagios: 3.4.1
Nconf 1.3.0
I know that NConf has it's own forum....but I thought I'd post my problem here as well as it seems to apply.
Problem: When selecting "Generate Nagios Config" I get an error, "Error accessing or executing Nagios/Ichinga binary '/usr/local/nagios/bin'. Cannot run the mandatory syntax check."
Troubleshooting: (I'm assuming that the nagios binary is /usr/local/nagios/bin)
ran chmod 777 for nagios file in /usr/local/nagios/bin
Assigned permissions for /usr to group 'nagios' to 'create and delete' recursively (also verified this for /usr/local, /usr/local/nagios, and /usr/local/nagios/bin)
Question 1: is /usr/local/nagios/bin/nagios in fact the binary file for Nagios?
Questiion 2: Why on earth am I getting an access violation?
"fighting for my rights one directory at a time"
NConf plugin problem
Re: NConf plugin problem
Thanks, slansing....unfortunately the post is more for an ichinga configuration so it's not much help to me.
I did run the suggested command (sudo -u www-data /usr/local/nagios/bin/nagios -v) and it returned "The name of the main configuration file looks suspicious....The main configuration file is typically /usr/local/nagios/etc/nagios.cfg" so I verified permissions on the nagios.cfg file (777) nagios:nagios so all correct there....but when I repoint NAGIOS_BIN in nconf.php file here, it gives me the same error.
The directory listed in this post /opt/www/.... does not apply to my config (I don't have any files here, hidden or otherwise) all my pages are running under /usr/local/nagios/share
So I'm still lost.
I did run the suggested command (sudo -u www-data /usr/local/nagios/bin/nagios -v) and it returned "The name of the main configuration file looks suspicious....The main configuration file is typically /usr/local/nagios/etc/nagios.cfg" so I verified permissions on the nagios.cfg file (777) nagios:nagios so all correct there....but when I repoint NAGIOS_BIN in nconf.php file here, it gives me the same error.
The directory listed in this post /opt/www/.... does not apply to my config (I don't have any files here, hidden or otherwise) all my pages are running under /usr/local/nagios/share
So I'm still lost.
Re: NConf plugin problem
For some reason, it almost looks like it's trying to run the nagios binary's containing directory instead of the binary itself. How are you trying to start nagios? If you're using the daemon startup script ('/etc/init.d/nagios start' or 'service nagios start'), post it here or make sure it's pointed to the right file.