Project

General

Profile

Actions

tickets #162761

closed

Extend zypper metrics

Added by crameleon 6 months ago. Updated 5 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Monitoring
Target version:
-
Start date:
2024-06-23
Due date:
% Done:

0%

Estimated time:

Description

Our zypper-metrics.{timer,service} collects pending updates and reboots already.
It'd be great to extend the script to also collect:

  • number of orphaned packages
  • number of .rpmnew files in /etc
  • number of .rpmsave files in /etc

The zypper pa --orphaned unfortunately query requires root, hence a sudo rule for the monitor user would be needed. The other two can be a find call either as root (also using a sudo rule) or with cap_dac_read_search (probably less secure as it'd expose the whole file system) to also cover files in directories which aren't world readable.


Related issues 2 (2 open0 closed)

Related to openSUSE admin - tickets #164913: Extended graphs for zypperIn Progresspratyushd2024-08-04

Actions
Precedes openSUSE admin - tickets #166484: Alerting for all zypper metrics New2024-09-07

Actions
Actions

Also available in: Atom PDF