The HTTP Parse check allows you to monitor, track, and graph arbitrary values provided by a web server. It is commonly used for monitoring and tracking internal server metrics like server load, CPU utilization, available RAM, and disk space.
The check makes an HTTP GET call to a URL you specify and parses the JSON or text returned. It looks for fields you specify and then compares each value for those fields to an acceptable range you set for each. The check will PASS if the HTTP check returns a status code greater than 200 and less than 399 and all fields are present and within the ranges you specified.
The HTTP Parse check can be easily used in conjunction with the following system information utilities that are freely available:
You can, of course, have the check parse any URL, including your custom code. The check will parse plain text or JSON formatted responses. If the format is plain text, it should be in the format name:value. For example:
White space around the value will be ignored.
If the response is in JSON format deep linking is available using a flattened path. For example, in this JSON:
{ "mount": [ { "filesystem": "/dev/sda1", "free": "99" }, { "filesystem": "/dev/sda2", "free": "99" } ] }
We can monitor the free space on these devices with two paths: mount.0.free and mount.1.free
NodePing's HTTP Parse checks are commonly used to track things like CPU usage, load averages, disk space, and available RAM. It's an excellent way to track the inner workings of your server and its processes but the check is also so flexible, you can use it to literally track anything on your server. Want to track how many emails you're sending each hour? Or maybe monitor how many users are logged in?
To set up an HTTP Parse check,
Common usage:
To monitor numeric values of any type available on your server.
IPv6 URLs require the bracket formatting such as http://[2606:c700:4020:11::53:4a3b]/
SSL/TLS certs are not validated by this check so it will work fine for expired and self-signed certs. You'll want to add an SSL check to verify your SSL certs and get warnings before they expire.
SSLv3/TLS1.0 are not supported.