Nrpe creates invalid rsync setup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NRPE Charm |
Fix Released
|
High
|
Felipe Reyes |
Bug Description
Nrpe rev 63, using 18.04 everywhere.
I don't think the rsync config should be changed unless the nrpe charm's options require it.
Reproducer:
juju deploy nagios
juju deploy ubuntu
juju deploy nrpe
juju add-relation nagios nrpe
juju add-relation nrpe ubuntu
Wait until everything is done building...
juju ssh ubuntu/0 -- sudo reboot 1s
wait for reboot
juju run -u ubuntu/0 -- systemctl status rsync
● rsync.service - fast remote file copy program daemon
Loaded: loaded (/lib/systemd/
Active: failed (Result: exit-code) since Mon 2020-04-13 23:57:42 UTC; 20s ago
Process: 258 ExecStart=
Main PID: 258 (code=exited, status=1/FAILURE)
Apr 13 23:57:42 juju-7fe258-0 systemd[1]: Started fast remote file copy program daemon.
Apr 13 23:57:42 juju-7fe258-0 rsync[258]: Failed to parse config file: /etc/rsyncd.conf
Apr 13 23:57:42 juju-7fe258-0 rsyncd[258]: rsync: unable to stat config file "/etc/rsync-
Apr 13 23:57:42 juju-7fe258-0 rsyncd[258]: params.
Apr 13 23:57:42 juju-7fe258-0 rsyncd[258]: rsync error: syntax or usage error (code 1) at clientserver.
Apr 13 23:57:42 juju-7fe258-0 systemd[1]: rsync.service: Main process exited, code=exited, status=1/FAILURE
Apr 13 23:57:42 juju-7fe258-0 systemd[1]: rsync.service: Failed with result 'exit-code'.
This also causes:
juju ssh ubuntu/0 -- systemctl is-system-running
degraded (which is something many want to report on.
A simple workaround is to just disable rsync. (I believe this to be safe, but I haven't evaluated any actual nagios/nrpe functionality.
Related branches
- Xav Paice (community): Approve
- Canonical IS Reviewers: Pending requested
-
Diff: 25 lines (+2/-1)2 files modifiedhooks/nrpe_helpers.py (+1/-1)
hooks/nrpe_utils.py (+1/-0)
description: | updated |
description: | updated |
Changed in charm-nrpe: | |
assignee: | nobody → Felipe Reyes (freyes) |
tags: | added: sts |
Changed in charm-nrpe: | |
status: | New → In Progress |
Changed in charm-nrpe: | |
importance: | Undecided → High |
I've confirmed this is fixed in the just release nrpe 64. Thanks!