用于livestatus集成的python库
pyLivestatus的Python项目详细描述
PyliveStatus
这个包允许通过python访问Check MK Livestatus
用法
frompyLivestatusimportLivestatuslivestatus=Livestatus('127.0.0.1','6557')# host and port of livestatus socketlivestatus.get_hosts()# return array with details for all hostslivestatus.get_host('my_host')# return details for host 'my_host'livestatus.get_services('my_host')# return details for every service of host 'my_host'