Commercial Support Clients: Clients with support contracts can get escalated support assistance by visiting Nagios Answer Hub. These forums are for community support services. Although we at Nagios try our best to help out on the forums here, we always give priority support to our support clients.
ls -l /usr/local/nagios/var/rw/nagios.cmd
ls -ld /usr/local/nagios/var/rw
ls -ld /usr/local/nagios/var
ls -ld /usr/local/nagios
ls -ld /usr/local
usermod -G nagcmd nagios
usermod -G nagcmd apache
chown nagios:nagcmd /usr/local/nagios/var/rw
chown nagios:nagcmd /usr/local/nagios/var/rw/nagios.cmd
service httpd restart
service nagios restart
Stuart Watts wrote:What are the permissions on nagios.cmd, and the directories it sits in?
- Code: Select all
ls -l /usr/local/nagios/var/rw/nagios.cmd
ls -ld /usr/local/nagios/var/rw
ls -ld /usr/local/nagios/var
ls -ld /usr/local/nagios
ls -ld /usr/local
Box293 wrote:I found this blog fixed the same problem (after trying lots of other similar sites).
http://linux.101hacks.com/unix/nagios-cmd-file-error/
I assume the group nagcmd already exists, so do the following:
- Code: Select all
usermod -G nagcmd nagios
usermod -G nagcmd apache
chown nagios:nagcmd /usr/local/nagios/var/rw
chown nagios:nagcmd /usr/local/nagios/var/rw/nagios.cmd
Finally, restart the Apache and Nagios, you should not get that nagios.cmd error message anymore.
- Code: Select all
service httpd restart
service nagios restart
usermod -G nagios nagios
usermod -G nagcmd apache
service nagios restart
service httpd restart
Return to Open Source Nagios Projects
Users browsing this forum: Google [Bot] and 21 guests