Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 89160 - Nagios /var/nagios/rw/nagios.cmd false right
Summary: Nagios /var/nagios/rw/nagios.cmd false right
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-15 01:18 UTC by Romang
Modified: 2005-09-19 20:45 UTC (History)
1 user (show)

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


Attachments
nagios-core-2.0b_p2.ebuild.diff (nagios-core-2.0b_p2.ebuild.diff,521 bytes, text/plain)
2005-04-20 10:07 UTC, Marco Morales
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Romang 2005-04-15 01:18:57 UTC
Hello,

If you combine nagios with apache, the right on /var/nagios/rw/nagios.cmd are false, cause apache can't interact with nagios.cmd

actually right are :

monitoring root # ls -la /var/nagios/rw/nagios.cmd
prw-rw----  1 nagios nagios 0 Apr 15 10:14 /var/nagios/rw/nagios.cmd

Should be :

monitoring root # ls -la /var/nagios/rw/nagios.cmd
prw-rw----  1 nagios apache 0 Apr 15 10:14 /var/nagios/rw/nagios.cmd

The init script could do this :

start() {
...
start-stop-daemon --quiet --start --startas /usr/nagios/bin/nagios \
--pidfile /var/nagios/nagios.lock -- -d /etc/nagios/nagios.cfg
chgrp apache /var/nagios/rw/nagios.cmd
eend $?
...
}

reload()
{
        checkconfig || return 1
        ebegin "Reloading configuration"
        killall -HUP nagios &>/dev/null
        chgrp apache /var/nagios/rw/nagios.cmd
        eend $?
}

Regards.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
apache web interface could not interact with nagios

Expected Results:  
apache web interface should interact with nagios
Comment 1 Marco Morales 2005-04-20 10:07:02 UTC
Created attachment 56770 [details]
nagios-core-2.0b_p2.ebuild.diff

this change could be done in previous versions too...
Comment 2 Marco Morales 2005-09-02 19:19:54 UTC
Romang still there? do you have the same problem with other file/dir? i would
appreciate your feedback :) thnx
Comment 3 Marco Morales 2005-09-19 20:45:36 UTC
In cvs. Thanks Romang.