exec { "icinga2-feature-${feature}":
path => '/bin:/usr/bin:/sbin:/usr/sbin',
unless => "readlink /etc/icinga2/features-enabled/${feature}.conf",
- command => "i2enfeature ${feature}",
+ command => "icinga2-enable-feature ${feature}",
require => [ Package['icinga2'] ],
notify => Service['icinga2']
}
third-party/mmatch/Makefile
tools/Makefile
tools/migration/Makefile
-tools/i2enfeature
+tools/icinga2-enable-feature
tools/mkembedconfig/Makefile
])
/**
* The features-available directory contains a number of configuration
* files for features which can be enabled and disabled using the
- * i2enfeature / i2disfeature tools. These two tools work by creating
+ * icinga2-enable-feature / icinga2-disable-feature tools. These two tools work by creating
* and removing symbolic links in the features-enabled directory.
*/
include "features-enabled/*.conf"
This include directive takes care of including the configuration files for all
-the features which have been enabled with `i2enfeature`. See
+the features which have been enabled with `icinga2-enable-feature`. See
[Enabling/Disabling Features](#features) for more details.
/**
By default Icinga 2 does not write `status.dat` and `objects.cache` files which are used
by the Classic UI. The command pipe is also not enabled by default.
-You can use i2enfeature to enable these features:
+You can use icinga2-enable-feature to enable these features:
- # i2enfeature statusdata
- # i2enfeature compatlog
- # i2enfeature command
+ # icinga2-enable-feature statusdata
+ # icinga2-enable-feature compatlog
+ # icinga2-enable-feature command
After enabling these features you will need to restart Icinga 2:
`/etc/icinga2/features-available/ido-mysql.conf`. You will need to update the
database credentials in this file.
-You can enable the `ido-mysql` feature configuration file using `i2enfeature`:
+You can enable the `ido-mysql` feature configuration file using `icinga2-enable-feature`:
- # i2enfeature ido-mysql
+ # icinga2-enable-feature ido-mysql
Module 'ido-mysql' was enabled.
Make sure to restart Icinga 2 for these changes to take effect.
re-implementation of the Livestatus protocol which is compatible with MK
Livestatus.
-You can enable Livestatus using i2enfeature:
+You can enable Livestatus using icinga2-enable-feature:
- # i2enfeature livestatus
+ # icinga2-enable-feature livestatus
After that you will have to restart Icinga 2:
Icinga 2 provides configuration files for some commonly used features. These
are installed in the `/etc/icinga2/features-available` directory and can be
-enabled and disabled using the `i2enfeature` and `i2disfeature` tools,
+enabled and disabled using the `icinga2-enable-feature` and `icinga2-disable-feature` tools,
respectively.
-The `i2enfeature` tool creates symlinks in the `/etc/icinga2/features-enabled`
+The `icinga2-enable-feature` tool creates symlinks in the `/etc/icinga2/features-enabled`
directory which is included by default in the example configuration file.
You can view a list of available feature configuration files:
- # i2enfeature
- Syntax: i2enfeature <feature>
+ # icinga2-enable-feature
+ Syntax: icinga2-enable-feature <feature>
Enables the specified feature.
Available features: statusdata
-Using the `i2enfeature` command you can enable features:
+Using the `icinga2-enable-feature` command you can enable features:
- # i2enfeature statusdata
+ # icinga2-enable-feature statusdata
Module 'statusdata' was enabled.
Make sure to restart Icinga 2 for these changes to take effect.
-You can disable features using the `i2disfeature` command:
+You can disable features using the `icinga2-disable-feature` command:
- # i2disfeature statusdata
+ # icinga2-disable-feature statusdata
Module 'statusdata' was disabled.
Make sure to restart Icinga 2 for these changes to take effect.
> **Note**
>
-> The `i2enfeature` and `i2disfeature` commands do not restart Icinga 2.
+> The `icinga2-enable-feature` and `icinga2-disable-feature` commands do not restart Icinga 2.
In order to enable the `ExternalCommandListener` configuration use the
following command and restart Icinga 2 afterwards:
- # i2enfeature command
+ # icinga2-enable-feature command
Icinga 2 creates the command pipe file as `/var/run/icinga2/cmd/icinga2.cmd`
using the default configuration.
The default template is already provided with the Icinga 2 feature configuration
which can be enabled using
- # i2enfeature perfdata
+ # icinga2-enable-feature perfdata
By default all performance data files are rotated in a 15 seconds interval into
the `/var/spool/icinga2/perfdata/` directory as `service-perfdata.<timestamp>`.
You can enable the feature using
- # i2enfeature graphite
+ # icinga2-enable-feature graphite
The `GraphiteWriter` object expects the Graphite Carbon Cache socket listening
at `127.0.0.1` on port `2003` by default.
the `StatusDataWriter` object which dumps all configuration objects and
status updates in a regular interval.
- # i2enfeature statusdata
+ # icinga2-enable-feature statusdata
Icinga 1.x Classic UI requires this data set as part of its backend.
The `CompatLogger` object can be enabled with
- # i2enfeature compatlog
+ # icinga2-enable-feature compatlog
By default, the Icinga 1.x log file called `icinga.log` is located
in `/var/log/icinga2/compat`. Rotated log files are moved into
/**
* The features-available directory contains a number of configuration
* files for features which can be enabled and disabled using the
- * i2enfeature / i2disfeature tools. These two tools work by creating
+ * icinga2-enable-feature / icinga2-disable-feature tools. These two tools work by creating
* and removing symbolic links in the features-enabled directory.
*/
include "features-enabled/*.conf"
if [ ${1:-0} -eq 1 ]
then
# initial installation, enable ido-mysql feature
- %{_sbindir}/i2enfeature ido-mysql
+ %{_sbindir}/icinga2-enable-feature ido-mysql
fi
%postun ido-mysql
if [ "$1" = "0" ]; then
# deinstallation of the package - remove feature
- test -x %{_sbindir}/i2disfeature && %{_sbindir}/i2disfeature ido-mysql
+ test -x %{_sbindir}/icinga2-disable-feature && %{_sbindir}/icinga2-disable-feature ido-mysql
fi
%post classicui-config
if [ ${1:-0} -eq 1 ]
then
# initial installation, enable features
- %{_sbindir}/i2enfeature statusdata
- %{_sbindir}/i2enfeature compatlog
- %{_sbindir}/i2enfeature command
+ %{_sbindir}/icinga2-enable-feature statusdata
+ %{_sbindir}/icinga2-enable-feature compatlog
+ %{_sbindir}/icinga2-enable-feature command
fi
%postun classicui-config
if [ "$1" = "0" ]; then
# deinstallation of the package - remove feature
- test -x %{_sbindir}/i2disfeature && %{_sbindir}/i2disfeature statusdata
- test -x %{_sbindir}/i2disfeature && %{_sbindir}/i2disfeature compatlog
- test -x %{_sbindir}/i2disfeature && %{_sbindir}/i2disfeature command
+ test -x %{_sbindir}/icinga2-disable-feature && %{_sbindir}/icinga2-disable-feature statusdata
+ test -x %{_sbindir}/icinga2-disable-feature && %{_sbindir}/icinga2-disable-feature compatlog
+ test -x %{_sbindir}/icinga2-disable-feature && %{_sbindir}/icinga2-disable-feature command
fi
%files
%{_bindir}/icinga2-migrate-config
%{_bindir}/icinga2-build-ca
%{_bindir}/icinga2-build-key
-%{_sbindir}/i2enfeature
-%{_sbindir}/i2disfeature
+%{_sbindir}/icinga2-enable-feature
+%{_sbindir}/icinga2-disable-feature
%exclude %{_libdir}/%{name}/libdb_ido_mysql*
%{_libdir}/%{name}
%{_datadir}/%{name}
-i2enfeature
+icinga2-enable-feature
migration \
mkembedconfig
-sbin_SCRIPTS = i2enfeature
+sbin_SCRIPTS = icinga2-enable-feature
CLEANFILES = $(sbin_SCRIPTS)
-EXTRA_DIST = i2enfeature.in
+EXTRA_DIST = icinga2-enable-feature.in
install-exec-hook:
- $(LN_S) -f i2enfeature $(DESTDIR)$(sbindir)/i2disfeature
+ $(LN_S) -f icinga2-enable-feature $(DESTDIR)$(sbindir)/icinga2-disable-feature
TOOL=$(basename -- $0)
-if [ "$TOOL" != "i2enfeature" -a "$TOOL" != "i2disfeature" ]; then
- echo "Invalid tool name ($TOOL). Should be 'i2enfeature' or 'i2disfeature'."
+if [ "$TOOL" != "icinga2-enable-feature" -a "$TOOL" != "icinga2-disable-feature" ]; then
+ echo "Invalid tool name ($TOOL). Should be 'icinga2-enable-feature' or 'icinga2-disable-feature'."
exit 1
fi
if [ -z "$1" ]; then
echo "Syntax: $0 <feature>"
- if [ "$TOOL" = "i2enfeature" ]; then
+ if [ "$TOOL" = "icinga2-enable-feature" ]; then
echo "Enables the specified feature."
else
echo "Disables the specified feature."
exit 1
fi
-if [ "$TOOL" = "i2enfeature" ]; then
+if [ "$TOOL" = "icinga2-enable-feature" ]; then
if [ -e $ICINGA2CONFDIR/features-enabled/$FEATURE.conf ]; then
echo "The feature '$FEATURE' is already enabled."
exit 0
ln -s ../features-available/$FEATURE.conf $ICINGA2CONFDIR/features-enabled/
echo "Module '$FEATURE' was enabled."
-elif [ "$TOOL" = "i2disfeature" ]; then
+elif [ "$TOOL" = "icinga2-disable-feature" ]; then
if [ ! -e $ICINGA2CONFDIR/features-enabled/$FEATURE.conf ]; then
echo "The feature '$FEATURE' is already disabled."
exit 0