nagios.cmd
Carroll, Jim P [Contractor]
jcarro10 at sprintspectrum.com
Mon Jan 13 17:09:03 CET 2003
The proper approach to this is:
1) create the group 'nagiocmd' (note that it's not 'nagioscmd')
2) add nagios to the group nagiocmd
3) add your webserver to the group nagiocmd
4) "chown nagios.nagiocmd /usr/local/nagios/var"
5) "chmod 2770 /usr/local/nagios/var"
6) restart nagios
You'll never have to manually set the permissions of rw again. :)
jc
> -----Original Message-----
> From: Bradley Dean [mailto:bjdean at unimelb.edu.au]
> Sent: Sunday, January 12, 2003 4:45 PM
> To: nagios
> Subject: Re: [Nagios-users] nagios.cmd
>
>
> On Thu, Jan 02, 2003 at 10:39:47AM -0800, Ambrose wrote:
> > Be sure to restart both the apache and nagios daemons after
> setting the
> > correct permissions.
> >
> > Also be sure to chmod nagios.nagios /usr/local/nagios/var/rw
>
> If the file is not writable nagios will fire off this sort of error.
>
> Instead of chmod nagios.nagios /usr/local/nagios/var/rw
> Ambrose might have
> meant: chown nagios:nagios /usr/local/nagios/var/rw
>
> To set write permissions use:
>
> chmod 660 /usr/local/nagios/var/rw
> or equivalently:
> chmod u+rw,g=rw,o= /usr/local/nagios/var/rw
>
> I've found that this file gets clobbered and recreated with the wrong
> permissions every now and then (despite umasks) and as I've
> been too lazy
> to track it down I have a line like "chmod 660
> /usr/local/nagios/var/rw" in
> my crontab running fairly regularly. (Though this way I'm
> never likely to
> know if I've fixed the problem. :)
>
> Cheerio,
>
> Brad
>
> --
> Melbourne University ITSAD SDI - Campus Wide Info Systems Group (CWIS)
> Email: bjdean at unimelb.edu.au Phone: +61-3-83443997 Mobile:
> +61-413014395
>
> Australian Intervarsity Choral Societies Association - Secretary
> Email: secretary at aicsa.org.au Web: http://www.aicsa.org.au
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
>
-------------------------------------------------------
This SF.NET email is sponsored by: FREE SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
More information about the Users
mailing list