pynag 0.8.2 发布,此版本包括了各种更新和 bug 修复,增强了对 Shinken 的支持,还有一些性能调整。
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
pynag 的下载地址:请点这里
