...
Info |
---|
This article provides information on Livestatus queries. |
Status |
---|
colour | GreenBlue |
---|
title | LAST TESTED ON CHECKMK 2.0.0P1Applicable to all Checkmk versions |
---|
|
Panel |
---|
borderColor | black |
---|
bgColor | #f8f8f8 |
---|
title | Table of Contents |
---|
|
|
...
Code Block |
---|
|
OMD[mysite]~# ssh -t root@host ''su -site' "lq 'GET hosts\nColumns: name'" |
For TLS connection
...
e.g., 10.0.0.10:6999 Code Block |
---|
|
OMD[mysite]~# echo -e "GET hosts\nColumns: name\n"| openssl s_client -connect "ipaddress:port number" -ign_eof -quiet |
Note |
---|
Replace "ipaddress:port number" with a valid IP address and port number
e.g., 10.0.0.10:6999 |
.
For TLS connection with certificate verification
Code Block |
---|
|
OMD[mysite]~# echo -e "GET hosts\nColumns: name\n\n" | openssl s_client -CAfile /tmp/s1.pem -verify 3 -quiet -verify_hostname s1 -verify_return_error -connect "ipaddress:port number" 2>/dev/null |
...
Replace /tmp/s1.pem with the site name and s1 with the name of the site |
.
For Plain text
Code Block |
---|
|
OMD[mysite]~# echo -e "GET hosts\nColumns: name\n" | nc -q1 "ip address" "port number"
OMD[mysite]~# telnet "ip address" "port number" |
...