Using Data Parsers to monitor the status of service from the website

Use NetCrunch data parsers to get information from dedicated website about system status on example of Gitlab.

Why parsing a website

Many service providers like gitlab have dedicated websites with statuses of various services they provide. If something goes wrong, usually there's information on the website that state of particular service "is not okay." NetCrunch can parse these websites, get the requested statuses, and generate alerts.

Scenario

This article will show you how to parse statuses of gitlab located on gitlab status page and be alerted on issues related to this service performance.

Creating Data Parser

  1. First of all, add a new parser to the Data Parsers and select XPath/DOM type. This article explains how to do it.

  2. Open up the web browser (this article features chrome, but any recent browser will do) and head to status.gitlab.com.

  3. Right click on the green 'OK' and select 'inspect' inspect element

  4. In the console, right click on the marked line and select Xpath - just like on the screen below. copy xpath

  5. Head back to the parser, add new status object and paste the path you have just copied to the status object you have just created

  6. Redo steps 3 - 5 for all elements of gitlab that you want to monitor and save the parser.

REST HTTP sensor with a parser

  1. Open up node settings of status.gitlab.com

  2. Add REST HTTP sensor

  3. Type "/" as URL path

  4. Select Follow redirects option.

  5. Select Data format for your parser and click the test icon located in the top right corner. configuration

  6. As you can see in the sensor result - status has been detected and monitored. Right now you can set an alert based on status - to monitor when the 'OK' status changes to anything else. parsing result

data parsersrestrest sensorwebsite monitoringwebsite parsing

NetCrunch. Answers not just pictures

Maps → Alerts → Automation → Intelligence