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 = '番号';

トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2022-06-30 (木) 01:40:11