Check rpm-lastactivity

Overview

Checks the timespan since the last rpm activity, for example due to a yum/dnf install, update or remove.

Fact Sheet

Check Plugin Download

https://github.com/Linuxfabrik/monitoring-plugins/tree/main/check-plugins/rpm-lastactivity

Check Interval Recommendation

Once a day

Can be called without parameters

Yes

Available for

Python 2, Python 3

Requirements

None

Help

usage: rpm-lastactivity [-h] [-V] [-c CRIT] [-w WARN]

Checks the timespan since the last rpm activity, for example due to a yum/dnf
install/update.

optional arguments:
  -h, --help            show this help message and exit
  -V, --version         show program's version number and exit
  -c CRIT, --critical CRIT
                        Set the critical threshold (in days). Default: 365
  -w WARN, --warning WARN
                        Set the warning threshold (in days). Default: 90

Usage Examples

./rpm-lastactivity --warning 90 --critical 365

Output:

Last rpm/yum/dnf activity is 10h 54m ago (so below the given thresholds 90D/365D).

States

  • WARN or CRIT if last activity is above a given threshold.

Perfdata / Metrics

There is no perfdata.

Credits, License