Search found 7 matches

by tokiwinter
Mon Jul 21, 2014 2:01 am
Forum: Open Source Nagios Projects
Topic: Error: Could not open command file '/usr/local/nagios-4.0.7/
Replies: 12
Views: 5567

Re: Error: Could not open command file '/usr/local/nagios-4.

Thanks - changing the group ownership of /usr/local/nagios/var/rw works!
by tokiwinter
Wed Jul 16, 2014 9:29 pm
Forum: Open Source Nagios Projects
Topic: Error: Could not open command file '/usr/local/nagios-4.0.7/
Replies: 12
Views: 5567

Re: Error: Could not open command file '/usr/local/nagios-4.

It does:

Code: Select all

# grep command_file /etc/nagios/nagios.cfg
command_file=/usr/local/nagios-4.0.7/var/rw/nagios.cmd
# ls -l /usr/local/nagios-4.0.7/var/rw/nagios.cmd
prw-rw---- 1 nagios nagcmd 0 Jul 16 11:38 /usr/local/nagios-4.0.7/var/rw/nagios.cmd
by tokiwinter
Tue Jul 15, 2014 8:37 pm
Forum: Open Source Nagios Projects
Topic: Error: Could not open command file '/usr/local/nagios-4.0.7/
Replies: 12
Views: 5567

Re: Error: Could not open command file '/usr/local/nagios-4.

Looking at the output at the end of configure, it defaults to using these values anyway: ... General Options: ------------------------- Nagios executable: nagios Nagios user/group: nagios,nagios Command user/group: nagios,nagcmd ... I've reconfigured after a make clean with: ./configure --prefix=/us...
by tokiwinter
Tue Jul 15, 2014 8:31 pm
Forum: Open Source Nagios Projects
Topic: Error: Could not open command file '/usr/local/nagios-4.0.7/
Replies: 12
Views: 5567

Re: Error: Could not open command file '/usr/local/nagios-4.

Thanks for getting back to me. I saw '--with-command-user=nagios' as a configure option and used it - although looking at the Quickstart guide it seems this isn't required and is perhaps the cause of my issue. Should I recompile Nagios with these options (including the --with-nagios-group and --with...
by tokiwinter
Tue Jul 15, 2014 2:31 am
Forum: Open Source Nagios Projects
Topic: Error: Could not open command file '/usr/local/nagios-4.0.7/
Replies: 12
Views: 5567

Re: Error: Could not open command file '/usr/local/nagios-4.

Hi, The group is configured: # grep nagcmd /etc/group nagcmd:x:1001:nagios,www-data And I did configure with the --with-command-group option: # history | grep -- --with-command-group 70 ./configure --prefix=/usr/local/nagios-4.0.7 --sysconfdir=/etc/nagios --with-nagios-user=nagios --with-nagios-grou...
by tokiwinter
Fri Jul 11, 2014 8:20 pm
Forum: Open Source Nagios Projects
Topic: Error: Could not open command file '/usr/local/nagios-4.0.7/
Replies: 12
Views: 5567

Re: Error: Could not open command file '/usr/local/nagios-4.

Thanks for the reply. I'm seeing ""Error: Could not open command file '/usr/local/nagios-4.0.7/var/rw/nagios.cmd' for update!"" - but /usr/local/nagios is just a symlink to /usr/local/nagios-4.0.7.
by tokiwinter
Fri Jul 11, 2014 6:38 am
Forum: Open Source Nagios Projects
Topic: Error: Could not open command file '/usr/local/nagios-4.0.7/
Replies: 12
Views: 5567

Error: Could not open command file '/usr/local/nagios-4.0.7/

Hi, I'm receiving the well-known "Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update!" error message on Nagios Core 4.0.7 on Ubuntu 14.04 LTS running under Nginx. # ls -ld /usr/local/nagios/var/rw drwxrwsr-x 2 nagios nagcmd 4096 Jul 11 21:32 /usr/local/nagi...