2011-07-29 22:35:29 +02:00
|
|
|
# macros.nagios file
|
|
|
|
# macros for Nagios and Icinga (sub-)package building - handle with care
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# directories
|
|
|
|
#
|
|
|
|
|
|
|
|
# install all plugins into this directory
|
|
|
|
%nagios_plugindir %{_prefix}/lib/nagios/plugins
|
|
|
|
# install all event handler scripts into this directory
|
|
|
|
%nagios_eventhandlerdir %{_prefix}/lib/nagios/plugins/eventhandler
|
|
|
|
# Nagios uses this directory for status files
|
|
|
|
%nagios_localstatedir %{_var}/lib/nagios
|
|
|
|
# Nagios configuration should be stored here
|
|
|
|
%nagios_sysconfdir %{_sysconfdir}/nagios
|
|
|
|
# Nagios static webpages, stylesheets and theme(s), online documentation
|
|
|
|
%nagios_datadir %{_datadir}/nagios
|
2011-07-30 21:47:12 +02:00
|
|
|
# Nagios spool dir
|
|
|
|
%nagios_spooldir %{_var}/spool/nagios
|
2011-08-22 12:22:22 +02:00
|
|
|
# Nagios logfile dir
|
|
|
|
%nagios_logdir %{_var}/log/nagios
|
2011-07-29 22:35:29 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# files
|
|
|
|
#
|
|
|
|
|
|
|
|
# This is the file that Nagios checks for external command requests
|
|
|
|
%nagios_command_file %{_var}/spool/nagios/nagios.cmd
|
|
|
|
# This is where the current status of all monitored services and
|
|
|
|
# hosts is stored.
|
|
|
|
%nagios_status_file %{_var}/lib/nagios/status.dat
|
|
|
|
# This is the file that Nagios should use to store host and
|
|
|
|
# service state information before it shuts down.
|
|
|
|
%nagios_state_retention_file %{_var}/lib/nagios/retention.dat
|
|
|
|
|
|
|
|
#
|
|
|
|
# users and groups
|
|
|
|
#
|
|
|
|
|
|
|
|
# User, Nagios runs under
|
|
|
|
%nagios_user nagios
|
|
|
|
# Group, Nagios runs under
|
|
|
|
%nagios_group nagios
|
|
|
|
# User, that can execute commands via %{nagios_command_file}
|
2011-07-30 21:40:43 +02:00
|
|
|
%nagios_command_user wwwrun
|
2011-07-29 22:35:29 +02:00
|
|
|
# Group, that can execute commands via %{nagios_command_file}
|
2011-07-30 21:40:43 +02:00
|
|
|
%nagios_command_group www
|
2011-07-29 22:35:29 +02:00
|
|
|
|
|
|
|
|