简体   繁体   English

如何将 Nagios 配置导入 Sensu?

[英]How to import Nagios config to Sensu?

I have nagios config and Sensu test environment.我有 nagios 配置和 Sensu 测试环境。 And I want to add all nagios check to Sensu.我想将所有 nagios 检查添加到 Sensu。 Should I convert nagios configs to JSON or there are any solution, probably plugin for Sensu?我应该将 nagios 配置转换为 JSON 还是有任何解决方案,可能是 Sensu 的插件?

Thanks.谢谢。

The check format is completely different for Sensu and Nagios. Sensu 和 Nagios 的检查格式完全不同。 The scripts are the same, but the check definitions differ completely.脚本相同,但检查定义完全不同。

If you're hand crafting JSON, it's going to be quite painful.如果您正在手工制作 JSON,那将非常痛苦。 I would highly recommend investing in a configuration management tool like Puppet, Chef or Ansible to manage the check configurations for you programmatically.我强烈建议投资配置管理工具,如 Puppet、Chef 或 Ansible,以编程方式为您管理检查配置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM