check_http_xpath.pl

check_http_xpath

The check_http_xpath.pl plugin can be used to check for the presence or absence of specific information in an XML document which is fetched via http. For example, such an XML document may be an RSS feed or the Tomcat XML status page. The text to be searched for is specified in the XML XPATH format on the command-line. Multiple XPATH checks can be done in one operation.

Checks can be any of

  • == 
  • !=
  • >
  • =
  • =~
  • !~

If no operator is specified, the XPATH must simply exist.

Example: check_http_xpath.pl -H www.us-cert.gov -u /channels/techalerts.rdf -w '/rdf:RDF/item/title!~linux' -s -i