我正在尝试configurationCheck_MK 1.2.8p20(启用多站点)以使用BI通知。 我已经build立了服务帐户,让我的聚合工作,但检查,我收到:
ERROR: Invalid json response (invalid syntax (<string>, line 1)): <!DOCTYPE HTML>
由agg检查产生的长输出是login页面的HTML,如下所示:
<html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <link rel="shortcut icon" href="images/favicon.ico" type="image/ico"> <title>Check_MK Multisite Login</title> <link rel="stylesheet" type="text/css" href="check_mk-1.2.8p20.css" /> <link rel="stylesheet" type="text/css" href="pages-1.2.8p20.css" /> <link rel="stylesheet" type="text/css" href="login-1.2.8p20.css" /> <!--[if IE]> <link rel="stylesheet" type="text/css" href="ie-1.2.8p20.css" /> <![endif]--> <script type="text/javascript" src="js/checkmk_min-1.2.8p20.js"></script> </head> <body class="main"><script language="javascript"> if(top != self) { window.top.location.href = location; } </script> <div id="login"> <img id="login_window" src="images/login_window.png" /> <div id="version">1.2.8p20</div> <form id="form_login" name="login" class="login" action="login.py" method="POST" enctype="multipart/form-data"> <input type="hidden" name="filled_in" value="login" /><input type="hidden" name="_login" value="1" /><input type="hidden" name="_origtarget" value="view.py?aggr_name=THN_Status&amp;output_format=python&amp;view_name=aggr_single_api" /><label id="label_user" class="legend" for="_username">Username:</label> <br /> <input type="text" class="text" value="" name="_username" id="input_user" /> <label id="label_pass" class="legend" for="_password">Password:</label><br /> <input type="password" class="text" value="" name="_password" id="input_pass" /> <div id="button_text"><label for="_login" class="image_button"><input onfocus="if (this.blur) this.blur();" type="submit" name="_login" id="_login" value="Login" class="" /> </label></div> <div id="foot">Version: 1.2.8p20 - © <a href="http://mathias-kettner.de>Mathias Kettner</a><br /><br />You can use, modify and distribute Check_MK under the terms of the <a href="http://mathias-kettner.de/gpl.html>GNU GPL Version 2</a>.</div> </form> </div> <script language="javascript" type="text/javascript"> <!-- if (document.login._username) { document.login._username.focus(); document.login._username.select(); } // --> </script> </body></html>
编辑 – 补充说明更改为基于表单的身份validation,login仍“成功”,但现在正在接收:
ERROR: Aggregation "aggname" does not exist or user is not permitted
我发现在BI通知上很less有文档,并且很好奇,如果有人已经得到这个正常工作。
谢谢