appfeed.cgi - Xymon CGI feeder for Smartphone apps
appfeed.cgi [options]
appfeed.cgi is invoked as a CGI script via the appfeed.sh CGI wrapper.
appfeed.cgi is optionally passed a QUERY_STRING environment variable with the "filter=FILTER" parameter. FILTER is a filter for the "xymondboard" command sent to xymond(8) daemon. These filters are described in detail in the xymon(1) manual. Typically, the filter will specify hosts found on a specific (sub)page to be returned, e.g. "filter=page=webservers" will cause appfeed.cgi to only return hosts that are present on the "webservers" page in Xymon.
If no filter is specified, appfeed.cgi returns data for all red, yellow or purple statuses (equivalent to the data present on the "All non-green" page), or if invoked with the "--critical" option it returns data from the "Critical systems" page.
The output is an XML document with the current status of the selected hosts/services.
With "host=HOSTNAME&test=TESTNAME" in the QUERY_STRING, appfeed.cgi answers with that one status only, whatever its colour, and adds its full message text as a "Message" element: what a status page shows, for a client that cannot afford the page itself. HOSTNAME and TESTNAME are matched exactly, and a name with a character Xymon does not allow in a host name is refused. A "filter" and the --critical and --access options still apply.
xymon(1), critical.cfg(5), xymon-webaccess(5)