Error accessing or executing Nagios / Icinga binary

Support requests, bug reports, questions etc.
kaplan71
NConf supporter
NConf supporter
Posts: 37
Joined: Tue Nov 01, 2011 00:34

Error accessing or executing Nagios / Icinga binary

Post by kaplan71 » Thu May 24, 2012 21:55

Hello --

I am running into the error message:
Error accessing or executing Nagios / Icinga binary '/usr/local/icinga/bin/icinga'.
Cannot run the mandatory syntax check.
when I run the Generate Nagios Config utility.

I have confirmed the pathname in the nconf.php file has the following syntax:
define('NAGIOS_BIN', '/usr/local/icinga/bin/icinga');
I have also created a symbolic link the /var/www/nconf/bin folder with the following permissions:
lrwxrwxrwx 1 root root 28 May 24 15:38 icinga -> /usr/local/icinga/bin/icinga
The icinga binary is located in the /usr/local/icinga/bin directory, and has the permissions as shown:
-rwxrwxr-- 1 icinga icinga 664488 May 24 09:46 icinga
What am I missing here in order to get the configuration generator to work?

Thanks.

User avatar
Bennyvision
NConf expert
NConf expert
Posts: 87
Joined: Mon Jul 19, 2010 21:01
Location: Kansas City, MO, USA

Re: Error accessing or executing Nagios / Icinga binary

Post by Bennyvision » Fri May 25, 2012 14:29

Is your webserver running chroot'ed?

Also, there is no 'x' permission for other on the binary, so is the user your webserver running as a member of the icinga group?

kaplan71
NConf supporter
NConf supporter
Posts: 37
Joined: Tue Nov 01, 2011 00:34

Re: Error accessing or executing Nagios / Icinga binary

Post by kaplan71 » Fri May 25, 2012 16:45

Hello --

The nconf Nagios Generate Config problem from yesterday was solved in the following manner:

The apache user account on the new server was configured with the /sbin/nologin shell. When compared to that on the original server,
it was discovered a similar account on the old server had the /bin/sh shell.

When that shell was implemented on the new romonitor server, the Nagios Generate Config utility worked without issue.

Locked