pynag 0.4.6 发布,该版本对命令行接口进行多项改进,新的 Utils 模块以及体验版的 Perfdata 分析。

pynag (Python Nagios Modules) 提供了一个 Python 工具用来在程序中处理 Nagios 配置文件维护和插件开发。

示例代码:

from pynag import Model

# Get all hosts
all_hosts = Model.Host.objects.all
for i in all_hosts:
print i.host_name, i.contacts

相关文章:

  • 2022-01-10
  • 2022-12-23
  • 2022-12-23
  • 2021-05-27
  • 2022-12-23
  • 2021-12-01
  • 2022-12-23
  • 2021-10-20
猜你喜欢
  • 2021-04-07
  • 2022-12-23
  • 2021-08-25
  • 2021-07-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案