How to query comments via URL extinfo.cgi
Posted: Thu Feb 20, 2014 10:48 am
Hi,
I am trying to pull comments out for hosts and services using a custom built webpage. This page uses jsonstatus.cgi to query Nagios and extract the required information to display in the format we prefer.
That is all working fine, but im struggling with how to extract the comments without resulting to screenscraping the host comment page via nagios/cgi-bin/extinfo.cgi?type=3
I was wondering if there are any parameters I can pass to extinfo.cgi to pull out the host/service defined if possible? all I get from the jsonstatus.cgi query is that the service has a comment assigned, it doesnt include what that comment actually said.
Hope that makes sense.
We are running Nagios Core 3.2.3
Thanks
Darren
I am trying to pull comments out for hosts and services using a custom built webpage. This page uses jsonstatus.cgi to query Nagios and extract the required information to display in the format we prefer.
That is all working fine, but im struggling with how to extract the comments without resulting to screenscraping the host comment page via nagios/cgi-bin/extinfo.cgi?type=3
I was wondering if there are any parameters I can pass to extinfo.cgi to pull out the host/service defined if possible? all I get from the jsonstatus.cgi query is that the service has a comment assigned, it doesnt include what that comment actually said.
Hope that makes sense.
We are running Nagios Core 3.2.3
Thanks
Darren