2013/06/04

マップのURLを target=_blank で開く

(1)[ZABBIX_WEBROOT]/js/menu.js line 449行目にコードを追加
else {
if (!is_null(this.a_config[1]) && (this.a_config[1].indexOf('javascript') == -1)
&& !(!is_null(this.a_config[2]) || this.a_config[2] == 'nosid')) {
var url = new Curl(this.a_config[1]);
this.a_config[1] = url.getUrl();
}
// ADD-S
if(this.a_config[1] && (this.a_config[1].substr(0, 4)=='ext:')) {
this.a_config[1] = this.a_config[1].substr(4);
el.setAttribute('target', '_blank');
}
// ADD-E
el.setAttribute('href', this.a_config[1]);
if (this.a_config[2] && this.a_config[2]['tw']) {
el.setAttribute('target', this.a_config[2]['tw']);
}
}

(2)MAPのURLの左にext:を加える。
例 ext:http://xxx.yyyy.co.jp/

ref. https://www.zabbix.com/forum/showthread.php?t=23898