mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Rename directory for Icinga socket files.
This commit is contained in:
parent
4916dea147
commit
2a051cdea4
@ -35,8 +35,8 @@ install-data-local:
|
||||
$(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
|
||||
|
||||
|
@ -50,7 +50,7 @@ void ExternalCommandListener::Start(void)
|
||||
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;
|
||||
}
|
||||
|
@ -93,7 +93,7 @@ String LivestatusListener::GetSocketPath(void) const
|
||||
{
|
||||
Value socketPath = m_SocketPath;
|
||||
if (socketPath.IsEmpty())
|
||||
return Application::GetLocalStateDir() + "/run/icinga2/rw/livestatus";
|
||||
return Application::GetLocalStateDir() + "/run/icinga2/cmd/livestatus";
|
||||
else
|
||||
return socketPath;
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ object LivestatusListener "livestatus-tcp" {
|
||||
|
||||
object LivestatusListener "livestatus-unix" {
|
||||
socket_type = "unix",
|
||||
socket_path = (Icinga2Prefix + "/var/run/icinga2/rw/livestatus")
|
||||
socket_path = (Icinga2Prefix + "/var/run/icinga2/cmd/livestatus")
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -34,7 +34,7 @@ EOF
|
||||
|
||||
|
||||
ECHO="/bin/echo"
|
||||
CMDFILE="/var/run/icinga2/rw/icinga2.cmd"
|
||||
CMDFILE="/var/run/icinga2/cmd/icinga2.cmd"
|
||||
HOST=""
|
||||
SERVICE=""
|
||||
RETURNCODE=0
|
||||
|
@ -41,7 +41,7 @@ OPTIONS* section:
|
||||
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
|
||||
@ -59,8 +59,8 @@ OPTIONS* section:
|
||||
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**
|
||||
>
|
||||
|
@ -498,14 +498,14 @@ Example:
|
||||
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user