pynagNagios 配置和插件管理
pynag (Python Nagios Modules) 提供了一個(gè) Python 工具用來在程序中處理 Nagios 配置文件維護(hù)和插件開發(fā)。
示例代碼:
from pynag import Model # Get all hosts all_hosts = Model.Host.objects.all for i in all_hosts: print i.host_name, i.contacts
評論
圖片
表情
下載APPpynag (Python Nagios Modules) 提供了一個(gè) Python 工具用來在程序中處理 Nagios 配置文件維護(hù)和插件開發(fā)。
示例代碼:
from pynag import Model # Get all hosts all_hosts = Model.Host.objects.all for i in all_hosts: print i.host_name, i.contacts