Monitoring check plugin that queries the RIPE database and checks whether its results match the expectations.
Possible options:
Option | Description | required? |
---|---|---|
-h | Help | no |
-s/--source : | The DB source to query | no (default: ripe) |
-o/--objecttype | The DB objecttype to query | yes |
-k/--key | The DB key to query | yes |
-e/--expected "<(attribute, [value, value2], match_mode), ...>" | The expected attributes | yes |
There are three different match modes for the expected values:
1. SINGLEVALUE: The expected value has to match the resulting value
2. EXACTLIST: The expacted values must exactly match the resulting values list
A possible usage could look like this:
python check_ripe_db.py -s "ripe" -o "aut-num" -k "as44163" -e "(status, Assigned, SINGLEVALUE), (source, [Filtered, Assigned], EXACTLIST)"
The plugin only needs the requests library to run. The library can be installed by running:
python -m pip install requests