Livestatus queries over network
For SSH connection
ssh -t root@host ''su -site' "lq 'GET hosts\nColumns: name'"
For TLS connection
echo -e "GET hosts\nColumns: name\n"| openssl s_client -connect localhost:6999 -ign_eof -quiet
For Plain text
Related articles