Bug 25598 - bad path for temp files in nrpe
Summary: bad path for temp files in nrpe
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: All Linux
Priority: Normal minor
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA7-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2019-10-23 09:29 CEST by eric gerbier
Modified: 2019-11-02 17:55 CET (History)
5 users (show)

See Also:
Source RPM: nrpe-3.2.1-3.mga7.src.rpm
CVE:
Status comment:


Attachments

Description eric gerbier 2019-10-23 09:29:34 CEST
Description of problem:
I am using the NRPE daemon for Nagios, and on mageia 7, I can see the following warning :

Oct 23 08:30:54 sxcom2 systemd-tmpfiles[33733]: [/usr/lib/tmpfiles.d/nrpe.conf:1] Line references path below legacy directory /var/run/, updating /var/run/nrpe → /run/nrpe; please update the tmpfiles.d/ drop-in file accordingly.

Version-Release number of selected component (if applicable):
nrpe-3.2.1-3.mga7

How reproducible:
all the time

Steps to Reproduce:
1. systemctl status systemd-tmpfiles-clean.service
2.
3.
Comment 1 Lewis Smith 2019-10-23 13:37:54 CEST
Thank you Eric for this report.

Assigning to 'nrpe' maintainer dlucio.

Assignee: bugsquad => luis.daniel.lucio

Comment 2 David GEIGER 2019-10-23 17:56:09 CEST
Please test nrpe-3.2.1-3.1.mga7 in Core/Updates_testing repo! (when landing in repo)

CC: (none) => geiger.david68210

Comment 3 eric gerbier 2019-10-24 17:27:03 CEST
looks good for me

thanks !
Comment 4 David GEIGER 2019-10-25 06:37:07 CEST
Assigning to QA,


Advisory:
========================

Since latest systemd tmpfiles dir was moved from /var/run to /run, so this update fixes the tmpfiles location in our nrpe package.

========================

Packages in 7/core/updates_testing:
========================
nrpe-3.2.1-3.1.mga7.i586.rpm
nagios-check_nrpe-3.2.1-3.1.mga7.i586.rpm

nrpe-3.2.1-3.1.mga7.x86_64.rpm
nagios-check_nrpe-3.2.1-3.1.mga7.x86_64.rpm

Source RPM: 
========================
nrpe-3.2.1-3.1.mga7.src.rpm

Assignee: luis.daniel.lucio => qa-bugs

Comment 5 Herman Viaene 2019-10-29 17:04:13 CET
MGA7-64 Plasma on Lenovo B50
No installation issues.
At CLI:
# systemctl status systemd-tmpfiles-clean.service
● systemd-tmpfiles-clean.service - Cleanup of Temporary Directories
   Loaded: loaded (/usr/lib/systemd/system/systemd-tmpfiles-clean.service; static; vendor preset: disabled)
   Active: inactive (dead)
     Docs: man:tmpfiles.d(5)
           man:systemd-tmpfiles(8)

# systemctl start systemd-tmpfiles-clean.service

# systemctl status systemd-tmpfiles-clean.service
● systemd-tmpfiles-clean.service - Cleanup of Temporary Directories
   Loaded: loaded (/usr/lib/systemd/system/systemd-tmpfiles-clean.service; static; vendor preset: disabled)
   Active: inactive (dead) since Tue 2019-10-29 16:50:04 CET; 5s ago
     Docs: man:tmpfiles.d(5)
           man:systemd-tmpfiles(8)
  Process: 19255 ExecStart=/usr/bin/systemd-tmpfiles --clean (code=exited, status=0/SUCCESS)
 Main PID: 19255 (code=exited, status=0/SUCCESS)

okt 29 16:50:04 mach5.hviaene.thuis systemd[1]: Starting Cleanup of Temporary Directories...
okt 29 16:50:04 mach5.hviaene.thuis systemd[1]: systemd-tmpfiles-clean.service: Succeeded.
okt 29 16:50:04 mach5.hviaene.thuis systemd[1]: Started Cleanup of Temporary Directories.
The last statement  on the process makes me believe it OK, can someone else onfirm???

CC: (none) => herman.viaene

Comment 6 David GEIGER 2019-11-01 07:55:52 CET
Confirmed here that now nrpe.service work as expected on my mga7 for x86_64:


# systemctl status nrpe.service 
● nrpe.service - Nagios Remote Plugin Executor
   Loaded: loaded (/usr/lib/systemd/system/nrpe.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
     Docs: http://www.nagios.org/documentation


# systemctl start nrpe.service     

# systemctl status nrpe.service 
● nrpe.service - Nagios Remote Plugin Executor
   Loaded: loaded (/usr/lib/systemd/system/nrpe.service; disabled; vendor preset: disabled)
   Active: active (running) since Fri 2019-11-01 07:50:50 CET; 2s ago
     Docs: http://www.nagios.org/documentation
 Main PID: 13054 (nrpe)
   Memory: 712.0K
   CGroup: /system.slice/nrpe.service
           └─13054 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -f

nov. 01 07:50:50 david.david systemd[1]: Started Nagios Remote Plugin Executor.
nov. 01 07:50:50 david.david nrpe[13054]: Starting up daemon
nov. 01 07:50:50 david.david nrpe[13054]: Server listening on 0.0.0.0 port 5666.
nov. 01 07:50:50 david.david nrpe[13054]: Server listening on :: port 5666.
nov. 01 07:50:50 david.david nrpe[13054]: Listening for connections on port 5666
nov. 01 07:50:50 david.david nrpe[13054]: Allowing connections from: 127.0.0.1,::1

Whiteboard: (none) => MGA7-64-OK

Comment 7 Thomas Andrews 2019-11-01 14:11:54 CET
Validating. Advisory in Comment 4.

Keywords: (none) => validated_update
CC: (none) => andrewsfarm, sysadmin-bugs

Thomas Backlund 2019-11-02 16:37:33 CET

CC: (none) => tmb
Keywords: (none) => advisory

Comment 8 Mageia Robot 2019-11-02 17:55:53 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2019-0188.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.