Zabbix
ホスト名とIPアドレスを抽出するSQL†
抽出対象 | ホスト名とIPアドレス |
Where条件 | グループ番号 |
※グループ番号は"select * from groups;"で確認可能
SQL†
select hosts.hostid,hosts.host,interface.ip from (hosts inner join interface on hosts.hostid = interface.hostid) inner join hosts_groups on hosts.hostid=hosts_groups.hostid where hosts_groups.hostid = '番号';