Known problem with named pipe in live systems or with nagios ?
I have a problem with a Nagios ("nagios3-core" is the only package
required) setup on a debian live (squeeze) system.
Nagios uses a named pipe to receive commands from external processes.
Debian documentation (/usr/share/doc/nagios3-common/README.Debian) tells
to apply some dpkg-statoverride commands to allow the named pipe to be
written by www-data user.
When processing these instructions on a Debian Squeeze system
(2.6.32-5-686), it works flawlessly :
root@axel-squeeze:/home/axel# dpkg-statoverride --update --add nagios
www-data 2710 /var/lib/nagios3/rw
root@axel-squeeze:/home/axel# dpkg-statoverride --update --add nagios
nagios 751 /var/lib/nagios3
root@axel-squeeze:/home/axel# /etc/init.d/nagios3 start
Starting nagios3 monitoring daemon: nagios3.
root@axel-squeeze:/home/axel# ls -l /var/lib/nagios3/rw/
total 0
prw-rw---- 1 nagios www-data 0 1 juil. 14:22 nagios.cmd
root@axel-squeeze:/home/axel# su www-data -c "ls
/var/lib/nagios3/rw/nagios.cmd"
/var/lib/nagios3/rw/nagios.cmd
When processing these instructions on a Debian Live system
(2.6.32-5-486), it does not work (persistence enabled or not)
root@live:/home/admin# dpkg-statoverride --update --add nagios www-data
2710 /var/lib/nagios3/rw
root@live:/home/admin# dpkg-statoverride --update --add nagios nagios
751 /var/lib/nagios3
root@live:/home/admin# /etc/init.d/nagios3 start
Starting nagios3 monitoring daemon: nagios3.
root@live:/home/admin# su www-data -c "LANG=C ls
/var/lib/nagios3/rw/nagios.cmd"
ls: cannot access /var/lib/nagios3/rw/nagios.cmd: Permission denied
Though, both files have the same ownership/permissions :
root@live:/home/admin# ls -l /var/lib/nagios3/
total 12
-rw------- 1 nagios www-data 10053 1 juil. 12:29 retention.dat
drwx--s--- 2 nagios www-data 60 1 juil. 12:30 rw
drwxr-x--- 4 nagios nagios 60 28 juin 10:43 spool
root@live:/home/admin# ls -l /var/lib/nagios3/rw/
total 0
prw-rw---- 1 nagios www-data 0 1 juil. 12:30 nagios.cmd
I checked that this file does not come from the squashfs archive, it s
created by nagios daemon at startup.
So I wonder if this problem could be related to the AUFS mount, and how
I could debug it.
Thanks for your help
Reply to: