Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56490 - nagios-core-1.2-r1 needs --with-command-grp=somegroup and in make...
Summary: nagios-core-1.2-r1 needs --with-command-grp=somegroup and in make...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-08 14:36 UTC by Eric Brown
Modified: 2004-07-10 03:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Brown 2004-07-08 14:36:07 UTC
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)
Comment 1 Eldad Zack (RETIRED) gentoo-dev 2004-07-10 03:38:55 UTC
good catch.

fixed in 1.2-r2.