【发布时间】:2019-06-11 08:52:00
【问题描述】:
我尝试从check_mk with http-api "action=get_all_hosts" 获取我的所有主机
响应为json 格式,如下所示:
"{"result": {"some host name": {"attributes": {"tag_Chassis": "Vm", "tag_ServerFamily": "WindowsServer", "tag_criticality": "prod", "tag_Application": "AllApp", "alias": "some alias", "ipaddress": "172.21.x.x", "tag_networking": "lan"}, "hostname": "some host name", "path": "windows"}}"
现在我尝试格式化响应但没有成功。如何将结果格式化为具有所有属性的table?
【问题讨论】:
标签: json powershell nagios check-mk