使用方法:将此脚本放于nagios/share/nagiosStatusJson.php 在浏览器访问:http://username:password@nagios_server/nagios/nagiosStatusJson.php?para=[info|hoststatus|servicestatus|define host|define service]