40ba22b280
As proposed on pkgsrc-users@... - Introduce NAGIOSDIR, defaults to VARBASE/spool/nagios, for log and status files. - Drop unused(?) 'nagadmin' user and group. - Sync user and group handling with Nagios install documentation/recommendations. Introduce the Nagios "external command" group, NAGIOSCMD_GROUP, defaults to APACHE_GROUP. The Nagios user should be manually added after package installation to the NAGIOSCMD_GROUP group. Add this recommandation to the MESSAGE file. Make the "external command directory", NAGIOSDIR/rw, owned by NAGIOS_USER:NAGIOSCMD_GROUP. - Use /var/run/nagios.lock as pidfile. - Only install existing example configuration files. - Put default values of NAGIOSDIR, NAGIOS_USER, NAGIOS_GROUP and NAGIOSCMD_GROUP in mk/defaults/mk.conf and allow MAKECONF to override them. - Miscellaneous clean up and sync with the changes mentionned above. - When deleting the package allow removal of directories shared with other Nagios packages to fail.
15 lines
526 B
Text
15 lines
526 B
Text
===========================================================================
|
|
$NetBSD: MESSAGE,v 1.2 2007/11/26 22:14:13 seb Exp $
|
|
|
|
Apache Configuration:
|
|
You must add this in your httpd.conf file:
|
|
Include ${PKG_SYSCONFDIR}/nagios.conf
|
|
|
|
You should add the ${NAGIOS_USER} user to the group ${NAGIOSCMD_GROUP}.
|
|
|
|
See the manual for more instructions.
|
|
|
|
/etc/rc.d startup script:
|
|
Please look in ${PREFIX}/share/examples/rc.d/ for a nagios startup script.
|
|
|
|
===========================================================================
|