Can not issue commands

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
james.carroll
Posts: 1
Joined: Thu Jan 23, 2014 11:46 pm

Can not issue commands

Post by james.carroll »

I installed from source onto Centos and its monitoring the localhost. When I try to issue a command like disabling an alert, however, I am told:

Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update!
The permissions on the external command file and/or directory may be incorrect. Read the FAQs on how to setup proper permissions.
An error occurred while attempting to commit your command for processing.

I'm logged in as nagiosadmin.
I've checked the cgi.cfg file and I see:

use_authentication=1
authorized_for_system_commands=nagiosadmin

I'm the contact for the machine, etc. Everything the doc says that needs to be in place is as far as I can tell. I also found a page online on how to fix it (http://linux.101hacks.com/unix/nagios-cmd-file-error/)

Everything checked out there as well as far as group and owner, etc

What am I missing?

Thanks,
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Can not issue commands

Post by slansing »

Can you show us the output of:

Code: Select all

ls -la /usr/local/nagios/var/rw

cat /etc/group | grep nag
Locked