How find KBA attached in all Services & Hosts

Hi All,
We try to fetch all KBA attached related hosts and service in nagios xi 5.8.6. Please help us.
We try to fetch all KBA attached related hosts and service in nagios xi 5.8.6. Please help us.
Support for Nagios products and services
https://support.nagios.com/forum/
echo "select host_name, action_url from tbl_host;" | mysql -uroot -pnagiosxi nagiosql
Thanks Sir, it is working fine