NConf plugin problem

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Tal
Posts: 12
Joined: Wed Jun 06, 2012 1:40 pm

NConf plugin problem

Post by Tal »

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"
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: NConf plugin problem

Post by slansing »

Hello Tal,

Have a look at the following:

http://schmidi2.blog.com/2010/04/30/nco ... ga-binary/
Tal
Posts: 12
Joined: Wed Jun 06, 2012 1:40 pm

Re: NConf plugin problem

Post by Tal »

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.
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: NConf plugin problem

Post by agriffin »

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.
Locked