On my OpsView/Nagios journey my next task is to grab some XML from a URL and return critical if a certain node is found.
- Run the following as root to install the xpath module:
- Run the following:
sudo su nagios
chmod +x check_http_xpath.pl
- To test the plugin you can run something like:
./check_http_xpath.pl -H server.name -u /healthcheck -c ‘/HealthCheck/Summary==Passed’