$(MKDIR_P) $(DESTDIR)${localstatedir}/lib/${PACKAGE}/cluster/log
$(MKDIR_P) $(DESTDIR)${localstatedir}/lib/${PACKAGE}
$(MKDIR_P) $(DESTDIR)${localstatedir}/run/${PACKAGE}
- $(INSTALL) -m 775 -d $(COMMAND_OPTS) $(DESTDIR)${localstatedir}/run/${PACKAGE}/rw
- chmod g+s $(DESTDIR)${localstatedir}/run/${PACKAGE}/rw
+ $(INSTALL) -m 775 -d $(COMMAND_OPTS) $(DESTDIR)${localstatedir}/run/${PACKAGE}/cmd
+ chmod g+s $(DESTDIR)${localstatedir}/run/${PACKAGE}/cmd
EXTRA_DIST = $(icinga2doc_DATA) git_version.sh icinga2.spec
String ExternalCommandListener::GetCommandPath(void) const
{
if (m_CommandPath.IsEmpty())
- return Application::GetLocalStateDir() + "/run/icinga2/rw/icinga2.cmd";
+ return Application::GetLocalStateDir() + "/run/icinga2/cmd/icinga2.cmd";
else
return m_CommandPath;
}
{
Value socketPath = m_SocketPath;
if (socketPath.IsEmpty())
- return Application::GetLocalStateDir() + "/run/icinga2/rw/livestatus";
+ return Application::GetLocalStateDir() + "/run/icinga2/cmd/livestatus";
else
return socketPath;
}
object LivestatusListener "livestatus-unix" {
socket_type = "unix",
- socket_path = (Icinga2Prefix + "/var/run/icinga2/rw/livestatus")
+ socket_path = (Icinga2Prefix + "/var/run/icinga2/cmd/livestatus")
}
/**
ECHO="/bin/echo"
-CMDFILE="/var/run/icinga2/rw/icinga2.cmd"
+CMDFILE="/var/run/icinga2/cmd/icinga2.cmd"
HOST=""
SERVICE=""
RETURNCODE=0
object\_cache\_file |/var/cache/icinga2/objects.cache
status\_file |/var/cache/icinga2/status.dat
resource\_file |-
- command\_file |/var/run/icinga2/rw/icinga2.cmd
+ command\_file |/var/run/icinga2/cmd/icinga2.cmd
check\_external\_commands |1
interval\_length |60
status\_update\_interval |10
In order for commands to work you will need to grant the web server
write permissions for the command pipe:
- # chgrp www-data /var/run/icinga2/rw/icinga2.cmd
- # chmod 660 /var/run/icinga2/rw/icinga2.cmd
+ # chgrp www-data /var/run/icinga2/cmd/icinga2.cmd
+ # chmod 660 /var/run/icinga2/cmd/icinga2.cmd
> **Note**
>
library "compat"
object ExternalCommandListener "external" {
- command\_path = "/var/run/icinga2/rw/icinga2.cmd"
+ command\_path = "/var/run/icinga2/cmd/icinga2.cmd"
}
Attributes:
Name |Description
----------------|----------------
- command\_path |**Optional.** Path to the command pipe. Defaults to IcingaLocalStateDir + "/run/icinga2/rw/icinga2.cmd".
+ command\_path |**Optional.** Path to the command pipe. Defaults to IcingaLocalStateDir + "/run/icinga2/cmd/icinga2.cmd".
### CompatLogger