nagios has the ability to use an external command option with the nagios.cmd file installed to /var/nagios/rw/ this directory and the nagios.cmd file must be rw by both nagios user and apache, so according to this url: http://nagios.sourceforge.net/docs/1_0/commandfile.html you should make a nagiocmd group and make the file 770 (at least). if you don't configure nagios with --with-command-grp=nagiocmd and then do make install-commandmode, each time you restart nagios, the file and directory group permissions will be wrong. Reproducible: Always Steps to Reproduce: 1. /etc/init.d/nagios restart 2. 3. Actual Results: nagios restarts and recreates /var/nagios/rw in user nagios:nagios mode 755 Expected Results: nagios should restart and recreate /var/nagios/rw as nagios:nagiocmd mode 775 (or 770 if you care that much perhaps)
good catch. fixed in 1.2-r2.