Error: Could not open command file '/usr/local/nagios-4.0.7/

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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Error: Could not open command file '/usr/local/nagios-4.

Post by abrist »

I presume that you are seeing this error in the web ui?
This was a suggestion from ubuntu's forums:
Fix for Ubuntu Server 12.04 LTS:
We must change the group ownership of the /usr/local/nagios/var/rw/ directory. First stop the Nagios service and then change the group ownership and start Nagios service again:
geekpeeknet@foo1:~$ sudo chown -R nagios:www-data /usr/local/nagios/var/rw/
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
tokiwinter
Posts: 7
Joined: Fri Jul 11, 2014 6:33 am

Re: Error: Could not open command file '/usr/local/nagios-4.

Post by tokiwinter »

Thanks - changing the group ownership of /usr/local/nagios/var/rw works!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Error: Could not open command file '/usr/local/nagios-4.

Post by tmcdonald »

Great! I'll be closing this thread now, but feel free to open another if you need anything in the future!
Former Nagios employee
Locked