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 is rental management software for professional car, van and two-wheeler rental companies.
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.
mkp add lexio-0.1.0.mkp then mkp enable lexio.~/etc/lexio-api-key.$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 (in French).
Documentation of the API: docs.lexio.rent. Source code, tests and changelog: GitHub. License GPL v2 or later.