Could not stat() command file '/usr/local/nagios/var/
Posted: Mon Jan 30, 2017 9:57 pm
Moderator Edit: This thread has been split from another - https://support.nagios.com/forum/viewto ... =7&t=27662
In the future, please create a new thread and link to the old one instead of adding on.
I am having the same issue
OS = CentOS 7
Nagios = 4.2.4
I have followed the instructions from http://linux.101hacks.com/unix/nagios-cmd-file-error/ but it didn't fix the issue.
In the future, please create a new thread and link to the old one instead of adding on.
I am having the same issue
OS = CentOS 7
Nagios = 4.2.4
Code: Select all
[rosekp@ops-yum-mon01 ~]$ sudo su - nagios
Last login: Mon Jan 30 21:44:36 EST 2017 on pts/0
-sh-4.2$ grep nag /etc/passwd
systemd-network:x:192:192:systemd Network Management:/:/sbin/nologin
nagios:x:1003:1004::/home/nagios:/bin/sh
nagcmd:x:1004:1005::/home/nagcmd:/bin/bash
-sh-4.2$ grep nag /etc/group
apache:x:48:nagios
nagios:x:1004:
nagcmd:x:1005:nagios
-sh-4.2$ ls -l /usr/local/nagios/var/rw/
total 0
prw-rw----. 1 nagios nagcmd 0 Jan 30 21:54 nagios.cmd
srw-rw----. 1 nagios nagcmd 0 Jan 30 21:54 nagios.qh