Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mon oconf push chokes on rsync failure #155

Open
eschoeller opened this issue Nov 16, 2023 · 2 comments
Open

mon oconf push chokes on rsync failure #155

eschoeller opened this issue Nov 16, 2023 · 2 comments

Comments

@eschoeller
Copy link

eschoeller commented Nov 16, 2023

[naemon@naemon-test01 .ssh]$ mon oconf push naemon-test02
rsync: failed to set times on "/etc/naemon/conf.d/thruk_templates.cfg": Operation not permitted (1)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1189) [sender=3.1.3]
Some error occured while synchronizing files!
Connecting to 'naemon-test02' with the following command:
  ssh X.X.X.X -o IdentitiesOnly=yes -o BatchMode=yes sudo mon restart
#--- REMOTE OUTPUT START ---
#--- REMOTE OUTPUT DONE ----
[naemon@naemon-test01 .ssh]$ ls -la /etc/naemon/conf.d/thruk_templates.cfg
lrwxrwxrwx. 1 root naemon 44 Dec  2  2022 /etc/naemon/conf.d/thruk_templates.cfg -> /usr/share/thruk/support/thruk_templates.cfg
[naemon@naemon-test01 .ssh]$ ls -la /usr/share/thruk/support/thruk_templates.cfg
-rw-r--r--. 1 root root 2185 Nov  2 18:04 /usr/share/thruk/support/thruk_templates.cfg

I'm on RHEL8 using recent RPMs from consol labs. I've got many years of experience with Naemon/Merlin, but this is the first time I'm trying to use the mon command. I'm sure I can find a way to work-around this, but since this is the 'out-of-the-box' experience ... I figured I'd report it.

@jdumalaonITRS
Copy link
Contributor

Hi,
Thanks for raising but I am not sure this can be an out of the box experience for stadalone merlin installs.
The error encountered is most likely due to user in the mon commands not having write permissions on the cfg file.

@eschoeller
Copy link
Author

Yea, the issue is that thruk ships with this symlink as part of it's package from EPEL and the symlink can't be sync'd with rsync running as the naemon user, which is what the mon command is using. I ended up having to remove the symlink and just copying the file over and setting the permissions that would work with what the mon command was trying to accomplish. I don't think this is the best long-term fix though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants