We're moving to a new support system!
The Nagios Answer Hub is a place where you can get help with technical questions from our experts. There, you can quickly open tickets and join discussion boards.
Request Nagios Answer Hub access here: https://info.nagios.com/answer-hub-access-new-users
After completing the access form, you will be given access to a portal where new tickets can be created. We will keep the old customer forum sections and ticket system available for current cases to be resolved.
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
Users browsing this forum: No registered users and 21 guests