Project

General

Profile

Actions

tickets #162761

closed

Extend zypper metrics

Added by crameleon 5 months ago. Updated 4 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 #1

Updated by crameleon 5 months ago

  • Category set to Monitoring
  • Private changed from Yes to No
Actions #2

Updated by cboltz 5 months ago

Searching for *.rpmnew and *.rpmsave files can be done with rpmconfigcheck (needs root permissions because it wants to write /var/adm/rpmconfigcheck*) - no need to implement something with find.

Actions #3

Updated by pratyushd 4 months ago

I wish to work on this. I have made a ticket regarding joining heroes.

Actions #4

Updated by crameleon 4 months ago

  • Assignee set to pratyushd
Actions #5

Updated by pratyushd 4 months ago

  • Status changed from New to In Progress
Actions #7

Updated by pratyushd 4 months ago

  • Status changed from In Progress to Resolved
Actions #8

Updated by pratyushd 4 months ago

Actions #9

Updated by crameleon 3 months ago

Actions

Also available in: Atom PDF