external command execution problem
atstake atstake
atstake at gmail.com
Tue May 30 10:13:14 CEST 2006
I been trying to reschedule checks & nagios tells me "Error: Could not
stat() command file '/usr/local/nagios/var/rw/nagios.cmd'!"
I followed - http://nagios.sourceforge.net/docs/2_0/commandfile.html
Nagios runs are user: _nagios
Apache runs as user: www
Here are some outputs -
grep _nagios /etc/passwd
_nagios:*:550:550:Nagios user:/var/www/nagios:/sbin/nologin
ls -ld /usr/local/nagios/var/rw/
drwxrwxrwx 2 _nagios nagiocmd 512 May 29 15:41 /usr/local/nagios/var/rw/
ls -la /usr/local/nagios/var/rw/nagios.cmd
prwxrwxrwx 1 _nagios nagiocmd 0 May 29 15:41
/usr/local/nagios/var/rw/nagios.cmd
grep nagios /etc/group
www:*:67:_nagios
_nagios:*:550:www,_nagios
nagiocmd:*:1005:_nagios,www,nagiosadmin
grep ^User /var/www/conf/httpd.conf
User www
grep ^Group /var/www/conf/httpd.conf
Group www
ps auxww | grep httpd
www 29128 0.0 1.9 1268 2404 ?? Ss 2:15PM 0:01.32
httpd: parent [chroot /var/www] (httpd)
Nagiosn version: 2.0b4
OS: OpenBSD
TIA.
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list