Error : could not open command file /usr/local/nagios/var/rw
Error : could not open command file /usr/local/nagios/var/rw
Getting error
Error : could not open command file /usr/local/nagios/var/rw/nagios.cmd
for update.
The permission on extrnal command file and or dir may b incorct.
Error ocourd whle attmptng to commit
Error : could not open command file /usr/local/nagios/var/rw/nagios.cmd
for update.
The permission on extrnal command file and or dir may b incorct.
Error ocourd whle attmptng to commit
Re: Error : could not open command file /usr/local/nagios/va
Can anyone reply this
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Error : could not open command file /usr/local/nagios/va
Hello,
Change the ownership for the directory with the following:
Change the ownership for the directory with the following:
Code: Select all
chmod +rwx /usr/local/nagios/var/rw
Re: Error : could not open command file /usr/local/nagios/va
Still same error.
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Error : could not open command file /usr/local/nagios/va
Can you run the following and report the output back here:
Additionally can you send a copy of your nagios.cfg file, it is locate at:
Code: Select all
ls -ld /usr/local/nagios/var/rw/
Additionally can you send a copy of your nagios.cfg file, it is locate at:
Code: Select all
/usr/local/nagios/etc/nagios.cfg
Re: Error : could not open command file /usr/local/nagios/va
Nagios recreates that file after each restart, so updating permissions from the system won't fix that. What are the permissions on that file?
Are external commands enabled in the main nagios.cfg file?
check_external_commands=1
Are external commands enabled in the main nagios.cfg file?
check_external_commands=1
Re: Error : could not open command file /usr/local/nagios/va
Hi,
Look at the last page of this guide where you can find the correct sequence of command to submit
http://giuseppeturri.it/NAGIOS_INSTALLATION_GUIDE.pdf
Let me know
Look at the last page of this guide where you can find the correct sequence of command to submit
http://giuseppeturri.it/NAGIOS_INSTALLATION_GUIDE.pdf
Let me know
Re: Error : could not open command file /usr/local/nagios/va
Is apache member of nagcmd group?
Code: Select all
cat /etc/group | grep nag
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Error : could not open command file /usr/local/nagios/va
I believe that the correct command would be:
and
Code: Select all
usermod -G nagios apache
Code: Select all
usermod -G nadcmd apache
Re: Error : could not open command file /usr/local/nagios/va
Thread is incredibly old so I will be closing this now.
Former Nagios employee