**check\_lexio** monitors a car or van rental agency run on Lexio Rent, through the public Lexio Rent API v1. It turns operational data into Checkmk services: a van overdue for its service, a customer who has not brought a car back, a reservation that was never picked up. [Lexio Rent](https://lexio.rent/logiciel-location-voiture) is rental management software for professional car, van and two-wheeler rental companies. ### Modes - `api`: the API answers with this key; response time (perfdata). - `maintenance`: overdue and upcoming services on active vehicles (oil change, tyres, technical inspection...). An overdue service that blocks rentals is CRITICAL. - `late-returns`: rentals in progress whose return time has passed by more than `--grace` minutes. - `missed-pickups`: reservations whose pick-up time has passed without a pick-up. Single Python 3.9\+ file, standard library only, read-only. Exit codes and performance data follow the Monitoring Plugins guidelines. ### Setup 1. Install and enable the MKP: `mkp add lexio-0.1.0.mkp` then `mkp enable lexio`. 2. Create an API key in Lexio (Settings → Developer → API tokens, read scopes only) and store it in a file readable by the site user, e.g. `~/etc/lexio-api-key`. 3. Add a rule **Setup → Services → Other services → Integrate Nagios plugins** with the command line `$USER2$/check_lexio -k ~/etc/lexio-api-key -m maintenance` (one rule per mode). The `CT_INSPECTION` line of the maintenance check is the French roadworthiness test. To budget it across a fleet, Lexio publishes a free [technical inspection price comparator](https://lexio.rent/outils/prix-controle-technique) (in French). Documentation of the API: [docs.lexio.rent](https://docs.lexio.rent). Source code, tests and changelog: [GitHub](https://github.com/lexio-rent-git/lexio-monitoring-plugins). License GPL v2 or later.