配置文件启动Nagios服务时出错

时间:2019-05-11 17:58:39

标签: core nagios

取消评论exports.postFunction = (req, res) => { var response; try{ fetch('https://someapi', { method: 'post', body: JSON.stringify(req.body), headers: {'Content-Type': 'application/json'}, }) .then(res => res.json()) .then(json => response = JSON.stringify(json)); // like this } catch(err) { console.error("999999999"+err); } console.log("Here I should be able to get response of the invoked rest api"); } 时,我无法启动Nagios服务。

nagios.cfg的作业失败,因为控制过程退出并显示错误代码。有关详细信息,请参见nagios.servicesystemctl status nagios.service

2 个答案:

答案 0 :(得分:0)

使用以下命令验证您的Nagios配置(当然,使用正确的路径)。它将指出您在nagios.cfg中的错误。

      <h1 id="blogheader"></h1>
      <img id="blogimage" src="" alt="">
      <p id="blogbody"></p>
  </div>

答案 1 :(得分:0)

您应该确保该主机上的max_check_attempts是一个数字,也许是造成输入错误的原因

相关问题