mirror of https://github.com/Icinga/icinga2.git
parent
52fb177461
commit
a9c16fa551
|
@ -2486,8 +2486,8 @@ object configuration.
|
||||||
> **Note**
|
> **Note**
|
||||||
>
|
>
|
||||||
> All Livestatus queries require an additional empty line as query end identifier.
|
> All Livestatus queries require an additional empty line as query end identifier.
|
||||||
> The `unixcat` tool is either available by the MK Livestatus project or as separate
|
> The `nc` tool (`netcat`) provides the `-U` parameter to communicate using
|
||||||
> binary.
|
> a unix socket.
|
||||||
|
|
||||||
There also is a Perl module available in CPAN for accessing the Livestatus socket
|
There also is a Perl module available in CPAN for accessing the Livestatus socket
|
||||||
programmatically: [Monitoring::Livestatus](http://search.cpan.org/~nierlein/Monitoring-Livestatus-0.74/)
|
programmatically: [Monitoring::Livestatus](http://search.cpan.org/~nierlein/Monitoring-Livestatus-0.74/)
|
||||||
|
@ -2495,7 +2495,7 @@ programmatically: [Monitoring::Livestatus](http://search.cpan.org/~nierlein/Moni
|
||||||
|
|
||||||
Example using the unix socket:
|
Example using the unix socket:
|
||||||
|
|
||||||
# echo -e "GET services\n" | unixcat /var/run/icinga2/cmd/livestatus
|
# echo -e "GET services\n" | /usr/bin/nc -U /var/run/icinga2/cmd/livestatus
|
||||||
|
|
||||||
Example using the tcp socket listening on port `6558`:
|
Example using the tcp socket listening on port `6558`:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue